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.0008546/0.0008547, allocations: 92.16 kB / 16.02 MB, free: 80 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.00106/0.00106, allocations: 182.4 kB / 16.92 MB, free: 6.922 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.376/1.376, allocations: 223.3 MB / 241 MB, free: 5.238 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.787/2.787, allocations: 462.6 MB / 0.7371 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004192/0.0004192, allocations: 12.25 kB / 0.9034 GB, free: 36.51 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3132/0.3136, allocations: 159.6 MB / 1.059 GB, free: 4.977 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.003569/0.3172, allocations: 2.621 MB / 1.062 GB, free: 2.34 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00229/0.3196, allocations: 1.099 MB / 1.063 GB, free: 1.234 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004481/0.3201, allocations: 15.94 kB / 1.063 GB, free: 1.219 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.000327/0.3204, allocations: 55.52 kB / 1.063 GB, free: 1.164 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0003231/0.3207, allocations: 55.52 kB / 1.063 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008958/0.3216, allocations: 306.1 kB / 1.063 GB, free: 0.8125 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0008323/0.3225, allocations: 0.6404 MB / 1.064 GB, free: 176 kB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007383/0.3232, allocations: 424.7 kB / 1.064 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002735/0.3235, allocations: 167.1 kB / 1.065 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002764/0.3238, allocations: 194.8 kB / 1.065 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 7.2e-05/0.3239, allocations: 23.98 kB / 1.065 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001028/0.324, allocations: 24 kB / 1.065 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.865e-05/0.3241, allocations: 83.61 kB / 1.065 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002339/0.3243, allocations: 240.2 kB / 1.065 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005163/0.3249, allocations: 0.5341 MB / 1.066 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.3249, allocations: 0 / 1.066 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.335e-06/0.3249, allocations: 4 kB / 1.066 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 2.374e-05/0.3249, allocations: 0 / 1.066 GB, free: 14.48 MB / 0.8262 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.001718/0.3267, allocations: 0.7947 MB / 1.066 GB, free: 13.63 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.866e-05/0.3267, allocations: 11.97 kB / 1.066 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001625/0.3269, allocations: 64.27 kB / 1.066 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007081/0.3276, allocations: 436.6 kB / 1.067 GB, free: 13.08 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.251e-05/0.3277, allocations: 37.38 kB / 1.067 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.152e-05/0.3278, allocations: 48.38 kB / 1.067 GB, free: 13 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001143/0.3289, allocations: 0.5549 MB / 1.068 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.495e-05/0.3289, allocations: 3.938 kB / 1.068 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.522e-05/0.329, allocations: 27.98 kB / 1.068 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.842e-05/0.329, allocations: 15.94 kB / 1.068 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001055/0.3301, allocations: 419.7 kB / 1.068 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002505/0.3326, allocations: 1.864 MB / 1.07 GB, free: 10.01 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009803/0.3336, allocations: 381.6 kB / 1.07 GB, free: 9.621 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004399/0.3341, allocations: 189.6 kB / 1.07 GB, free: 9.43 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.2e-05/0.3341, allocations: 4 kB / 1.07 GB, free: 9.426 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005966/0.3347, allocations: 257.7 kB / 1.071 GB, free: 9.156 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=35): time 3.186e-06/0.3347, allocations: 0 / 1.071 GB, free: 9.156 MB / 0.8262 GB Notification: Performance of matching and sorting (n=35): time 0.001385/0.3361, allocations: 0.5114 MB / 1.071 GB, free: 8.641 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.991e-05/0.3362, allocations: 85.11 kB / 1.071 GB, free: 8.539 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005229/0.3368, allocations: 401.5 kB / 1.072 GB, free: 8.141 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 6.608e-05/0.3368, allocations: 41.7 kB / 1.072 GB, free: 8.094 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002316/0.3371, allocations: 256.1 kB / 1.072 GB, free: 7.836 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001099/0.3372, allocations: 98.73 kB / 1.072 GB, free: 7.738 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001002/0.3373, allocations: 69.67 kB / 1.072 GB, free: 7.664 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001432/0.3374, allocations: 350.8 kB / 1.072 GB, free: 7.312 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004585/0.3379, allocations: 169 kB / 1.072 GB, free: 7.148 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004988/0.3384, allocations: 273.9 kB / 1.073 GB, free: 6.84 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008884/0.3393, allocations: 439.3 kB / 1.073 GB, free: 6.363 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/0.3393, allocations: 0 / 1.073 GB, free: 6.363 MB / 0.8262 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.00124/0.3406, allocations: 0.5454 MB / 1.074 GB, free: 5.805 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.814e-05/0.3406, allocations: 33.7 kB / 1.074 GB, free: 5.766 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.303e-05/0.3407, allocations: 11.94 kB / 1.074 GB, free: 5.754 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.45e-05/0.3407, allocations: 4 kB / 1.074 GB, free: 5.75 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003412/0.341, allocations: 84.09 kB / 1.074 GB, free: 5.668 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.496e-05/0.3411, allocations: 7.938 kB / 1.074 GB, free: 5.66 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004245/0.3415, allocations: 83.39 kB / 1.074 GB, free: 5.578 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.684e-05/0.3416, allocations: 24 kB / 1.074 GB, free: 5.555 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.0003174/0.3419, allocations: 201.8 kB / 1.074 GB, free: 5.348 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.137e-05/0.342, allocations: 43.47 kB / 1.074 GB, free: 5.305 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001022/0.343, allocations: 414.6 kB / 1.075 GB, free: 4.895 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.294e-06/0.343, allocations: 8 kB / 1.075 GB, free: 4.887 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.062e-06/0.3431, allocations: 0 / 1.075 GB, free: 4.887 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.236e-06/0.3431, allocations: 3.984 kB / 1.075 GB, free: 4.883 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001754/0.3448, allocations: 0.9866 MB / 1.076 GB, free: 3.836 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.991e-06/0.3448, allocations: 4 kB / 1.076 GB, free: 3.832 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002739/0.3451, allocations: 55.92 kB / 1.076 GB, free: 3.777 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.005e-06/0.3451, allocations: 4 kB / 1.076 GB, free: 3.773 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.945e-05/0.3452, allocations: 8 kB / 1.076 GB, free: 3.766 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.732e-06/0.3452, allocations: 4 kB / 1.076 GB, free: 3.762 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.3452, allocations: 0 / 1.076 GB, free: 3.762 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00139/0.3466, allocations: 0.6911 MB / 1.076 GB, free: 3.047 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001771/0.3468, allocations: 148.4 kB / 1.076 GB, free: 2.883 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.435e-05/0.3469, allocations: 12.06 kB / 1.076 GB, free: 2.871 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003337/0.3472, allocations: 43.95 kB / 1.076 GB, free: 2.828 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001345/0.3473, allocations: 51.88 kB / 1.077 GB, free: 2.777 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.754e-05/0.3474, allocations: 8 kB / 1.077 GB, free: 2.77 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.000296/0.3477, allocations: 267.2 kB / 1.077 GB, free: 2.508 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.81e-07/0.3477, allocations: 0 / 1.077 GB, free: 2.508 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004777/0.3482, allocations: 99.67 kB / 1.077 GB, free: 2.41 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.0001941/0.3484, allocations: 121.4 kB / 1.077 GB, free: 2.285 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001145/0.3495, allocations: 465 kB / 1.077 GB, free: 1.82 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.3496, allocations: 0 / 1.077 GB, free: 1.82 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0004756/0.35, allocations: 187.8 kB / 1.078 GB, free: 1.637 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006296/0.3507, allocations: 83.25 kB / 1.078 GB, free: 1.559 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001588/0.3523, allocations: 0.942 MB / 1.079 GB, free: 0.5742 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000394/0.3527, allocations: 0.8235 MB / 1.079 GB, free: 15.72 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000152/0.3529, allocations: 39.42 kB / 1.079 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of SimCode: time 9.22e-07/0.3529, allocations: 0 / 1.079 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of Templates: time 0.01081/0.3637, allocations: 5.891 MB / 1.085 GB, free: 9.828 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