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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.00133/0.00133, allocations: 100.1 kB / 15.88 MB, free: 12 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.00148/0.00148, allocations: 196.9 kB / 16.79 MB, free: 6.809 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.365/1.365, allocations: 222.9 MB / 240.5 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.687/2.687, allocations: 461.8 MB / 0.7348 GB, free: 14.22 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001289, allocations: 65.17 kB / 0.899 GB, free: 37.05 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3431/0.3444, allocations: 157.4 MB / 1.053 GB, free: 8.328 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.004801/0.3492, allocations: 3.014 MB / 1.056 GB, free: 5.293 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002301/0.3516, allocations: 1.106 MB / 1.057 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004901/0.3521, allocations: 15.94 kB / 1.057 GB, free: 4.164 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0003553/0.3525, allocations: 59.45 kB / 1.057 GB, free: 4.105 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000328/0.3529, allocations: 55.58 kB / 1.057 GB, free: 4.051 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.00093/0.3538, allocations: 306.5 kB / 1.057 GB, free: 3.754 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0008257/0.3547, allocations: 0.6443 MB / 1.058 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007422/0.3554, allocations: 451.5 kB / 1.058 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003226/0.3557, allocations: 203.1 kB / 1.058 GB, free: 2.469 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003116/0.3561, allocations: 222.8 kB / 1.059 GB, free: 2.25 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0001078/0.3562, allocations: 32 kB / 1.059 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001286/0.3563, allocations: 44 kB / 1.059 GB, free: 2.176 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001172/0.3564, allocations: 111.5 kB / 1.059 GB, free: 2.066 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002596/0.3567, allocations: 230.6 kB / 1.059 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0005715/0.3573, allocations: 0.5538 MB / 1.06 GB, free: 1.285 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.3573, allocations: 0 / 1.06 GB, free: 1.285 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.382e-06/0.3573, allocations: 0 / 1.06 GB, free: 1.285 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 2.568e-05/0.3573, allocations: 4 kB / 1.06 GB, free: 1.281 MB / 0.8106 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.002144/0.3595, allocations: 0.883 MB / 1.06 GB, free: 348 kB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.534e-05/0.3596, allocations: 15.97 kB / 1.06 GB, free: 332 kB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001874/0.3597, allocations: 56.28 kB / 1.061 GB, free: 276 kB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007596/0.3605, allocations: 444.6 kB / 1.061 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.607e-05/0.3606, allocations: 45.36 kB / 1.061 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.694e-05/0.3607, allocations: 48.38 kB / 1.061 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001103/0.3618, allocations: 0.5316 MB / 1.062 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.738e-05/0.3618, allocations: 7.938 kB / 1.062 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.816e-05/0.3619, allocations: 24 kB / 1.062 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.481e-05/0.3619, allocations: 12 kB / 1.062 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001013/0.3629, allocations: 395.6 kB / 1.062 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002446/0.3654, allocations: 1.852 MB / 1.064 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009512/0.3663, allocations: 367.5 kB / 1.064 GB, free: 12.4 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000396/0.3668, allocations: 173.6 kB / 1.064 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.473e-05/0.3668, allocations: 4 kB / 1.064 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005787/0.3674, allocations: 245.7 kB / 1.065 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=35): time 2.305e-06/0.3674, allocations: 0 / 1.065 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of matching and sorting (n=35): time 0.001297/0.3687, allocations: 487.8 kB / 1.065 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.751e-05/0.3688, allocations: 89.09 kB / 1.065 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004341/0.3692, allocations: 401.5 kB / 1.065 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.031e-05/0.3693, allocations: 37.7 kB / 1.065 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001912/0.3695, allocations: 260.3 kB / 1.066 GB, free: 10.67 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 9.646e-05/0.3696, allocations: 98.73 kB / 1.066 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001629/0.3697, allocations: 106.1 kB / 1.066 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001342/0.3699, allocations: 358.8 kB / 1.066 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004173/0.3703, allocations: 149 kB / 1.066 GB, free: 9.957 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004696/0.3708, allocations: 265.9 kB / 1.067 GB, free: 9.656 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008088/0.3716, allocations: 407.4 kB / 1.067 GB, free: 9.211 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.3716, allocations: 8 kB / 1.067 GB, free: 9.203 MB / 0.8262 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001117/0.3727, allocations: 0.5185 MB / 1.068 GB, free: 8.672 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.412e-05/0.3728, allocations: 37.69 kB / 1.068 GB, free: 8.629 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.3728, allocations: 4 kB / 1.068 GB, free: 8.625 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.956e-05/0.3728, allocations: 4 kB / 1.068 GB, free: 8.621 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003298/0.3732, allocations: 75.83 kB / 1.068 GB, free: 8.547 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.374e-05/0.3732, allocations: 11.92 kB / 1.068 GB, free: 8.535 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003921/0.3736, allocations: 71.56 kB / 1.068 GB, free: 8.465 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.092e-05/0.3737, allocations: 23.98 kB / 1.068 GB, free: 8.441 MB / 0.8262 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.0002591/0.3739, allocations: 205.7 kB / 1.068 GB, free: 8.23 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.064e-05/0.374, allocations: 47.45 kB / 1.068 GB, free: 8.184 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009258/0.3749, allocations: 398.5 kB / 1.068 GB, free: 7.789 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.102e-06/0.3749, allocations: 11.94 kB / 1.068 GB, free: 7.777 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.375, allocations: 0 / 1.068 GB, free: 7.777 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.002e-06/0.375, allocations: 0 / 1.068 GB, free: 7.777 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001632/0.3766, allocations: 0.9478 MB / 1.069 GB, free: 6.77 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/0.3766, allocations: 4 kB / 1.069 GB, free: 6.766 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002747/0.3769, allocations: 51.89 kB / 1.069 GB, free: 6.715 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.59e-06/0.3769, allocations: 0 / 1.069 GB, free: 6.715 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.214e-05/0.377, allocations: 11.98 kB / 1.069 GB, free: 6.703 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.719e-06/0.377, allocations: 4 kB / 1.069 GB, free: 6.699 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.377, allocations: 4.031 kB / 1.069 GB, free: 6.695 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001299/0.3783, allocations: 0.6481 MB / 1.07 GB, free: 6.023 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001615/0.3784, allocations: 148.6 kB / 1.07 GB, free: 5.859 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.768e-05/0.3785, allocations: 8 kB / 1.07 GB, free: 5.852 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003274/0.3789, allocations: 35.95 kB / 1.07 GB, free: 5.816 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001348/0.379, allocations: 47.88 kB / 1.07 GB, free: 5.77 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.014e-05/0.379, allocations: 12.06 kB / 1.07 GB, free: 5.758 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003219/0.3794, allocations: 271.2 kB / 1.071 GB, free: 5.492 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.41e-07/0.3794, allocations: 0 / 1.071 GB, free: 5.492 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004429/0.3798, allocations: 95.69 kB / 1.071 GB, free: 5.398 MB / 0.8262 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.0001886/0.38, allocations: 121.4 kB / 1.071 GB, free: 5.273 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001021/0.381, allocations: 432.6 kB / 1.071 GB, free: 4.84 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3811, allocations: 0 / 1.071 GB, free: 4.84 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0004426/0.3815, allocations: 180.7 kB / 1.071 GB, free: 4.664 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005736/0.3821, allocations: 89.56 kB / 1.071 GB, free: 4.578 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001584/0.3837, allocations: 0.9349 MB / 1.072 GB, free: 3.602 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004208/0.3841, allocations: 0.8274 MB / 1.073 GB, free: 2.746 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001598/0.3843, allocations: 43.42 kB / 1.073 GB, free: 2.703 MB / 0.8262 GB Notification: Performance of SimCode: time 5.71e-07/0.3843, allocations: 3.938 kB / 1.073 GB, free: 2.699 MB / 0.8262 GB Notification: Performance of Templates: time 0.0102/0.3945, allocations: 5.937 MB / 1.079 GB, free: 12.79 MB / 0.8419 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/jenkins1/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