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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.001596/0.001596, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00191/0.00191, allocations: 189.7 kB / 16.13 MB, free: 6.645 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.464/1.464, allocations: 222.9 MB / 239.8 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.975/2.975, allocations: 472.7 MB / 0.7447 GB, free: 4.895 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001422/0.001422, allocations: 60.17 kB / 0.9114 GB, free: 33.61 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3611/0.3626, allocations: 159.9 MB / 1.068 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional): time 0.00248/0.3651, allocations: 0.9902 MB / 1.069 GB, free: 9.863 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001981/0.3671, allocations: 1.443 MB / 1.07 GB, free: 8.406 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.898e-05/0.3672, allocations: 8 kB / 1.07 GB, free: 8.398 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0003796/0.3676, allocations: 67.8 kB / 1.07 GB, free: 8.332 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.975e-05/0.3677, allocations: 43.75 kB / 1.07 GB, free: 8.289 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009589/0.3687, allocations: 302.3 kB / 1.07 GB, free: 8 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003869/0.3691, allocations: 379.2 kB / 1.071 GB, free: 7.629 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001655/0.3693, allocations: 49.64 kB / 1.071 GB, free: 7.582 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00016/0.3695, allocations: 139.7 kB / 1.071 GB, free: 7.445 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002508/0.3697, allocations: 143.5 kB / 1.071 GB, free: 7.305 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 6.705e-05/0.3698, allocations: 16 kB / 1.071 GB, free: 7.289 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001524/0.3699, allocations: 55.91 kB / 1.071 GB, free: 7.234 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001303/0.3701, allocations: 67.8 kB / 1.071 GB, free: 7.168 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.000165/0.3703, allocations: 127.4 kB / 1.071 GB, free: 7.043 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004545/0.3707, allocations: 411.1 kB / 1.072 GB, free: 6.641 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.3707, allocations: 0 / 1.072 GB, free: 6.641 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.152e-06/0.3707, allocations: 0 / 1.072 GB, free: 6.641 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.662e-06/0.3708, allocations: 0 / 1.072 GB, free: 6.641 MB / 0.8262 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.0009822/0.3717, allocations: 0.6574 MB / 1.072 GB, free: 5.906 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.262e-05/0.3718, allocations: 11.97 kB / 1.072 GB, free: 5.895 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.777e-05/0.3719, allocations: 32.66 kB / 1.072 GB, free: 5.863 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003991/0.3723, allocations: 300.9 kB / 1.073 GB, free: 5.527 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.343e-05/0.3724, allocations: 16.38 kB / 1.073 GB, free: 5.512 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.389e-05/0.3724, allocations: 24.38 kB / 1.073 GB, free: 5.488 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000349/0.3728, allocations: 177 kB / 1.073 GB, free: 5.312 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.676e-05/0.3728, allocations: 192 / 1.073 GB, free: 5.312 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.941e-05/0.3729, allocations: 15.88 kB / 1.073 GB, free: 5.297 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.3729, allocations: 0 / 1.073 GB, free: 5.297 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002118/0.3731, allocations: 127.9 kB / 1.073 GB, free: 5.172 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00102/0.3741, allocations: 0.6289 MB / 1.074 GB, free: 4.492 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000436/0.3746, allocations: 234.5 kB / 1.074 GB, free: 4.254 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002004/0.3748, allocations: 164.9 kB / 1.074 GB, free: 4.09 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.362e-05/0.3748, allocations: 4 kB / 1.074 GB, free: 4.086 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000373/0.3752, allocations: 229.6 kB / 1.074 GB, free: 3.848 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=27): time 1.733e-06/0.3752, allocations: 0 / 1.074 GB, free: 3.848 MB / 0.8262 GB Notification: Performance of matching and sorting (n=27): time 0.0007855/0.376, allocations: 0.5155 MB / 1.075 GB, free: 3.316 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.111e-05/0.3761, allocations: 122.8 kB / 1.075 GB, free: 3.172 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002347/0.3763, allocations: 252 kB / 1.075 GB, free: 2.914 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 7.194e-05/0.3764, allocations: 37.7 kB / 1.075 GB, free: 2.871 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001072/0.3765, allocations: 124.7 kB / 1.075 GB, free: 2.746 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.48e-05/0.3766, allocations: 63.19 kB / 1.075 GB, free: 2.684 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001686/0.3767, allocations: 101.6 kB / 1.075 GB, free: 2.578 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001086/0.3769, allocations: 338.8 kB / 1.076 GB, free: 2.238 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002746/0.3771, allocations: 168.1 kB / 1.076 GB, free: 2.074 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003628/0.3775, allocations: 299.4 kB / 1.076 GB, free: 1.734 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004755/0.378, allocations: 0.4883 MB / 1.077 GB, free: 1.176 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.378, allocations: 0 / 1.077 GB, free: 1.176 MB / 0.8262 GB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008217/0.3788, allocations: 0.5801 MB / 1.077 GB, free: 0.5664 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001014/0.3789, allocations: 139.1 kB / 1.077 GB, free: 416 kB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/0.379, allocations: 11.94 kB / 1.077 GB, free: 404 kB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.912e-05/0.379, allocations: 4 kB / 1.077 GB, free: 400 kB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001086/0.3791, allocations: 23.98 kB / 1.077 GB, free: 376 kB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.999e-06/0.3791, allocations: 7.938 kB / 1.077 GB, free: 368 kB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005897/0.3797, allocations: 91.8 kB / 1.077 GB, free: 276 kB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.423e-05/0.3798, allocations: 24 kB / 1.077 GB, free: 252 kB / 0.8262 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.0002539/0.38, allocations: 255.6 kB / 1.078 GB, free: 15.97 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.22e-05/0.3801, allocations: 23.72 kB / 1.078 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.593e-05/0.3801, allocations: 26.55 kB / 1.078 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.3802, allocations: 4 kB / 1.078 GB, free: 15.92 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.3802, allocations: 3.938 kB / 1.078 GB, free: 15.92 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.3802, allocations: 0 / 1.078 GB, free: 15.92 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001075/0.3813, allocations: 0.8568 MB / 1.079 GB, free: 14.99 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.3813, allocations: 0 / 1.079 GB, free: 14.99 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-05/0.3813, allocations: 11.98 kB / 1.079 GB, free: 14.98 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.3813, allocations: 4 kB / 1.079 GB, free: 14.98 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.384e-05/0.3814, allocations: 8 kB / 1.079 GB, free: 14.97 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.3814, allocations: 3.938 kB / 1.079 GB, free: 14.96 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.3814, allocations: 4 kB / 1.079 GB, free: 14.96 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006251/0.382, allocations: 0.5414 MB / 1.079 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.411e-05/0.3821, allocations: 96.81 kB / 1.079 GB, free: 14.28 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.556e-05/0.3822, allocations: 16 kB / 1.079 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001557/0.3823, allocations: 19.92 kB / 1.079 GB, free: 14.24 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000127/0.3825, allocations: 43.95 kB / 1.079 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.371e-05/0.3825, allocations: 19.98 kB / 1.079 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001663/0.3827, allocations: 173.6 kB / 1.08 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3827, allocations: 3.938 kB / 1.08 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003959/0.3831, allocations: 87.94 kB / 1.08 GB, free: 13.92 MB / 0.8419 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.0002676/0.3834, allocations: 137.5 kB / 1.08 GB, free: 13.78 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001038/0.3844, allocations: 0.6926 MB / 1.08 GB, free: 13.04 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.888e-06/0.3844, allocations: 0.625 kB / 1.08 GB, free: 13.04 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003536/0.3848, allocations: 342.6 kB / 1.081 GB, free: 12.68 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004396/0.3852, allocations: 49.34 kB / 1.081 GB, free: 12.63 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009204/0.3862, allocations: 0.5466 MB / 1.081 GB, free: 12.05 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003604/0.3865, allocations: 0.7443 MB / 1.082 GB, free: 11.29 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.000106/0.3866, allocations: 37.92 kB / 1.082 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.982e-05/0.3867, allocations: 23.44 kB / 1.082 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of SimCode: time 5.31e-07/0.3867, allocations: 0 / 1.082 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of Templates: time 0.009605/0.3963, allocations: 4.621 MB / 1.087 GB, free: 6.672 MB / 0.8419 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