Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.207/2.207, allocations: 387.4 MB / 394.9 MB, free: 13.35 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001142/0.001142, allocations: 188.8 kB / 487.4 MB, free: 5.051 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.481/1.481, allocations: 221.5 MB / 0.7824 GB, free: 0.9414 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009295/0.0009299, allocations: 95.83 kB / 0.9219 GB, free: 2.176 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.321e-05/1.322e-05, allocations: 0 / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2717/0.2718, allocations: 142.4 MB / 1.206 GB, free: 43.97 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.969/1.241, allocations: 156.2 MB / 1.359 GB, free: 18.38 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003155/1.241, allocations: 88.8 kB / 1.359 GB, free: 18.38 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.035/1.276, allocations: 8.736 MB / 1.367 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.084e-06/1.276, allocations: 0 / 1.367 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 9.039e-05/1.276, allocations: 11.59 kB / 1.367 GB, free: 33.52 MB / 0.8386 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.002401/1.279, allocations: 0.7575 MB / 1.368 GB, free: 33 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.619e-05/1.279, allocations: 7.719 kB / 1.368 GB, free: 33 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002939/1.279, allocations: 57.78 kB / 1.368 GB, free: 32.97 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009909/1.28, allocations: 412.1 kB / 1.368 GB, free: 32.72 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.977e-05/1.28, allocations: 22.17 kB / 1.368 GB, free: 32.72 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001362/1.28, allocations: 26.94 kB / 1.368 GB, free: 32.72 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001096/1.282, allocations: 313.7 kB / 1.369 GB, free: 32.72 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00124/1.283, allocations: 462.1 kB / 1.369 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.319e-05/1.283, allocations: 0 / 1.369 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.405e-05/1.283, allocations: 3.906 kB / 1.369 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.204e-05/1.283, allocations: 15.47 kB / 1.369 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003756/1.287, allocations: 1.802 MB / 1.371 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008362/1.288, allocations: 294.5 kB / 1.371 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000311/1.288, allocations: 132.2 kB / 1.371 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 5.24e-05/1.288, allocations: 7.844 kB / 1.371 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005106/1.289, allocations: 210.7 kB / 1.372 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=35): time 4.519e-06/1.289, allocations: 0 / 1.372 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of matching and sorting (n=35): time 0.0007896/1.289, allocations: 280.8 kB / 1.372 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.189e-05/1.289, allocations: 143.6 kB / 1.372 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000496/1.29, allocations: 292.5 kB / 1.372 GB, free: 31.17 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 7.555e-05/1.29, allocations: 39.02 kB / 1.372 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002504/1.29, allocations: 245.4 kB / 1.372 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.000118/1.29, allocations: 100.3 kB / 1.373 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.275e-05/1.29, allocations: 0 / 1.373 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002113/1.291, allocations: 353 kB / 1.373 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003221/1.291, allocations: 112.1 kB / 1.373 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004145/1.291, allocations: 234 kB / 1.373 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000363/1.292, allocations: 123.2 kB / 1.373 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.593e-06/1.292, allocations: 3.844 kB / 1.373 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0009905/1.293, allocations: 385.6 kB / 1.374 GB, free: 30.4 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 5.09e-05/1.293, allocations: 36.36 kB / 1.374 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/1.293, allocations: 3.969 kB / 1.374 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.06e-05/1.293, allocations: 7.828 kB / 1.374 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005624/1.294, allocations: 88.47 kB / 1.374 GB, free: 30.35 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.499e-05/1.294, allocations: 7.656 kB / 1.374 GB, free: 30.35 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006688/1.294, allocations: 58.19 kB / 1.374 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.229e-05/1.294, allocations: 22.06 kB / 1.374 GB, free: 30.34 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 35 ($PRE.preHeatCoil.toOn.enableFire,$PRE.preHeatCoil.toOff.enableFire,$PRE.preHeatCoil.toOn.t_start,preHeatCoil.toOn.t_start,preHeatCoil.stateGraphRoot.resume,preHeatCoil.stateGraphRoot.suspend,$whenCondition2,$whenCondition1,$PRE.TMix.T_start,TMix.T_start,$PRE.TMix.count,TMix.count,$PRE.preHeatCoil.preHeaOn.y,preHeatCoil.preHeaOn.y,$PRE.preHeatCoil.pumOff.localActive,preHeatCoil.pumOff.localActive,$PRE.preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.newActive,$PRE.preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.active,preHeatCoil.toOn.enableFire,preHeatCoil.stateGraphRoot.activeSteps,$PRE.preHeatCoil.pumOn.localActive,preHeatCoil.pumOn.localActive,$PRE.preHeatCoil.pumOn.newActive,preHeatCoil.pumOn.newActive,$PRE.preHeatCoil.pumOn.oldActive,preHeatCoil.pumOn.oldActive,preHeatCoil.pumOn.active,preHeatCoil.toOff.enableFire,preHeatCoil.toOff.fire,$PRE.preHeatCoil.toOff.t_start,preHeatCoil.toOff.t_start,preHeatCoil.preHeaCoiCon.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002045/1.295, allocations: 136.8 kB / 1.374 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.499e-05/1.295, allocations: 38.81 kB / 1.374 GB, free: 30.19 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008094/1.296, allocations: 295.5 kB / 1.374 GB, free: 30.14 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.065e-06/1.296, allocations: 3.875 kB / 1.374 GB, free: 30.14 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.351e-06/1.296, allocations: 0 / 1.374 GB, free: 30.14 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.264e-05/1.296, allocations: 10.22 kB / 1.374 GB, free: 30.14 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001826/1.297, allocations: 0.8358 MB / 1.375 GB, free: 29.84 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/1.297, allocations: 0 / 1.375 GB, free: 29.84 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004312/1.298, allocations: 68.98 kB / 1.375 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.065e-05/1.298, allocations: 3.875 kB / 1.375 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.875e-05/1.298, allocations: 3.844 kB / 1.375 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.849e-06/1.298, allocations: 0 / 1.375 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/1.298, allocations: 3.047 kB / 1.375 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001138/1.299, allocations: 0.5631 MB / 1.376 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001967/1.299, allocations: 142.6 kB / 1.376 GB, free: 29.49 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.561e-05/1.299, allocations: 6.609 kB / 1.376 GB, free: 29.49 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005855/1.3, allocations: 62.02 kB / 1.376 GB, free: 29.48 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001732/1.3, allocations: 45.73 kB / 1.376 GB, free: 29.48 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.247e-05/1.3, allocations: 10.81 kB / 1.376 GB, free: 29.48 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0003261/1.301, allocations: 209.5 kB / 1.376 GB, free: 29.4 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2.61e-07/1.301, allocations: 0 / 1.376 GB, free: 29.4 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0007334/1.301, allocations: 84.39 kB / 1.376 GB, free: 29.39 MB / 0.8386 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.localActive,preHeatCoil.pumOff.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,TMix.T_start,TMix.count,preHeatCoil.preHeaOn.y,preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.active,preHeatCoil.toOn.enableFire,preHeatCoil.stateGraphRoot.activeSteps,preHeatCoil.pumOn.newActive,preHeatCoil.pumOn.oldActive,preHeatCoil.pumOn.active,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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002532/1.302, allocations: 127.3 kB / 1.376 GB, free: 29.29 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000806/1.302, allocations: 355.8 kB / 1.377 GB, free: 29.21 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/1.303, allocations: 0 / 1.377 GB, free: 29.21 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003854/1.303, allocations: 149.9 kB / 1.377 GB, free: 29.2 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007195/1.304, allocations: 68.56 kB / 1.377 GB, free: 29.2 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001709/1.305, allocations: 0.5134 MB / 1.378 GB, free: 28.98 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006076/1.306, allocations: 0.8388 MB / 1.378 GB, free: 28.28 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0003817/1.306, allocations: 48.62 kB / 1.378 GB, free: 28.26 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001727/1.307, allocations: 35.19 kB / 1.378 GB, free: 28.25 MB / 0.8386 GB Notification: Performance of SimCode: time 1.343e-06/1.307, allocations: 3.938 kB / 1.378 GB, free: 28.25 MB / 0.8386 GB Notification: Performance of Templates: time 0.01445/1.321, allocations: 4.296 MB / 1.383 GB, free: 27.11 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.makefile (rm -f Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; mkfifo Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe >> ../files/Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.sim & ./Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil.csv","../files/Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches