Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.0009915/0.0009912, allocations: 91.92 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.001122/0.001122, allocations: 181.1 kB / 16.92 MB, free: 6.652 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.464/1.464, allocations: 223.3 MB / 241 MB, free: 5.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.606/2.606, allocations: 437.8 MB / 0.7128 GB, free: 6.969 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003758/0.0003759, allocations: 11.94 kB / 0.8735 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6546/0.655, allocations: 153.8 MB / 1.024 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.003227/0.6583, allocations: 2.607 MB / 1.026 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002065/0.6604, allocations: 1.099 MB / 1.027 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003842/0.6608, allocations: 19.88 kB / 1.027 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.000243/0.661, allocations: 59.52 kB / 1.027 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002505/0.6613, allocations: 55.5 kB / 1.027 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008085/0.6621, allocations: 303.6 kB / 1.028 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0007924/0.6629, allocations: 0.6559 MB / 1.028 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006754/0.6636, allocations: 416.7 kB / 1.029 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002567/0.6639, allocations: 171.1 kB / 1.029 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002667/0.6642, allocations: 190.8 kB / 1.029 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.835e-05/0.6642, allocations: 16 kB / 1.029 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 9.15e-05/0.6643, allocations: 31.98 kB / 1.029 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 9.609e-05/0.6644, allocations: 83.55 kB / 1.029 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002074/0.6646, allocations: 236.4 kB / 1.029 GB, free: 9.922 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004843/0.6651, allocations: 0.5396 MB / 1.03 GB, free: 9.383 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.6651, allocations: 8 kB / 1.03 GB, free: 9.375 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.393e-06/0.6652, allocations: 0 / 1.03 GB, free: 9.375 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 2.069e-05/0.6652, allocations: 0 / 1.03 GB, free: 9.375 MB / 0.7794 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.001519/0.6667, allocations: 0.8013 MB / 1.031 GB, free: 8.516 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.6668, allocations: 8.031 kB / 1.031 GB, free: 8.508 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001047/0.6669, allocations: 60.28 kB / 1.031 GB, free: 8.449 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005736/0.6674, allocations: 436.6 kB / 1.031 GB, free: 7.98 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.091e-05/0.6675, allocations: 37.38 kB / 1.031 GB, free: 7.945 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.675e-05/0.6676, allocations: 52.31 kB / 1.031 GB, free: 7.895 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009935/0.6686, allocations: 0.555 MB / 1.032 GB, free: 7.305 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.444e-05/0.6686, allocations: 0 / 1.032 GB, free: 7.305 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.611e-05/0.6687, allocations: 16 kB / 1.032 GB, free: 7.289 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.373e-05/0.6687, allocations: 12 kB / 1.032 GB, free: 7.277 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009791/0.6697, allocations: 427.6 kB / 1.032 GB, free: 6.859 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002325/0.672, allocations: 1.868 MB / 1.034 GB, free: 4.91 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009767/0.673, allocations: 394.7 kB / 1.035 GB, free: 4.512 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004168/0.6734, allocations: 185.6 kB / 1.035 GB, free: 4.324 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.227e-05/0.6735, allocations: 4 kB / 1.035 GB, free: 4.32 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006435/0.6741, allocations: 266.8 kB / 1.035 GB, free: 4.043 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=35): time 4.048e-06/0.6741, allocations: 3.984 kB / 1.035 GB, free: 4.039 MB / 0.7794 GB Notification: Performance of matching and sorting (n=35): time 0.001353/0.6755, allocations: 0.5074 MB / 1.035 GB, free: 3.527 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.757e-05/0.6756, allocations: 89.09 kB / 1.036 GB, free: 3.422 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004703/0.676, allocations: 393.5 kB / 1.036 GB, free: 3.031 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.079e-05/0.6761, allocations: 49.69 kB / 1.036 GB, free: 2.977 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001946/0.6763, allocations: 252.2 kB / 1.036 GB, free: 2.727 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 8.632e-05/0.6764, allocations: 90.75 kB / 1.036 GB, free: 2.637 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.981e-05/0.6765, allocations: 65.67 kB / 1.036 GB, free: 2.566 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001525/0.6766, allocations: 358.8 kB / 1.037 GB, free: 2.207 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004251/0.6771, allocations: 165.1 kB / 1.037 GB, free: 2.047 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004959/0.6776, allocations: 281.9 kB / 1.037 GB, free: 1.73 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008303/0.6784, allocations: 439.3 kB / 1.038 GB, free: 1.254 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/0.6784, allocations: 0 / 1.038 GB, free: 1.254 MB / 0.7794 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.00108/0.6795, allocations: 0.5454 MB / 1.038 GB, free: 0.6953 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.456e-05/0.6796, allocations: 33.7 kB / 1.038 GB, free: 0.6562 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/0.6796, allocations: 7.984 kB / 1.038 GB, free: 0.6484 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.805e-05/0.6796, allocations: 4 kB / 1.038 GB, free: 0.6445 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003087/0.6799, allocations: 84.05 kB / 1.038 GB, free: 0.5625 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.048e-05/0.6799, allocations: 4 kB / 1.038 GB, free: 0.5586 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003667/0.6803, allocations: 87.39 kB / 1.038 GB, free: 484 kB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.381e-05/0.6804, allocations: 20 kB / 1.038 GB, free: 464 kB / 0.7794 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.0002351/0.6806, allocations: 209.6 kB / 1.038 GB, free: 248 kB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.417e-05/0.6807, allocations: 43.47 kB / 1.039 GB, free: 204 kB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009463/0.6816, allocations: 413.4 kB / 1.039 GB, free: 15.79 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.812e-06/0.6816, allocations: 8 kB / 1.039 GB, free: 15.78 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.6816, allocations: 4 kB / 1.039 GB, free: 15.78 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/0.6817, allocations: 3.984 kB / 1.039 GB, free: 15.77 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001525/0.6832, allocations: 0.9787 MB / 1.04 GB, free: 14.73 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.6832, allocations: 0 / 1.04 GB, free: 14.73 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002613/0.6835, allocations: 67.86 kB / 1.04 GB, free: 14.67 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.149e-06/0.6835, allocations: 4 kB / 1.04 GB, free: 14.66 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.307e-05/0.6835, allocations: 8 kB / 1.04 GB, free: 14.66 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.059e-06/0.6835, allocations: 7.984 kB / 1.04 GB, free: 14.65 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.6835, allocations: 0 / 1.04 GB, free: 14.65 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001308/0.6848, allocations: 0.6757 MB / 1.041 GB, free: 13.95 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001436/0.685, allocations: 156.4 kB / 1.041 GB, free: 13.78 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.39e-05/0.6851, allocations: 16.06 kB / 1.041 GB, free: 13.76 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003218/0.6854, allocations: 43.95 kB / 1.041 GB, free: 13.72 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001114/0.6855, allocations: 47.88 kB / 1.041 GB, free: 13.67 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.692e-05/0.6855, allocations: 12 kB / 1.041 GB, free: 13.66 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.000273/0.6858, allocations: 271.2 kB / 1.041 GB, free: 13.39 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6858, allocations: 0 / 1.041 GB, free: 13.39 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0004114/0.6862, allocations: 91.75 kB / 1.041 GB, free: 13.3 MB / 0.795 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.000176/0.6864, allocations: 121.4 kB / 1.041 GB, free: 13.17 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001008/0.6874, allocations: 467.4 kB / 1.042 GB, free: 12.7 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.6875, allocations: 0 / 1.042 GB, free: 12.7 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004479/0.6879, allocations: 192.4 kB / 1.042 GB, free: 12.51 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005828/0.6885, allocations: 82.75 kB / 1.042 GB, free: 12.43 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001496/0.69, allocations: 0.939 MB / 1.043 GB, free: 11.46 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003823/0.6904, allocations: 0.8274 MB / 1.044 GB, free: 10.61 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001379/0.6906, allocations: 39.44 kB / 1.044 GB, free: 10.57 MB / 0.795 GB Notification: Performance of SimCode: time 4.51e-07/0.6906, allocations: 3.938 kB / 1.044 GB, free: 10.56 MB / 0.795 GB Notification: Performance of Templates: time 0.009649/0.7002, allocations: 5.866 MB / 1.05 GB, free: 4.723 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.makefile (rm -f Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; mkfifo Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe >> ../files/Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.sim & ./Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches