Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.Shade.Validation.Shade_H.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.Shade.Validation.Shade_H,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|shaH.H|shaH.HHigh|shaH.HLow|shaH.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.Shade.Validation.Shade_H") translateModel(Buildings.Controls.OBC.Shade.Validation.Shade_H,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|shaH.H|shaH.HHigh|shaH.HLow|shaH.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.Shade.Validation.Shade_H") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0016/0.0016, allocations: 110.2 kB / 16.37 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001804/0.001804, allocations: 191.4 kB / 17.31 MB, free: 5.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.357/1.357, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.439/2.439, allocations: 437.1 MB / 0.7112 GB, free: 4.363 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001529/0.001529, allocations: 68.27 kB / 0.8707 GB, free: 1.441 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3187/0.3203, allocations: 151.6 MB / 1.019 GB, free: 9.859 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Shade.Validation.Shade_H): time 0.003126/0.3234, allocations: 0.7048 MB / 1.019 GB, free: 9.152 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001689/0.3252, allocations: 0.8467 MB / 1.02 GB, free: 8.293 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.206e-05/0.3253, allocations: 0 / 1.02 GB, free: 8.293 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 5.138e-05/0.3253, allocations: 7.922 kB / 1.02 GB, free: 8.285 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0001316/0.3255, allocations: 15.86 kB / 1.02 GB, free: 8.27 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002231/0.3257, allocations: 15.98 kB / 1.02 GB, free: 8.254 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001519/0.3259, allocations: 63.84 kB / 1.02 GB, free: 8.191 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001538/0.3261, allocations: 15.98 kB / 1.02 GB, free: 8.176 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001412/0.3263, allocations: 31.84 kB / 1.02 GB, free: 8.145 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 9.872e-05/0.3264, allocations: 27.86 kB / 1.02 GB, free: 8.117 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.703e-05/0.3264, allocations: 8 kB / 1.02 GB, free: 8.109 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 1.809e-05/0.3264, allocations: 4 kB / 1.02 GB, free: 8.105 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.913e-05/0.3265, allocations: 11.92 kB / 1.02 GB, free: 8.094 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 5.268e-05/0.3265, allocations: 27.88 kB / 1.021 GB, free: 8.066 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001643/0.3267, allocations: 67.77 kB / 1.021 GB, free: 8 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.3267, allocations: 0 / 1.021 GB, free: 8 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.713e-06/0.3267, allocations: 0 / 1.021 GB, free: 8 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.81e-06/0.3268, allocations: 0 / 1.021 GB, free: 8 MB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006498/0.3274, allocations: 375.1 kB / 1.021 GB, free: 7.582 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.3275, allocations: 8.922 kB / 1.021 GB, free: 7.574 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.921e-05/0.3275, allocations: 4.938 kB / 1.021 GB, free: 7.57 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003782/0.3279, allocations: 200.1 kB / 1.021 GB, free: 7.336 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.237e-05/0.328, allocations: 4.375 kB / 1.021 GB, free: 7.332 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.351e-05/0.328, allocations: 4.375 kB / 1.021 GB, free: 7.328 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002045/0.3282, allocations: 58.23 kB / 1.021 GB, free: 7.266 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.3282, allocations: 192 / 1.021 GB, free: 7.266 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.706e-05/0.3283, allocations: 3.938 kB / 1.021 GB, free: 7.262 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.3283, allocations: 0 / 1.021 GB, free: 7.262 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001735/0.3285, allocations: 27.98 kB / 1.021 GB, free: 7.234 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006207/0.3291, allocations: 308.6 kB / 1.022 GB, free: 6.883 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000444/0.3296, allocations: 66.53 kB / 1.022 GB, free: 6.809 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.607e-05/0.3297, allocations: 21 kB / 1.022 GB, free: 6.785 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.489e-05/0.3297, allocations: 4 kB / 1.022 GB, free: 6.781 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.067e-05/0.3298, allocations: 38.44 kB / 1.022 GB, free: 6.734 MB / 0.795 GB Notification: Performance of pre-optimization done (n=3): time 2.084e-06/0.3298, allocations: 0 / 1.022 GB, free: 6.734 MB / 0.795 GB Notification: Performance of matching and sorting (n=3): time 0.0004093/0.3302, allocations: 73.58 kB / 1.022 GB, free: 6.656 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.142e-05/0.3303, allocations: 55.39 kB / 1.022 GB, free: 6.59 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001511/0.3304, allocations: 117.8 kB / 1.022 GB, free: 6.465 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.097e-05/0.3305, allocations: 29.7 kB / 1.022 GB, free: 6.43 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 7.746e-05/0.3306, allocations: 100.1 kB / 1.022 GB, free: 6.328 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.117e-05/0.3306, allocations: 3.906 kB / 1.022 GB, free: 6.324 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.843e-05/0.3307, allocations: 17.72 kB / 1.022 GB, free: 6.301 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001542/0.3309, allocations: 326.8 kB / 1.022 GB, free: 5.973 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.137e-05/0.331, allocations: 12 kB / 1.022 GB, free: 5.961 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001147/0.3311, allocations: 29.64 kB / 1.022 GB, free: 5.926 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001493/0.3312, allocations: 28.88 kB / 1.022 GB, free: 5.895 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.835e-06/0.3313, allocations: 4 kB / 1.022 GB, free: 5.891 MB / 0.795 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002482/0.3315, allocations: 69.86 kB / 1.022 GB, free: 5.816 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/0.3316, allocations: 4 kB / 1.022 GB, free: 5.812 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.3316, allocations: 0 / 1.022 GB, free: 5.812 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.947e-05/0.3316, allocations: 8.031 kB / 1.022 GB, free: 5.805 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.548e-05/0.3317, allocations: 4 kB / 1.022 GB, free: 5.801 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.968e-06/0.3317, allocations: 3.984 kB / 1.023 GB, free: 5.797 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001084/0.3318, allocations: 11.94 kB / 1.023 GB, free: 5.785 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.338e-06/0.3319, allocations: 4 kB / 1.023 GB, free: 5.781 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (shaH.hys.y,$PRE.shaH.hys.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001264/0.332, allocations: 121.7 kB / 1.023 GB, free: 5.652 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.44e-05/0.3321, allocations: 11.89 kB / 1.023 GB, free: 5.641 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.86e-05/0.3321, allocations: 7.906 kB / 1.023 GB, free: 5.629 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.3321, allocations: 0 / 1.023 GB, free: 5.629 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.3321, allocations: 4 kB / 1.023 GB, free: 5.625 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.3322, allocations: 0 / 1.023 GB, free: 5.625 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002844/0.3325, allocations: 173.6 kB / 1.023 GB, free: 5.406 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.3325, allocations: 0 / 1.023 GB, free: 5.406 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.182e-05/0.3326, allocations: 8 kB / 1.023 GB, free: 5.398 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.694e-06/0.3326, allocations: 4 kB / 1.023 GB, free: 5.395 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.032e-05/0.3326, allocations: 0 / 1.023 GB, free: 5.395 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.3326, allocations: 0 / 1.023 GB, free: 5.395 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.3326, allocations: 0 / 1.023 GB, free: 5.395 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000284/0.3329, allocations: 157 kB / 1.023 GB, free: 5.227 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 6.115e-05/0.333, allocations: 85 kB / 1.023 GB, free: 5.125 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.827e-05/0.333, allocations: 0 / 1.023 GB, free: 5.125 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000141/0.3332, allocations: 15.94 kB / 1.023 GB, free: 5.109 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.989e-05/0.3333, allocations: 7.984 kB / 1.023 GB, free: 5.102 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.355e-05/0.3333, allocations: 4 kB / 1.023 GB, free: 5.098 MB / 0.795 GB Notification: Performance of sorting global known variables: time 8.431e-05/0.3334, allocations: 95.64 kB / 1.023 GB, free: 5.004 MB / 0.795 GB Notification: Performance of sort global known variables: time 2.71e-07/0.3334, allocations: 3.938 kB / 1.023 GB, free: 5 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0004137/0.3338, allocations: 12 kB / 1.023 GB, free: 4.988 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (shaH.hys.y) * Number of discrete states: 1 (shaH.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001336/0.334, allocations: 95.25 kB / 1.023 GB, free: 4.883 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002652/0.3343, allocations: 39.97 kB / 1.023 GB, free: 4.844 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.3343, allocations: 0 / 1.023 GB, free: 4.844 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001077/0.3344, allocations: 19.92 kB / 1.023 GB, free: 4.824 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004091/0.3348, allocations: 7.938 kB / 1.023 GB, free: 4.816 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004957/0.3353, allocations: 163.7 kB / 1.024 GB, free: 4.633 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003461/0.3357, allocations: 0.6885 MB / 1.024 GB, free: 3.918 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 5.912e-05/0.3358, allocations: 4 kB / 1.024 GB, free: 3.914 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.999e-05/0.3359, allocations: 15.42 kB / 1.024 GB, free: 3.898 MB / 0.795 GB Notification: Performance of SimCode: time 6.72e-07/0.3359, allocations: 0 / 1.024 GB, free: 3.898 MB / 0.795 GB Notification: Performance of Templates: time 0.004832/0.3407, allocations: 0.7072 MB / 1.025 GB, free: 3.199 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.Shade.Validation.Shade_H.makefile (rm -f Buildings_10_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.Shade.Validation.Shade_H.sim & ./Buildings_10_Buildings.Controls.OBC.Shade.Validation.Shade_H -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.Shade.Validation.Shade_H.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.Shade.Validation.Shade_H_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_Shade_Validation_Shade_H.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.Shade.Validation.Shade_H.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches