Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.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.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|preHeatCoil.TAirSup|preHeatCoil.TSupSetHea|preHeatCoil.TMix|preHeatCoil.yPum|preHeatCoil.yVal",fileNamePrefix="Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil") translateModel(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|preHeatCoil.TAirSup|preHeatCoil.TSupSetHea|preHeatCoil.TMix|preHeatCoil.yPum|preHeatCoil.yVal",fileNamePrefix="Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001531/0.001531, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00189/0.00189, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.429/1.429, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.751/2.751, allocations: 472.6 MB / 0.7451 GB, free: 4.598 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001303/0.001303, allocations: 62.72 kB / 0.9121 GB, free: 33.33 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3359/0.3372, allocations: 159.9 MB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.004419/0.3416, allocations: 2.931 MB / 1.071 GB, free: 7.43 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002044/0.3437, allocations: 1.103 MB / 1.072 GB, free: 6.32 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002733/0.344, allocations: 15.94 kB / 1.072 GB, free: 6.305 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002629/0.3443, allocations: 83.08 kB / 1.072 GB, free: 6.223 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001835/0.3445, allocations: 87.17 kB / 1.072 GB, free: 6.137 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007718/0.3453, allocations: 339.2 kB / 1.073 GB, free: 5.809 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0006458/0.3459, allocations: 0.703 MB / 1.073 GB, free: 5.105 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006076/0.3466, allocations: 496.3 kB / 1.074 GB, free: 4.613 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002541/0.3468, allocations: 251.1 kB / 1.074 GB, free: 4.367 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002726/0.3471, allocations: 246.8 kB / 1.074 GB, free: 4.125 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 8.997e-05/0.3472, allocations: 68 kB / 1.074 GB, free: 4.059 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000129/0.3473, allocations: 79.98 kB / 1.074 GB, free: 3.98 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001267/0.3475, allocations: 143.5 kB / 1.075 GB, free: 3.84 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002192/0.3477, allocations: 282.6 kB / 1.075 GB, free: 3.562 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000672/0.3484, allocations: 0.7168 MB / 1.076 GB, free: 2.844 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.3484, allocations: 0 / 1.076 GB, free: 2.844 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.653e-06/0.3484, allocations: 0 / 1.076 GB, free: 2.844 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.528e-06/0.3484, allocations: 0 / 1.076 GB, free: 2.844 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.001641/0.3501, allocations: 0.8868 MB / 1.076 GB, free: 1.902 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.3501, allocations: 8.031 kB / 1.076 GB, free: 1.895 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001163/0.3502, allocations: 60.28 kB / 1.076 GB, free: 1.836 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000596/0.3508, allocations: 440.5 kB / 1.077 GB, free: 1.359 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.089e-05/0.3509, allocations: 37.38 kB / 1.077 GB, free: 1.324 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.419e-05/0.351, allocations: 52.36 kB / 1.077 GB, free: 1.273 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009747/0.352, allocations: 0.5316 MB / 1.078 GB, free: 0.7109 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.352, allocations: 0 / 1.078 GB, free: 0.7109 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.661e-05/0.3521, allocations: 23.98 kB / 1.078 GB, free: 0.6875 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.298e-05/0.3521, allocations: 16 kB / 1.078 GB, free: 0.6719 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009421/0.353, allocations: 395.6 kB / 1.078 GB, free: 292 kB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002141/0.3552, allocations: 1.852 MB / 1.08 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009407/0.3561, allocations: 356 kB / 1.08 GB, free: 13.99 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004061/0.3566, allocations: 178.1 kB / 1.08 GB, free: 13.81 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.955e-05/0.3566, allocations: 4 kB / 1.08 GB, free: 13.81 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006055/0.3572, allocations: 257.5 kB / 1.08 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=35): time 1.884e-06/0.3572, allocations: 0 / 1.08 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of matching and sorting (n=35): time 0.001315/0.3585, allocations: 495.7 kB / 1.081 GB, free: 13.05 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.716e-05/0.3586, allocations: 89.09 kB / 1.081 GB, free: 12.94 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004346/0.3591, allocations: 393.5 kB / 1.081 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.915e-05/0.3591, allocations: 49.69 kB / 1.081 GB, free: 12.49 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001888/0.3593, allocations: 252.3 kB / 1.082 GB, free: 12.24 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 8.912e-05/0.3594, allocations: 102.6 kB / 1.082 GB, free: 12.14 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001592/0.3596, allocations: 106.2 kB / 1.082 GB, free: 12.03 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001409/0.3597, allocations: 350.8 kB / 1.082 GB, free: 11.68 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004247/0.3601, allocations: 157 kB / 1.082 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004906/0.3606, allocations: 269.9 kB / 1.083 GB, free: 11.22 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001051/0.3617, allocations: 407.4 kB / 1.083 GB, free: 10.77 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.01e-05/0.3617, allocations: 4 kB / 1.083 GB, free: 10.77 MB / 0.8419 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001108/0.3629, allocations: 0.5266 MB / 1.084 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.851e-05/0.3629, allocations: 37.73 kB / 1.084 GB, free: 10.19 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.748e-05/0.3629, allocations: 0 / 1.084 GB, free: 10.19 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.301e-05/0.363, allocations: 11.98 kB / 1.084 GB, free: 10.18 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003299/0.3633, allocations: 71.83 kB / 1.084 GB, free: 10.11 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.165e-05/0.3633, allocations: 8 kB / 1.084 GB, free: 10.1 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003711/0.3637, allocations: 67.48 kB / 1.084 GB, free: 10.03 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.275e-05/0.3637, allocations: 20 kB / 1.084 GB, free: 10.01 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 35 ($PRE.preHeatCoil.toOn.enableFire,$PRE.preHeatCoil.toOff.enableFire,preHeatCoil.toOn.t_start,$PRE.preHeatCoil.toOn.t_start,preHeatCoil.stateGraphRoot.resume,preHeatCoil.stateGraphRoot.suspend,preHeatCoil.toOff.t_start,$PRE.preHeatCoil.toOff.t_start,preHeatCoil.toOff.fire,preHeatCoil.toOff.enableFire,preHeatCoil.pumOn.active,preHeatCoil.pumOn.oldActive,$PRE.preHeatCoil.pumOn.oldActive,preHeatCoil.pumOn.newActive,$PRE.preHeatCoil.pumOn.newActive,preHeatCoil.pumOn.localActive,$PRE.preHeatCoil.pumOn.localActive,preHeatCoil.stateGraphRoot.activeSteps,preHeatCoil.toOn.enableFire,preHeatCoil.pumOff.oldActive,$PRE.preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.newActive,$PRE.preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.localActive,$PRE.preHeatCoil.pumOff.localActive,preHeatCoil.pumOff.active,preHeatCoil.preHeaOn.y,$PRE.preHeatCoil.preHeaOn.y,TMix.count,$PRE.TMix.count,TMix.T_start,$PRE.TMix.T_start,$whenCondition1,$whenCondition2,preHeatCoil.preHeaCoiCon.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 1 * 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.0002391/0.364, allocations: 211.5 kB / 1.084 GB, free: 9.801 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.346e-05/0.3641, allocations: 47.38 kB / 1.084 GB, free: 9.754 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009366/0.365, allocations: 386.2 kB / 1.084 GB, free: 9.371 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/0.365, allocations: 4 kB / 1.084 GB, free: 9.367 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.241e-06/0.365, allocations: 0 / 1.084 GB, free: 9.367 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.365, allocations: 3.984 kB / 1.084 GB, free: 9.363 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001566/0.3666, allocations: 0.9599 MB / 1.085 GB, free: 8.344 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.3666, allocations: 0 / 1.085 GB, free: 8.344 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002646/0.3669, allocations: 51.89 kB / 1.085 GB, free: 8.293 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.759e-05/0.3669, allocations: 7.984 kB / 1.085 GB, free: 8.285 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.591e-05/0.367, allocations: 4 kB / 1.085 GB, free: 8.281 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.159e-06/0.367, allocations: 8 kB / 1.085 GB, free: 8.273 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.367, allocations: 0 / 1.085 GB, free: 8.273 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001324/0.3683, allocations: 0.6499 MB / 1.086 GB, free: 7.602 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001531/0.3685, allocations: 152.5 kB / 1.086 GB, free: 7.434 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.064e-05/0.3685, allocations: 12 kB / 1.086 GB, free: 7.422 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003218/0.3689, allocations: 31.95 kB / 1.086 GB, free: 7.391 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001323/0.369, allocations: 43.89 kB / 1.086 GB, free: 7.348 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.046e-05/0.369, allocations: 15.98 kB / 1.086 GB, free: 7.332 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002891/0.3693, allocations: 267.2 kB / 1.087 GB, free: 7.07 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.91e-07/0.3694, allocations: 0 / 1.087 GB, free: 7.07 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004401/0.3698, allocations: 99.69 kB / 1.087 GB, free: 6.973 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (preHeatCoil.preHeaCoiCon.I.y) * Number of discrete variables: 21 (preHeatCoil.toOn.t_start,preHeatCoil.toOff.enableFire,preHeatCoil.pumOn.active,preHeatCoil.pumOff.active,$cse1,$cse2,$whenCondition2,$whenCondition1,TMix.T_start,TMix.count,preHeatCoil.preHeaOn.y,preHeatCoil.pumOff.localActive,preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.oldActive,preHeatCoil.toOn.enableFire,preHeatCoil.stateGraphRoot.activeSteps,preHeatCoil.pumOn.localActive,preHeatCoil.pumOn.newActive,preHeatCoil.pumOn.oldActive,preHeatCoil.toOff.fire,preHeatCoil.toOff.t_start) * Number of discrete states: 5 (TMix.count,preHeatCoil.pumOff.newActive,preHeatCoil.pumOn.newActive,preHeatCoil.preHeaOn.y,preHeatCoil.toOn.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.0001905/0.37, allocations: 131 kB / 1.087 GB, free: 6.836 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001128/0.3711, allocations: 455.3 kB / 1.087 GB, free: 6.379 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3711, allocations: 0 / 1.087 GB, free: 6.379 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004388/0.3716, allocations: 188.4 kB / 1.087 GB, free: 6.195 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005435/0.3721, allocations: 87.69 kB / 1.087 GB, free: 6.109 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001485/0.3736, allocations: 0.7553 MB / 1.088 GB, free: 5.32 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004048/0.3741, allocations: 0.8311 MB / 1.089 GB, free: 4.465 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002164/0.3743, allocations: 55.42 kB / 1.089 GB, free: 4.406 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000111/0.3744, allocations: 39.44 kB / 1.089 GB, free: 4.367 MB / 0.8419 GB Notification: Performance of SimCode: time 4.81e-07/0.3744, allocations: 4 kB / 1.089 GB, free: 4.363 MB / 0.8419 GB Notification: Performance of Templates: time 0.009859/0.3843, allocations: 4.971 MB / 1.094 GB, free: 15.44 MB / 0.8575 GB make -j1 -f Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.makefile (rm -f Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; mkfifo Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe >> ../files/Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.sim & ./Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches