Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001625/0.001625, allocations: 108.6 kB / 15.99 MB, free: 6.348 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.001808/0.001808, allocations: 189.2 kB / 16.91 MB, free: 6.184 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.41/1.41, allocations: 222.9 MB / 240.6 MB, free: 13.71 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.687/2.687, allocations: 469.8 MB / 0.7427 GB, free: 3.656 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001918/0.001918, allocations: 63.44 kB / 0.9087 GB, free: 14.25 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3388/0.3408, allocations: 159.1 MB / 1.064 GB, free: 15.13 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.004811/0.3456, allocations: 3.002 MB / 1.067 GB, free: 12.11 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002252/0.3479, allocations: 1.099 MB / 1.068 GB, free: 11 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003345/0.3483, allocations: 15.94 kB / 1.068 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0002751/0.3486, allocations: 55.52 kB / 1.068 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.000214/0.3488, allocations: 59.52 kB / 1.068 GB, free: 10.87 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009043/0.3497, allocations: 309.8 kB / 1.069 GB, free: 10.57 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0008327/0.3506, allocations: 0.7147 MB / 1.069 GB, free: 9.855 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006825/0.3513, allocations: 496.3 kB / 1.07 GB, free: 9.367 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002988/0.3516, allocations: 247.1 kB / 1.07 GB, free: 9.125 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002979/0.3519, allocations: 250.8 kB / 1.07 GB, free: 8.879 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 9.763e-05/0.352, allocations: 68 kB / 1.07 GB, free: 8.812 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000142/0.3521, allocations: 87.98 kB / 1.07 GB, free: 8.727 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001411/0.3523, allocations: 131.6 kB / 1.07 GB, free: 8.598 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.000254/0.3525, allocations: 282.5 kB / 1.071 GB, free: 8.32 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0006575/0.3532, allocations: 0.5772 MB / 1.071 GB, free: 7.742 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 8.867e-06/0.3532, allocations: 8 kB / 1.071 GB, free: 7.734 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.164e-06/0.3532, allocations: 0 / 1.071 GB, free: 7.734 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.55e-05/0.3533, allocations: 0 / 1.071 GB, free: 7.734 MB / 0.8419 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.001789/0.3551, allocations: 0.8752 MB / 1.072 GB, free: 6.801 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.3551, allocations: 8.031 kB / 1.072 GB, free: 6.793 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001299/0.3552, allocations: 60.28 kB / 1.072 GB, free: 6.734 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006827/0.3559, allocations: 440.5 kB / 1.073 GB, free: 6.266 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.91e-05/0.356, allocations: 45.36 kB / 1.073 GB, free: 6.219 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.057e-05/0.3561, allocations: 48.38 kB / 1.073 GB, free: 6.172 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001107/0.3572, allocations: 0.5432 MB / 1.073 GB, free: 5.598 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.567e-05/0.3572, allocations: 3.938 kB / 1.073 GB, free: 5.594 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.813e-05/0.3573, allocations: 16 kB / 1.073 GB, free: 5.578 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.41e-05/0.3573, allocations: 12 kB / 1.073 GB, free: 5.566 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001017/0.3583, allocations: 399.6 kB / 1.074 GB, free: 5.176 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002596/0.3609, allocations: 1.852 MB / 1.075 GB, free: 3.246 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009972/0.3619, allocations: 357.5 kB / 1.076 GB, free: 2.879 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004239/0.3624, allocations: 177.6 kB / 1.076 GB, free: 2.699 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 4.056e-05/0.3624, allocations: 7.938 kB / 1.076 GB, free: 2.691 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006659/0.3631, allocations: 247.5 kB / 1.076 GB, free: 2.43 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=35): time 2.484e-06/0.3631, allocations: 0 / 1.076 GB, free: 2.43 MB / 0.8419 GB Notification: Performance of matching and sorting (n=35): time 0.001349/0.3645, allocations: 491.8 kB / 1.077 GB, free: 1.945 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.815e-05/0.3646, allocations: 81.11 kB / 1.077 GB, free: 1.848 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005092/0.3651, allocations: 401.6 kB / 1.077 GB, free: 1.445 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 5.548e-05/0.3651, allocations: 45.7 kB / 1.077 GB, free: 1.395 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002353/0.3654, allocations: 256.1 kB / 1.077 GB, free: 1.141 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 9.662e-05/0.3655, allocations: 94.73 kB / 1.078 GB, free: 1.047 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001984/0.3657, allocations: 110.1 kB / 1.078 GB, free: 0.9297 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001756/0.3659, allocations: 354.8 kB / 1.078 GB, free: 0.5742 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004282/0.3663, allocations: 153 kB / 1.078 GB, free: 436 kB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004958/0.3668, allocations: 265.8 kB / 1.078 GB, free: 128 kB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.4779/0.8447, allocations: 407.1 kB / 1.079 GB, free: 21.95 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.943e-06/0.8447, allocations: 1.031 kB / 1.079 GB, free: 21.95 MB / 0.8419 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001256/0.846, allocations: 0.5208 MB / 1.079 GB, free: 21.87 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.906e-05/0.8461, allocations: 34.45 kB / 1.079 GB, free: 21.84 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.184e-05/0.8461, allocations: 3.531 kB / 1.079 GB, free: 21.84 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.719e-05/0.8461, allocations: 7.047 kB / 1.079 GB, free: 21.84 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003591/0.8465, allocations: 78.41 kB / 1.079 GB, free: 21.83 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.603e-05/0.8465, allocations: 6.531 kB / 1.079 GB, free: 21.83 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000385/0.8469, allocations: 70.92 kB / 1.079 GB, free: 21.83 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.176e-05/0.8469, allocations: 18.89 kB / 1.08 GB, free: 21.83 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.0002846/0.8472, allocations: 212.4 kB / 1.08 GB, free: 21.71 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.606e-05/0.8473, allocations: 41.56 kB / 1.08 GB, free: 21.71 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000987/0.8483, allocations: 389.3 kB / 1.08 GB, free: 21.66 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.145e-06/0.8483, allocations: 8.25 kB / 1.08 GB, free: 21.66 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.8483, allocations: 1.25 kB / 1.08 GB, free: 21.66 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.318e-06/0.8484, allocations: 2.391 kB / 1.08 GB, free: 21.66 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001598/0.85, allocations: 0.9709 MB / 1.081 GB, free: 21.32 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.85, allocations: 1.25 kB / 1.081 GB, free: 21.32 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002595/0.8502, allocations: 50.7 kB / 1.081 GB, free: 21.31 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.841e-06/0.8503, allocations: 3.172 kB / 1.081 GB, free: 21.31 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.955e-05/0.8503, allocations: 12.59 kB / 1.081 GB, free: 21.3 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.474e-06/0.8503, allocations: 4.469 kB / 1.081 GB, free: 21.3 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.8503, allocations: 0.5312 kB / 1.081 GB, free: 21.3 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001224/0.8516, allocations: 0.6359 MB / 1.082 GB, free: 21 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001268/0.8517, allocations: 149.8 kB / 1.082 GB, free: 20.88 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.119e-05/0.8518, allocations: 17.58 kB / 1.082 GB, free: 20.86 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003128/0.8521, allocations: 33.2 kB / 1.082 GB, free: 20.86 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001377/0.8522, allocations: 48.88 kB / 1.082 GB, free: 20.85 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.244e-05/0.8523, allocations: 12.97 kB / 1.082 GB, free: 20.84 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0003205/0.8526, allocations: 265.2 kB / 1.082 GB, free: 20.71 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.41e-07/0.8526, allocations: 0 / 1.082 GB, free: 20.71 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004851/0.8531, allocations: 95.91 kB / 1.082 GB, free: 20.69 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.localActive,preHeatCoil.pumOff.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,TMix.T_start,TMix.count,preHeatCoil.preHeaOn.y,preHeatCoil.pumOff.active,preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.oldActive,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) * 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.0001767/0.8533, allocations: 128 kB / 1.082 GB, free: 20.59 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001113/0.8544, allocations: 452.4 kB / 1.083 GB, free: 20.41 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.8544, allocations: 1.406 kB / 1.083 GB, free: 20.41 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004311/0.8548, allocations: 179.1 kB / 1.083 GB, free: 20.36 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005774/0.8554, allocations: 95.22 kB / 1.083 GB, free: 20.33 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001377/0.8568, allocations: 0.9382 MB / 1.084 GB, free: 19.7 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002712/0.8571, allocations: 0.828 MB / 1.085 GB, free: 18.99 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001435/0.8572, allocations: 42.97 kB / 1.085 GB, free: 18.98 MB / 0.8419 GB Notification: Performance of SimCode: time 3.2e-07/0.8573, allocations: 0 / 1.085 GB, free: 18.98 MB / 0.8419 GB Notification: Performance of Templates: time 0.0134/0.8707, allocations: 5.954 MB / 1.091 GB, free: 18.3 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.makefile (rm -f Buildings_11_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; mkfifo Buildings_11_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; head -c 1048576 < Buildings_11_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe >> ../files/Buildings_11_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.sim & ./Buildings_11_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches