Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.001324/0.001324, allocations: 105.3 kB / 16.41 MB, free: 6.414 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.001391/0.001391, allocations: 191.6 kB / 17.34 MB, free: 5.691 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.372/1.372, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.544/2.544, allocations: 437 MB / 0.7112 GB, free: 4.395 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001562/0.001562, allocations: 67.88 kB / 1.019 GB, free: 9.434 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8459/0.8474, allocations: 151.6 MB / 1.167 GB, free: 3.836 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.00422/0.8517, allocations: 2.935 MB / 1.17 GB, free: 0.8828 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.002039/0.8538, allocations: 1.099 MB / 1.171 GB, free: 15.78 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002697/0.854, allocations: 15.94 kB / 1.171 GB, free: 15.76 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0002686/0.8543, allocations: 75.14 kB / 1.171 GB, free: 15.69 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0001934/0.8545, allocations: 91.17 kB / 1.171 GB, free: 15.6 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007866/0.8553, allocations: 345.7 kB / 1.172 GB, free: 15.26 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0007132/0.8561, allocations: 0.7146 MB / 1.172 GB, free: 14.55 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005956/0.8567, allocations: 0.4886 MB / 1.173 GB, free: 14.05 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002415/0.8569, allocations: 247.1 kB / 1.173 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000254/0.8572, allocations: 254.8 kB / 1.173 GB, free: 13.55 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 8.151e-05/0.8573, allocations: 71.98 kB / 1.173 GB, free: 13.48 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001207/0.8574, allocations: 80 kB / 1.174 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001172/0.8575, allocations: 143.5 kB / 1.174 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0002134/0.8578, allocations: 270.7 kB / 1.174 GB, free: 13 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0007729/0.8585, allocations: 0.7593 MB / 1.175 GB, free: 12.24 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.8585, allocations: 0 / 1.175 GB, free: 12.24 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.904e-06/0.8586, allocations: 3.938 kB / 1.175 GB, free: 12.24 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 8.446e-06/0.8586, allocations: 0 / 1.175 GB, free: 12.24 MB / 0.9044 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.001655/0.8602, allocations: 0.8903 MB / 1.176 GB, free: 11.29 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/0.8603, allocations: 12.58 kB / 1.176 GB, free: 11.28 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001145/0.8604, allocations: 72.56 kB / 1.176 GB, free: 11.21 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006873/0.8611, allocations: 448.8 kB / 1.176 GB, free: 10.73 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.965e-05/0.8611, allocations: 37.38 kB / 1.176 GB, free: 10.7 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.254e-05/0.8612, allocations: 52.38 kB / 1.176 GB, free: 10.64 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009945/0.8622, allocations: 0.5316 MB / 1.177 GB, free: 10.08 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.645e-05/0.8623, allocations: 3.938 kB / 1.177 GB, free: 10.08 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.793e-05/0.8623, allocations: 24 kB / 1.177 GB, free: 10.05 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.257e-05/0.8623, allocations: 12 kB / 1.177 GB, free: 10.04 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009628/0.8633, allocations: 395.7 kB / 1.177 GB, free: 9.656 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002182/0.8655, allocations: 1.837 MB / 1.179 GB, free: 7.742 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009308/0.8664, allocations: 369.5 kB / 1.179 GB, free: 7.363 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004104/0.8669, allocations: 173.6 kB / 1.179 GB, free: 7.188 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 3.16e-05/0.8669, allocations: 7.922 kB / 1.179 GB, free: 7.18 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000541/0.8675, allocations: 259 kB / 1.18 GB, free: 6.906 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=35): time 1.883e-06/0.8675, allocations: 0 / 1.18 GB, free: 6.906 MB / 0.9044 GB Notification: Performance of matching and sorting (n=35): time 0.001297/0.8688, allocations: 481.6 kB / 1.18 GB, free: 6.434 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.476e-05/0.8689, allocations: 93.03 kB / 1.18 GB, free: 6.324 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004238/0.8693, allocations: 405.5 kB / 1.181 GB, free: 5.914 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 4.841e-05/0.8693, allocations: 41.7 kB / 1.181 GB, free: 5.867 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001938/0.8695, allocations: 256.7 kB / 1.181 GB, free: 5.613 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 8.077e-05/0.8696, allocations: 103.3 kB / 1.181 GB, free: 5.512 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001567/0.8698, allocations: 110.2 kB / 1.181 GB, free: 5.398 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001453/0.8699, allocations: 354.8 kB / 1.181 GB, free: 5.043 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004154/0.8704, allocations: 149 kB / 1.182 GB, free: 4.898 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004922/0.8709, allocations: 269.8 kB / 1.182 GB, free: 4.59 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008079/0.8717, allocations: 411.3 kB / 1.182 GB, free: 4.141 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.8717, allocations: 4 kB / 1.182 GB, free: 4.137 MB / 0.9044 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001064/0.8728, allocations: 0.5146 MB / 1.183 GB, free: 3.609 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 4.138e-05/0.8728, allocations: 38.11 kB / 1.183 GB, free: 3.566 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.806e-05/0.8728, allocations: 8 kB / 1.183 GB, free: 3.559 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.076e-05/0.8729, allocations: 7.938 kB / 1.183 GB, free: 3.551 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000317/0.8732, allocations: 75.88 kB / 1.183 GB, free: 3.477 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.184e-05/0.8732, allocations: 7.938 kB / 1.183 GB, free: 3.469 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003687/0.8736, allocations: 75.58 kB / 1.183 GB, free: 3.395 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.199e-05/0.8736, allocations: 20 kB / 1.183 GB, free: 3.375 MB / 0.9044 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.0002517/0.8739, allocations: 209.7 kB / 1.183 GB, free: 3.164 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.398e-05/0.874, allocations: 47.66 kB / 1.183 GB, free: 3.117 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009658/0.8749, allocations: 390.1 kB / 1.184 GB, free: 2.73 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.647e-05/0.875, allocations: 4 kB / 1.184 GB, free: 2.727 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.875, allocations: 0 / 1.184 GB, free: 2.727 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.837e-06/0.875, allocations: 3.984 kB / 1.184 GB, free: 2.723 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001588/0.8766, allocations: 0.9559 MB / 1.184 GB, free: 1.707 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.8766, allocations: 0 / 1.184 GB, free: 1.707 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002613/0.8769, allocations: 47.91 kB / 1.185 GB, free: 1.66 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.48e-06/0.8769, allocations: 4 kB / 1.185 GB, free: 1.656 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.818e-05/0.8769, allocations: 11.98 kB / 1.185 GB, free: 1.645 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.8769, allocations: 0 / 1.185 GB, free: 1.645 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.8769, allocations: 0 / 1.185 GB, free: 1.645 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001303/0.8782, allocations: 0.6629 MB / 1.185 GB, free: 0.9609 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000152/0.8784, allocations: 144.8 kB / 1.185 GB, free: 0.8008 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.085e-05/0.8785, allocations: 15.98 kB / 1.185 GB, free: 0.7852 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003258/0.8788, allocations: 39.95 kB / 1.185 GB, free: 0.7422 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001297/0.8789, allocations: 39.89 kB / 1.185 GB, free: 0.7031 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.589e-05/0.879, allocations: 16 kB / 1.185 GB, free: 0.6875 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0002802/0.8793, allocations: 267.2 kB / 1.186 GB, free: 436 kB / 0.9044 GB Notification: Performance of sort global known variables: time 3.3e-07/0.8793, allocations: 0 / 1.186 GB, free: 436 kB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0004314/0.8797, allocations: 99.78 kB / 1.186 GB, free: 336 kB / 0.9044 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.0001807/0.8799, allocations: 125.4 kB / 1.186 GB, free: 204 kB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0009892/0.8809, allocations: 439.3 kB / 1.186 GB, free: 15.76 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.8809, allocations: 0 / 1.186 GB, free: 15.76 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0004361/0.8814, allocations: 184.1 kB / 1.186 GB, free: 15.58 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005498/0.8819, allocations: 92.48 kB / 1.187 GB, free: 15.49 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001431/0.8834, allocations: 0.7798 MB / 1.187 GB, free: 14.68 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004086/0.8838, allocations: 0.8274 MB / 1.188 GB, free: 13.82 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001323/0.8839, allocations: 43.42 kB / 1.188 GB, free: 13.78 MB / 0.92 GB Notification: Performance of SimCode: time 2.8e-07/0.8839, allocations: 0 / 1.188 GB, free: 13.78 MB / 0.92 GB Notification: Performance of Templates: time 0.008776/0.8927, allocations: 6.013 MB / 1.194 GB, free: 7.797 MB / 0.92 GB make -j1 -f Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.makefile (rm -f Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; mkfifo Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe >> ../files/Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.sim & ./Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches