Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|truArrConSam.u|truArrConSam.uIdx.1.|truArrConSam.uIdx.2.|truArrConSam.y1.1.|truArrConSam.y1.2.|truArrConGre.y1.1.|truArrConGre.y1.2.|truArrConGre.y1.3.|truArrConGre.y1.4.",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional") translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|truArrConSam.u|truArrConSam.uIdx.1.|truArrConSam.uIdx.2.|truArrConSam.y1.1.|truArrConSam.y1.2.|truArrConGre.y1.1.|truArrConGre.y1.2.|truArrConGre.y1.3.|truArrConGre.y1.4.",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005329/0.00533, allocations: 101.5 kB / 15.73 MB, free: 6.035 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.001092/0.001092, allocations: 194.6 kB / 16.68 MB, free: 5.973 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.359/1.359, allocations: 222.9 MB / 240.4 MB, free: 4.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.715/2.715, allocations: 461.8 MB / 0.7347 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 67.89 kB / 1.054 GB, free: 7.137 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3576/0.3588, allocations: 157.4 MB / 1.208 GB, free: 9.637 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional): time 0.002159/0.361, allocations: 0.9405 MB / 1.209 GB, free: 8.695 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001897/0.3629, allocations: 1.408 MB / 1.21 GB, free: 7.273 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.502e-05/0.363, allocations: 7.938 kB / 1.21 GB, free: 7.266 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0003628/0.3634, allocations: 67.67 kB / 1.21 GB, free: 7.199 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 9.513e-05/0.3635, allocations: 59.69 kB / 1.21 GB, free: 7.141 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009007/0.3644, allocations: 329.3 kB / 1.21 GB, free: 6.824 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.000508/0.3649, allocations: 463.2 kB / 1.211 GB, free: 6.371 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001581/0.3651, allocations: 53.66 kB / 1.211 GB, free: 6.316 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001771/0.3653, allocations: 171.6 kB / 1.211 GB, free: 6.148 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002824/0.3656, allocations: 163.4 kB / 1.211 GB, free: 5.988 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 6.064e-05/0.3656, allocations: 36 kB / 1.211 GB, free: 5.953 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001401/0.3658, allocations: 63.95 kB / 1.211 GB, free: 5.891 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001361/0.3659, allocations: 87.72 kB / 1.211 GB, free: 5.805 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001766/0.3661, allocations: 143.5 kB / 1.212 GB, free: 5.664 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004624/0.3666, allocations: 438.7 kB / 1.212 GB, free: 5.234 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 1.176e-05/0.3666, allocations: 4 kB / 1.212 GB, free: 5.23 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.404e-06/0.3666, allocations: 3.938 kB / 1.212 GB, free: 5.227 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 8.957e-06/0.3666, allocations: 0 / 1.212 GB, free: 5.227 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0009582/0.3676, allocations: 0.6457 MB / 1.213 GB, free: 4.504 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.703e-05/0.3677, allocations: 8.625 kB / 1.213 GB, free: 4.496 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001186/0.3678, allocations: 36.64 kB / 1.213 GB, free: 4.461 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004087/0.3682, allocations: 293 kB / 1.213 GB, free: 4.133 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.923e-05/0.3682, allocations: 20.38 kB / 1.213 GB, free: 4.113 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.924e-05/0.3683, allocations: 32.3 kB / 1.213 GB, free: 4.082 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003244/0.3686, allocations: 182 kB / 1.213 GB, free: 3.898 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.3686, allocations: 192 / 1.213 GB, free: 3.898 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.763e-05/0.3687, allocations: 11.94 kB / 1.213 GB, free: 3.887 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.774e-06/0.3687, allocations: 3.984 kB / 1.213 GB, free: 3.883 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002202/0.3689, allocations: 123.9 kB / 1.213 GB, free: 3.762 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001078/0.37, allocations: 0.625 MB / 1.214 GB, free: 3.086 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004531/0.3705, allocations: 238.5 kB / 1.214 GB, free: 2.844 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002076/0.3707, allocations: 156.9 kB / 1.214 GB, free: 2.688 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 9.869e-06/0.3707, allocations: 0 / 1.214 GB, free: 2.688 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003792/0.3711, allocations: 231.8 kB / 1.215 GB, free: 2.445 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=27): time 1.974e-06/0.3711, allocations: 0 / 1.215 GB, free: 2.445 MB / 0.9669 GB Notification: Performance of matching and sorting (n=27): time 0.0008421/0.3719, allocations: 0.5194 MB / 1.215 GB, free: 1.91 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.249e-05/0.372, allocations: 118.8 kB / 1.215 GB, free: 1.77 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002643/0.3723, allocations: 259.9 kB / 1.215 GB, free: 1.508 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 5.614e-05/0.3724, allocations: 37.7 kB / 1.215 GB, free: 1.465 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001105/0.3725, allocations: 124.7 kB / 1.216 GB, free: 1.336 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 5.906e-05/0.3726, allocations: 59.25 kB / 1.216 GB, free: 1.277 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001595/0.3727, allocations: 97.66 kB / 1.216 GB, free: 1.176 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001553/0.3729, allocations: 346.7 kB / 1.216 GB, free: 0.8281 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002751/0.3732, allocations: 163.9 kB / 1.216 GB, free: 0.668 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003902/0.3736, allocations: 302.4 kB / 1.216 GB, free: 332 kB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005104/0.3741, allocations: 492.1 kB / 1.217 GB, free: 15.77 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.3741, allocations: 0 / 1.217 GB, free: 15.77 MB / 0.9825 GB Notification: Performance of matching and sorting (n=38) (initialization): time 0.00084/0.375, allocations: 0.582 MB / 1.218 GB, free: 15.16 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001065/0.3751, allocations: 142.8 kB / 1.218 GB, free: 15 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.3751, allocations: 4 kB / 1.218 GB, free: 14.99 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.664e-05/0.3751, allocations: 4 kB / 1.218 GB, free: 14.99 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001075/0.3752, allocations: 23.92 kB / 1.218 GB, free: 14.96 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.381e-05/0.3753, allocations: 4 kB / 1.218 GB, free: 14.96 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005648/0.3758, allocations: 95.88 kB / 1.218 GB, free: 14.87 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.358e-05/0.3759, allocations: 23.98 kB / 1.218 GB, free: 14.84 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 33 ($PRE.truArrConSam.u,$PRE.truArrConGre.u,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,truArrConGre.iIdx,truArrConGre.iTru,truArrConGre.y1[4],truArrConGre.y1[3],truArrConGre.y1[2],truArrConGre.y1[1],truArrConGre.uIdx[2],truArrConGre.uIdx[1],truArrConGre.u,uTru.idx,$PRE.uTru.idx,uTru.y[1],$PRE.uTru.y[1],uIdx2.booPul.y,$PRE.uIdx2.booPul.y,uIdx1.booPul.y,$PRE.uIdx1.booPul.y,truArrConSam.iIdx,truArrConSam.iTru,truArrConSam.y1[2],truArrConSam.y1[1],truArrConSam.uIdx[2],truArrConSam.uIdx[1],truArrConSam.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 4 * 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.0002976/0.3762, allocations: 243.7 kB / 1.218 GB, free: 14.59 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.968e-05/0.3763, allocations: 27.7 kB / 1.218 GB, free: 14.56 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.535e-05/0.3763, allocations: 22.56 kB / 1.218 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.3763, allocations: 0 / 1.218 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.3763, allocations: 4 kB / 1.218 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-06/0.3764, allocations: 3.984 kB / 1.218 GB, free: 14.53 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001146/0.3775, allocations: 0.8569 MB / 1.219 GB, free: 13.6 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.3775, allocations: 0 / 1.219 GB, free: 13.6 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.142e-05/0.3776, allocations: 11.98 kB / 1.219 GB, free: 13.59 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.3776, allocations: 3.984 kB / 1.219 GB, free: 13.59 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.701e-05/0.3776, allocations: 12 kB / 1.219 GB, free: 13.57 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.3776, allocations: 3.938 kB / 1.219 GB, free: 13.57 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.245e-06/0.3776, allocations: 3.938 kB / 1.219 GB, free: 13.57 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006389/0.3783, allocations: 0.5497 MB / 1.219 GB, free: 12.99 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001128/0.3784, allocations: 92.92 kB / 1.22 GB, free: 12.88 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.436e-05/0.3785, allocations: 15.98 kB / 1.22 GB, free: 12.86 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001451/0.3786, allocations: 15.94 kB / 1.22 GB, free: 12.85 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001149/0.3787, allocations: 47.95 kB / 1.22 GB, free: 12.8 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.889e-05/0.3788, allocations: 15.98 kB / 1.22 GB, free: 12.79 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.000176/0.379, allocations: 177.6 kB / 1.22 GB, free: 12.61 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/0.379, allocations: 0 / 1.22 GB, free: 12.61 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003912/0.3794, allocations: 95.84 kB / 1.22 GB, free: 12.52 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 27 (truArrConSam.u,truArrConGre.u,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,truArrConSam.uIdx[1],truArrConSam.uIdx[2],truArrConSam.y1[1],truArrConSam.y1[2],truArrConSam.iTru,truArrConSam.iIdx,uIdx1.booPul.y,uIdx2.booPul.y,uTru.y[1],uTru.idx,truArrConGre.uIdx[1],truArrConGre.uIdx[2],truArrConGre.y1[1],truArrConGre.y1[2],truArrConGre.y1[3],truArrConGre.y1[4],truArrConGre.iTru,truArrConGre.iIdx) * Number of discrete states: 10 (truArrConGre.y1[4],truArrConGre.y1[3],truArrConGre.y1[2],truArrConGre.y1[1],truArrConGre.iIdx,truArrConGre.iTru,truArrConSam.y1[2],truArrConSam.y1[1],truArrConSam.iIdx,truArrConSam.iTru) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 4 * 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.0002664/0.3796, allocations: 137.4 kB / 1.22 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0008616/0.3805, allocations: 0.6887 MB / 1.221 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3805, allocations: 0.625 kB / 1.221 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0003447/0.3809, allocations: 344.2 kB / 1.221 GB, free: 11.28 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004383/0.3813, allocations: 60.33 kB / 1.221 GB, free: 11.22 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008479/0.3822, allocations: 0.4902 MB / 1.222 GB, free: 10.7 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003298/0.3825, allocations: 0.748 MB / 1.222 GB, free: 9.93 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 9.819e-05/0.3826, allocations: 41.92 kB / 1.222 GB, free: 9.891 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.981e-05/0.3827, allocations: 19.44 kB / 1.222 GB, free: 9.871 MB / 0.9825 GB Notification: Performance of SimCode: time 3e-07/0.3827, allocations: 0 / 1.222 GB, free: 9.871 MB / 0.9825 GB Notification: Performance of Templates: time 0.009263/0.392, allocations: 4.865 MB / 1.227 GB, free: 5.066 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional.makefile (rm -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional.pipe ; mkfifo Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional.pipe >> ../files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional.sim & ./Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Plants_Controls_Utilities_Validation_TrueArrayConditional.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches