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.006124/0.006124, allocations: 102 kB / 15.73 MB, free: 6.055 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.002685/0.002685, allocations: 189.1 kB / 16.67 MB, free: 5.984 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.484/1.484, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.813/2.813, allocations: 461.9 MB / 0.7348 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 63.91 kB / 1.054 GB, free: 7.203 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3437/0.3449, allocations: 157.4 MB / 1.208 GB, free: 9.695 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional): time 0.002157/0.3471, allocations: 0.9348 MB / 1.209 GB, free: 8.758 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001972/0.3491, allocations: 1.416 MB / 1.21 GB, free: 7.328 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.597e-05/0.3492, allocations: 4 kB / 1.21 GB, free: 7.324 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0003611/0.3496, allocations: 63.67 kB / 1.21 GB, free: 7.262 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 9.066e-05/0.3497, allocations: 59.69 kB / 1.21 GB, free: 7.203 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008862/0.3506, allocations: 336.3 kB / 1.21 GB, free: 6.883 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0004602/0.3511, allocations: 451.3 kB / 1.211 GB, free: 6.441 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001565/0.3513, allocations: 57.64 kB / 1.211 GB, free: 6.383 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001825/0.3514, allocations: 167.6 kB / 1.211 GB, free: 6.219 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002817/0.3517, allocations: 167.4 kB / 1.211 GB, free: 6.055 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 6.392e-05/0.3518, allocations: 36 kB / 1.211 GB, free: 6.02 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001374/0.3519, allocations: 63.98 kB / 1.211 GB, free: 5.957 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001353/0.3521, allocations: 83.72 kB / 1.211 GB, free: 5.875 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001731/0.3523, allocations: 147.4 kB / 1.212 GB, free: 5.73 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004345/0.3527, allocations: 434.7 kB / 1.212 GB, free: 5.305 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.3527, allocations: 3.984 kB / 1.212 GB, free: 5.301 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.613e-06/0.3527, allocations: 0 / 1.212 GB, free: 5.301 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.332e-06/0.3527, allocations: 0 / 1.212 GB, free: 5.301 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.0009179/0.3537, allocations: 0.6535 MB / 1.213 GB, free: 4.57 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.3537, allocations: 8.625 kB / 1.213 GB, free: 4.562 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.388e-05/0.3538, allocations: 28.66 kB / 1.213 GB, free: 4.535 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000399/0.3542, allocations: 308.9 kB / 1.213 GB, free: 4.191 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.668e-05/0.3543, allocations: 20.31 kB / 1.213 GB, free: 4.172 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.518e-05/0.3543, allocations: 20.38 kB / 1.213 GB, free: 4.152 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003208/0.3546, allocations: 186 kB / 1.213 GB, free: 3.965 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.3547, allocations: 8.125 kB / 1.213 GB, free: 3.957 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.392e-05/0.3547, allocations: 7.938 kB / 1.213 GB, free: 3.949 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.3547, allocations: 0 / 1.213 GB, free: 3.949 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001958/0.3549, allocations: 123.9 kB / 1.213 GB, free: 3.828 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000953/0.3559, allocations: 0.629 MB / 1.214 GB, free: 3.148 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004323/0.3563, allocations: 238.5 kB / 1.214 GB, free: 2.906 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002068/0.3565, allocations: 160.9 kB / 1.214 GB, free: 2.746 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.511e-05/0.3566, allocations: 0 / 1.214 GB, free: 2.746 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003562/0.3569, allocations: 235.8 kB / 1.215 GB, free: 2.5 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=27): time 1.923e-06/0.3569, allocations: 0 / 1.215 GB, free: 2.5 MB / 0.9669 GB Notification: Performance of matching and sorting (n=27): time 0.0008075/0.3578, allocations: 0.5116 MB / 1.215 GB, free: 1.973 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.52e-05/0.3578, allocations: 122.8 kB / 1.215 GB, free: 1.828 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002444/0.3581, allocations: 251.9 kB / 1.215 GB, free: 1.574 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 4.97e-05/0.3581, allocations: 37.7 kB / 1.215 GB, free: 1.531 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001153/0.3583, allocations: 132.6 kB / 1.216 GB, free: 1.395 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 5.194e-05/0.3583, allocations: 59.25 kB / 1.216 GB, free: 1.336 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001788/0.3585, allocations: 101.6 kB / 1.216 GB, free: 1.23 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001455/0.3587, allocations: 342.8 kB / 1.216 GB, free: 0.8867 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002744/0.3589, allocations: 159.9 kB / 1.216 GB, free: 0.7305 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003795/0.3593, allocations: 301.5 kB / 1.216 GB, free: 396 kB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005018/0.3598, allocations: 488.1 kB / 1.217 GB, free: 15.84 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.3599, allocations: 4 kB / 1.217 GB, free: 15.84 MB / 0.9825 GB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0007972/0.3607, allocations: 0.574 MB / 1.218 GB, free: 15.23 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 9.744e-05/0.3608, allocations: 146.8 kB / 1.218 GB, free: 15.06 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.732e-06/0.3608, allocations: 320 / 1.218 GB, free: 15.06 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.773e-05/0.3608, allocations: 8 kB / 1.218 GB, free: 15.05 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000112/0.3609, allocations: 27.92 kB / 1.218 GB, free: 15.03 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.042e-05/0.3609, allocations: 4 kB / 1.218 GB, free: 15.02 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005109/0.3615, allocations: 87.7 kB / 1.218 GB, free: 14.94 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.401e-05/0.3615, allocations: 19.98 kB / 1.218 GB, free: 14.92 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.0002506/0.3618, allocations: 251.7 kB / 1.218 GB, free: 14.65 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.362e-05/0.3618, allocations: 31.7 kB / 1.218 GB, free: 14.62 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.548e-05/0.3619, allocations: 22.55 kB / 1.218 GB, free: 14.6 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.3619, allocations: 4 kB / 1.218 GB, free: 14.6 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.593e-06/0.3619, allocations: 0 / 1.218 GB, free: 14.6 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.3619, allocations: 0 / 1.218 GB, free: 14.6 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001046/0.363, allocations: 0.8583 MB / 1.219 GB, free: 13.67 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.363, allocations: 12 kB / 1.219 GB, free: 13.66 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.655e-05/0.363, allocations: 12 kB / 1.219 GB, free: 13.64 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.363, allocations: 0 / 1.219 GB, free: 13.64 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.768e-05/0.3631, allocations: 19.92 kB / 1.219 GB, free: 13.62 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.497e-06/0.3631, allocations: 3.938 kB / 1.219 GB, free: 13.62 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.3631, allocations: 0 / 1.219 GB, free: 13.62 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005967/0.3637, allocations: 0.5419 MB / 1.22 GB, free: 13.05 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.653e-05/0.3638, allocations: 92.92 kB / 1.22 GB, free: 12.94 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.069e-05/0.3638, allocations: 19.98 kB / 1.22 GB, free: 12.92 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001451/0.364, allocations: 15.92 kB / 1.22 GB, free: 12.91 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001227/0.3641, allocations: 47.95 kB / 1.22 GB, free: 12.86 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.135e-05/0.3641, allocations: 16 kB / 1.22 GB, free: 12.84 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001564/0.3643, allocations: 173.6 kB / 1.22 GB, free: 12.68 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.61e-07/0.3643, allocations: 0 / 1.22 GB, free: 12.68 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003869/0.3647, allocations: 95.83 kB / 1.22 GB, free: 12.58 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.0002211/0.3649, allocations: 141.4 kB / 1.22 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0008209/0.3658, allocations: 0.6887 MB / 1.221 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.3658, allocations: 0 / 1.221 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.000325/0.3661, allocations: 342.7 kB / 1.221 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004151/0.3665, allocations: 49.03 kB / 1.221 GB, free: 11.29 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008815/0.3674, allocations: 0.4976 MB / 1.222 GB, free: 10.77 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000296/0.3677, allocations: 0.7402 MB / 1.222 GB, free: 10 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 9.768e-05/0.3678, allocations: 45.91 kB / 1.222 GB, free: 9.957 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.58e-05/0.3679, allocations: 19.44 kB / 1.222 GB, free: 9.938 MB / 0.9825 GB Notification: Performance of SimCode: time 2.2e-07/0.3679, allocations: 0 / 1.222 GB, free: 9.938 MB / 0.9825 GB Notification: Performance of Templates: time 0.008521/0.3764, allocations: 4.876 MB / 1.227 GB, free: 5.117 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