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.286/2.286, allocations: 387.1 MB / 399.7 MB, free: 9.434 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.001648/0.001648, allocations: 173 kB / 492.3 MB, free: 0.582 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.677/1.677, allocations: 221.3 MB / 0.7871 GB, free: 12.95 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00107/0.00107, allocations: 87.89 kB / 0.9267 GB, free: 14 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.368e-05/3.371e-05, allocations: 3.984 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2962/0.2962, allocations: 142.3 MB / 1.212 GB, free: 38.49 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9553/1.252, allocations: 156.9 MB / 1.366 GB, free: 19.06 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002573/1.252, allocations: 97.98 kB / 1.366 GB, free: 19.05 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.02043/1.272, allocations: 8.827 MB / 1.374 GB, free: 34.17 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.595e-06/1.272, allocations: 0 / 1.374 GB, free: 34.17 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.278e-05/1.272, allocations: 19.5 kB / 1.374 GB, free: 34.16 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.001115/1.274, allocations: 0.7428 MB / 1.375 GB, free: 33.65 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.894e-05/1.274, allocations: 15.53 kB / 1.375 GB, free: 33.64 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001073/1.274, allocations: 54.22 kB / 1.375 GB, free: 33.62 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005101/1.274, allocations: 416.5 kB / 1.376 GB, free: 33.37 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.68e-05/1.274, allocations: 38.06 kB / 1.376 GB, free: 33.37 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.709e-05/1.274, allocations: 52.14 kB / 1.376 GB, free: 33.37 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007351/1.275, allocations: 0.5037 MB / 1.376 GB, free: 33.24 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.426e-05/1.275, allocations: 7.891 kB / 1.376 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.35e-05/1.275, allocations: 22.97 kB / 1.376 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.868e-06/1.275, allocations: 14.67 kB / 1.376 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004986/1.276, allocations: 332.9 kB / 1.376 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001925/1.278, allocations: 1.912 MB / 1.378 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005367/1.278, allocations: 315.1 kB / 1.379 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000177/1.278, allocations: 136.8 kB / 1.379 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.342e-05/1.278, allocations: 7.188 kB / 1.379 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003204/1.279, allocations: 219 kB / 1.379 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=35): time 1.974e-06/1.279, allocations: 0 / 1.379 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of matching and sorting (n=35): time 0.0004754/1.279, allocations: 302 kB / 1.379 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.756e-05/1.279, allocations: 143.1 kB / 1.379 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003319/1.28, allocations: 358.1 kB / 1.38 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.458e-05/1.28, allocations: 43.52 kB / 1.38 GB, free: 31.74 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001422/1.28, allocations: 243.9 kB / 1.38 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.145e-05/1.28, allocations: 99.75 kB / 1.38 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.218e-05/1.28, allocations: 12.84 kB / 1.38 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001069/1.28, allocations: 354.3 kB / 1.38 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001873/1.28, allocations: 129.3 kB / 1.381 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002364/1.28, allocations: 241.8 kB / 1.381 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002143/1.281, allocations: 166.5 kB / 1.381 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/1.281, allocations: 4 kB / 1.381 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0005702/1.281, allocations: 455.2 kB / 1.381 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.307e-05/1.281, allocations: 40.38 kB / 1.381 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/1.281, allocations: 3.25 kB / 1.381 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.754e-05/1.281, allocations: 8.219 kB / 1.381 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003149/1.282, allocations: 91.56 kB / 1.382 GB, free: 30.9 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.08e-05/1.282, allocations: 3.844 kB / 1.382 GB, free: 30.9 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003582/1.282, allocations: 80.91 kB / 1.382 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.078e-05/1.282, allocations: 20.77 kB / 1.382 GB, free: 30.88 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.0001151/1.282, allocations: 150.4 kB / 1.382 GB, free: 30.76 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.793e-05/1.282, allocations: 42.62 kB / 1.382 GB, free: 30.74 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005119/1.283, allocations: 341.5 kB / 1.382 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/1.283, allocations: 3.719 kB / 1.382 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/1.283, allocations: 0 / 1.382 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-06/1.283, allocations: 2.578 kB / 1.382 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001008/1.284, allocations: 0.9263 MB / 1.383 GB, free: 30.35 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/1.284, allocations: 0 / 1.383 GB, free: 30.35 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002721/1.284, allocations: 71.95 kB / 1.383 GB, free: 30.33 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/1.284, allocations: 0 / 1.383 GB, free: 30.33 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.567e-05/1.284, allocations: 7.188 kB / 1.383 GB, free: 30.33 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/1.284, allocations: 3.906 kB / 1.383 GB, free: 30.33 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/1.284, allocations: 3.953 kB / 1.383 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006454/1.285, allocations: 0.5933 MB / 1.384 GB, free: 30.08 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001278/1.285, allocations: 158.2 kB / 1.384 GB, free: 29.95 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.498e-05/1.285, allocations: 7.531 kB / 1.384 GB, free: 29.95 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003385/1.285, allocations: 60.78 kB / 1.384 GB, free: 29.93 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001069/1.285, allocations: 41.38 kB / 1.384 GB, free: 29.91 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.485e-05/1.286, allocations: 18.77 kB / 1.384 GB, free: 29.91 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0002278/1.286, allocations: 259.8 kB / 1.384 GB, free: 29.8 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2.6e-07/1.286, allocations: 0 / 1.384 GB, free: 29.8 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000358/1.286, allocations: 97.11 kB / 1.384 GB, free: 29.79 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.0001604/1.286, allocations: 129.5 kB / 1.384 GB, free: 29.7 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004946/1.287, allocations: 377.8 kB / 1.385 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/1.287, allocations: 0 / 1.385 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002158/1.287, allocations: 156.2 kB / 1.385 GB, free: 29.6 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004101/1.287, allocations: 78.72 kB / 1.385 GB, free: 29.58 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008884/1.288, allocations: 0.5407 MB / 1.386 GB, free: 29.32 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003288/1.289, allocations: 0.8398 MB / 1.386 GB, free: 28.55 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001923/1.289, allocations: 54.12 kB / 1.386 GB, free: 28.53 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001064/1.289, allocations: 38.27 kB / 1.386 GB, free: 28.52 MB / 0.8386 GB Notification: Performance of SimCode: time 2.21e-07/1.289, allocations: 0 / 1.386 GB, free: 28.52 MB / 0.8386 GB Notification: Performance of Templates: time 0.007831/1.297, allocations: 4.833 MB / 1.391 GB, free: 26.16 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