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.007351/0.007352, allocations: 102 kB / 15.73 MB, free: 6.062 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.00159/0.00159, allocations: 192 kB / 16.67 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.396/1.396, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.625/2.625, allocations: 472.6 MB / 0.7452 GB, free: 0.5234 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001167, allocations: 55.91 kB / 1.069 GB, free: 9.645 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9622/0.9634, allocations: 159.9 MB / 1.226 GB, free: 13.77 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional): time 0.002175/0.9656, allocations: 0.9439 MB / 1.226 GB, free: 12.82 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001817/0.9675, allocations: 1.405 MB / 1.228 GB, free: 11.41 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.913e-05/0.9676, allocations: 4 kB / 1.228 GB, free: 11.4 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0003396/0.9679, allocations: 59.69 kB / 1.228 GB, free: 11.34 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 8.552e-05/0.9681, allocations: 59.61 kB / 1.228 GB, free: 11.29 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007936/0.9689, allocations: 329.8 kB / 1.228 GB, free: 10.97 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0004565/0.9693, allocations: 459.1 kB / 1.229 GB, free: 10.52 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001527/0.9695, allocations: 57.64 kB / 1.229 GB, free: 10.46 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001697/0.9697, allocations: 163.7 kB / 1.229 GB, free: 10.3 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002774/0.9699, allocations: 171.4 kB / 1.229 GB, free: 10.14 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 7.419e-05/0.97, allocations: 36 kB / 1.229 GB, free: 10.1 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001456/0.9702, allocations: 67.97 kB / 1.229 GB, free: 10.04 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001301/0.9703, allocations: 79.8 kB / 1.229 GB, free: 9.957 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001588/0.9705, allocations: 147.3 kB / 1.229 GB, free: 9.812 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0004407/0.9709, allocations: 435.6 kB / 1.23 GB, free: 9.387 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.9709, allocations: 4 kB / 1.23 GB, free: 9.383 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.502e-06/0.9709, allocations: 0 / 1.23 GB, free: 9.383 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 6.392e-06/0.971, allocations: 0 / 1.23 GB, free: 9.383 MB / 0.9512 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.0008686/0.9718, allocations: 0.6572 MB / 1.23 GB, free: 8.648 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.9719, allocations: 8.031 kB / 1.23 GB, free: 8.641 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001146/0.972, allocations: 32.8 kB / 1.231 GB, free: 8.609 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004029/0.9724, allocations: 308.9 kB / 1.231 GB, free: 8.266 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.824e-05/0.9724, allocations: 16.38 kB / 1.231 GB, free: 8.25 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.302e-05/0.9725, allocations: 28.38 kB / 1.231 GB, free: 8.223 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003068/0.9728, allocations: 186.4 kB / 1.231 GB, free: 8.039 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.9728, allocations: 192 / 1.231 GB, free: 8.039 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.315e-05/0.9729, allocations: 11.92 kB / 1.231 GB, free: 8.027 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.591e-06/0.9729, allocations: 0 / 1.231 GB, free: 8.027 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001924/0.9731, allocations: 131.9 kB / 1.231 GB, free: 7.898 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009087/0.974, allocations: 0.6251 MB / 1.232 GB, free: 7.223 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004083/0.9744, allocations: 238.5 kB / 1.232 GB, free: 6.98 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001948/0.9746, allocations: 160.9 kB / 1.232 GB, free: 6.82 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.341e-05/0.9746, allocations: 4 kB / 1.232 GB, free: 6.816 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003172/0.9749, allocations: 231.9 kB / 1.232 GB, free: 6.574 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=27): time 1.674e-06/0.975, allocations: 4 kB / 1.232 GB, free: 6.57 MB / 0.9512 GB Notification: Performance of matching and sorting (n=27): time 0.0007416/0.9757, allocations: 0.5195 MB / 1.233 GB, free: 6.035 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.896e-05/0.9758, allocations: 118.8 kB / 1.233 GB, free: 5.895 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000248/0.976, allocations: 252 kB / 1.233 GB, free: 5.641 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 4.873e-05/0.9761, allocations: 37.7 kB / 1.233 GB, free: 5.598 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001027/0.9762, allocations: 132.7 kB / 1.233 GB, free: 5.461 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 5.455e-05/0.9763, allocations: 63.48 kB / 1.233 GB, free: 5.398 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001644/0.9764, allocations: 101.6 kB / 1.234 GB, free: 5.293 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001114/0.9766, allocations: 346.8 kB / 1.234 GB, free: 4.945 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002633/0.9768, allocations: 163.9 kB / 1.234 GB, free: 4.785 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003627/0.9772, allocations: 289.6 kB / 1.234 GB, free: 4.453 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004692/0.9777, allocations: 495.5 kB / 1.235 GB, free: 3.898 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.9777, allocations: 0 / 1.235 GB, free: 3.898 MB / 0.9512 GB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008454/0.9785, allocations: 0.5791 MB / 1.235 GB, free: 3.289 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 0.000101/0.9786, allocations: 142.8 kB / 1.236 GB, free: 3.125 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.9787, allocations: 4 kB / 1.236 GB, free: 3.121 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.274e-05/0.9787, allocations: 4 kB / 1.236 GB, free: 3.117 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001017/0.9788, allocations: 23.92 kB / 1.236 GB, free: 3.094 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.542e-05/0.9788, allocations: 7.938 kB / 1.236 GB, free: 3.086 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005204/0.9793, allocations: 84.47 kB / 1.236 GB, free: 3.004 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.337e-05/0.9794, allocations: 28.02 kB / 1.236 GB, free: 2.977 MB / 0.9512 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.0002406/0.9797, allocations: 252.2 kB / 1.236 GB, free: 2.707 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.206e-05/0.9797, allocations: 23.86 kB / 1.236 GB, free: 2.684 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.994e-05/0.9798, allocations: 26.55 kB / 1.236 GB, free: 2.656 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.9798, allocations: 0 / 1.236 GB, free: 2.656 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/0.9798, allocations: 0 / 1.236 GB, free: 2.656 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.9798, allocations: 8 kB / 1.236 GB, free: 2.648 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001029/0.9808, allocations: 0.8571 MB / 1.237 GB, free: 1.719 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.9808, allocations: 3.938 kB / 1.237 GB, free: 1.715 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.555e-05/0.9809, allocations: 12 kB / 1.237 GB, free: 1.703 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.9809, allocations: 3.984 kB / 1.237 GB, free: 1.699 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.946e-05/0.9809, allocations: 8 kB / 1.237 GB, free: 1.691 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.9809, allocations: 3.938 kB / 1.237 GB, free: 1.688 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.9809, allocations: 0 / 1.237 GB, free: 1.688 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005957/0.9815, allocations: 0.5382 MB / 1.237 GB, free: 1.121 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 6.617e-05/0.9816, allocations: 105 kB / 1.237 GB, free: 1 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.254e-05/0.9817, allocations: 15.94 kB / 1.237 GB, free: 0.9844 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000144/0.9818, allocations: 19.86 kB / 1.237 GB, free: 0.9648 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001193/0.982, allocations: 51.95 kB / 1.238 GB, free: 0.9141 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.495e-05/0.982, allocations: 8 kB / 1.238 GB, free: 0.9062 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001592/0.9822, allocations: 181.6 kB / 1.238 GB, free: 0.7305 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.41e-07/0.9822, allocations: 4 kB / 1.238 GB, free: 0.7266 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003595/0.9825, allocations: 79.94 kB / 1.238 GB, free: 0.6484 MB / 0.9512 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.0002298/0.9828, allocations: 147.2 kB / 1.238 GB, free: 0.4961 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0008374/0.9836, allocations: 0.6887 MB / 1.239 GB, free: 15.76 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.9836, allocations: 4 kB / 1.239 GB, free: 15.75 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0003176/0.9839, allocations: 336.8 kB / 1.239 GB, free: 15.4 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004247/0.9844, allocations: 66.81 kB / 1.239 GB, free: 15.34 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009858/0.9854, allocations: 0.5017 MB / 1.239 GB, free: 14.82 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004275/0.9858, allocations: 0.748 MB / 1.24 GB, free: 14.04 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0001034/0.9859, allocations: 37.92 kB / 1.24 GB, free: 14.01 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.586e-05/0.986, allocations: 19.44 kB / 1.24 GB, free: 13.99 MB / 0.9669 GB Notification: Performance of SimCode: time 2.4e-07/0.986, allocations: 0 / 1.24 GB, free: 13.99 MB / 0.9669 GB Notification: Performance of Templates: time 0.009771/0.9958, allocations: 4.867 MB / 1.245 GB, free: 9.176 MB / 0.9669 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