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.001493/0.001493, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001718/0.001718, allocations: 195.9 kB / 16.26 MB, free: 6.629 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.407/1.407, allocations: 222.9 MB / 239.9 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.812/2.812, allocations: 461.9 MB / 0.7343 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 68.48 kB / 0.8986 GB, free: 37.29 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3524/0.3537, allocations: 157.4 MB / 1.052 GB, free: 8.691 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.TrueArrayConditional): time 0.002206/0.3559, allocations: 0.9881 MB / 1.053 GB, free: 7.699 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001791/0.3577, allocations: 1.412 MB / 1.055 GB, free: 6.273 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000118/0.3579, allocations: 4 kB / 1.055 GB, free: 6.27 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0003527/0.3582, allocations: 59.8 kB / 1.055 GB, free: 6.211 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.269e-05/0.3584, allocations: 51.75 kB / 1.055 GB, free: 6.16 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007797/0.3591, allocations: 298.2 kB / 1.055 GB, free: 5.875 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004277/0.3596, allocations: 455.1 kB / 1.055 GB, free: 5.43 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000147/0.3597, allocations: 53.64 kB / 1.056 GB, free: 5.379 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001727/0.3599, allocations: 175.6 kB / 1.056 GB, free: 5.207 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002363/0.3602, allocations: 139.5 kB / 1.056 GB, free: 5.07 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 5.966e-05/0.3602, allocations: 36 kB / 1.056 GB, free: 5.035 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00013/0.3604, allocations: 71.91 kB / 1.056 GB, free: 4.965 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001197/0.3605, allocations: 83.78 kB / 1.056 GB, free: 4.883 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001619/0.3607, allocations: 151.4 kB / 1.056 GB, free: 4.734 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004346/0.3611, allocations: 427.1 kB / 1.057 GB, free: 4.316 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.3611, allocations: 0 / 1.057 GB, free: 4.316 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.343e-06/0.3611, allocations: 0 / 1.057 GB, free: 4.316 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.323e-06/0.3611, allocations: 0 / 1.057 GB, free: 4.316 MB / 0.8106 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.0009145/0.3621, allocations: 0.6535 MB / 1.057 GB, free: 3.586 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.215e-05/0.3621, allocations: 8.625 kB / 1.057 GB, free: 3.578 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.414e-05/0.3622, allocations: 36.62 kB / 1.057 GB, free: 3.543 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003701/0.3626, allocations: 300.8 kB / 1.058 GB, free: 3.207 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.283e-05/0.3626, allocations: 20.38 kB / 1.058 GB, free: 3.188 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.815e-05/0.3627, allocations: 20.38 kB / 1.058 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003015/0.363, allocations: 178.1 kB / 1.058 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.617e-06/0.363, allocations: 192 / 1.058 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.759e-05/0.363, allocations: 15.92 kB / 1.058 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.363, allocations: 3.938 kB / 1.058 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001915/0.3632, allocations: 115.9 kB / 1.058 GB, free: 2.855 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009256/0.3642, allocations: 0.6328 MB / 1.058 GB, free: 2.172 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004128/0.3646, allocations: 230.7 kB / 1.059 GB, free: 1.938 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002038/0.3648, allocations: 160.8 kB / 1.059 GB, free: 1.777 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.218e-05/0.3648, allocations: 11.94 kB / 1.059 GB, free: 1.766 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000404/0.3652, allocations: 229.8 kB / 1.059 GB, free: 1.527 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=27): time 3.076e-06/0.3653, allocations: 3.984 kB / 1.059 GB, free: 1.523 MB / 0.8106 GB Notification: Performance of matching and sorting (n=27): time 0.0008057/0.3661, allocations: 0.5193 MB / 1.06 GB, free: 0.9883 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.291e-05/0.3662, allocations: 122.8 kB / 1.06 GB, free: 0.8438 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000255/0.3664, allocations: 251.9 kB / 1.06 GB, free: 0.5898 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 5.805e-05/0.3665, allocations: 41.7 kB / 1.06 GB, free: 0.543 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001195/0.3666, allocations: 132.7 kB / 1.06 GB, free: 420 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.091e-05/0.3667, allocations: 55.34 kB / 1.06 GB, free: 364 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001668/0.3668, allocations: 97.66 kB / 1.06 GB, free: 260 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000134/0.367, allocations: 338.8 kB / 1.061 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002637/0.3673, allocations: 163.9 kB / 1.061 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003738/0.3676, allocations: 298.9 kB / 1.061 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004763/0.3681, allocations: 491.3 kB / 1.061 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/0.3681, allocations: 0 / 1.061 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008094/0.369, allocations: 0.5825 MB / 1.062 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.517e-05/0.3691, allocations: 144.1 kB / 1.062 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.227e-06/0.3691, allocations: 4 kB / 1.062 GB, free: 14.08 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.737e-05/0.3691, allocations: 4 kB / 1.062 GB, free: 14.08 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001057/0.3692, allocations: 23.98 kB / 1.062 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.208e-05/0.3692, allocations: 12.19 kB / 1.062 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005799/0.3698, allocations: 99.58 kB / 1.062 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.637e-05/0.3699, allocations: 23.98 kB / 1.062 GB, free: 13.92 MB / 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.000239/0.3701, allocations: 251.7 kB / 1.063 GB, free: 13.65 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.063e-05/0.3702, allocations: 23.72 kB / 1.063 GB, free: 13.63 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.737e-05/0.3702, allocations: 22.56 kB / 1.063 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.3702, allocations: 0 / 1.063 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.95e-06/0.3702, allocations: 64 / 1.063 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.804e-06/0.3703, allocations: 15.92 kB / 1.063 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001058/0.3713, allocations: 0.8451 MB / 1.063 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.3713, allocations: 3.984 kB / 1.063 GB, free: 12.67 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.47e-05/0.3714, allocations: 12 kB / 1.063 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.888e-06/0.3714, allocations: 4 kB / 1.063 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.353e-05/0.3714, allocations: 8 kB / 1.063 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.3714, allocations: 7.922 kB / 1.064 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.3714, allocations: 0 / 1.064 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005606/0.372, allocations: 0.5375 MB / 1.064 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.498e-05/0.3721, allocations: 92.83 kB / 1.064 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.285e-05/0.3721, allocations: 15.98 kB / 1.064 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001518/0.3723, allocations: 23.92 kB / 1.064 GB, free: 11.93 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/0.3724, allocations: 43.97 kB / 1.064 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.928e-05/0.3724, allocations: 19.98 kB / 1.064 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001506/0.3726, allocations: 177.6 kB / 1.064 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3726, allocations: 0 / 1.064 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003744/0.373, allocations: 79.94 kB / 1.064 GB, free: 11.61 MB / 0.8262 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.0002379/0.3732, allocations: 149.4 kB / 1.065 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0008749/0.3741, allocations: 0.7142 MB / 1.065 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.3741, allocations: 0 / 1.065 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003259/0.3745, allocations: 348.2 kB / 1.066 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004259/0.3749, allocations: 49.03 kB / 1.066 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008498/0.3758, allocations: 0.5548 MB / 1.066 GB, free: 9.707 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003038/0.3761, allocations: 0.7402 MB / 1.067 GB, free: 8.941 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001005/0.3762, allocations: 37.92 kB / 1.067 GB, free: 8.906 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.795e-05/0.3762, allocations: 23.44 kB / 1.067 GB, free: 8.883 MB / 0.8262 GB Notification: Performance of SimCode: time 2.1e-07/0.3762, allocations: 0 / 1.067 GB, free: 8.883 MB / 0.8262 GB Notification: Performance of Templates: time 0.008579/0.3848, allocations: 4.843 MB / 1.072 GB, free: 4.109 MB / 0.8262 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