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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001569/0.001569, allocations: 102.2 kB / 16.27 MB, free: 6 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.00156/0.00156, allocations: 191 kB / 17.2 MB, free: 5.609 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.427/1.427, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.543/2.543, allocations: 437.1 MB / 0.711 GB, free: 4.547 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00198/0.001981, allocations: 71.77 kB / 0.8699 GB, free: 2.27 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3358/0.3378, allocations: 151.6 MB / 1.018 GB, free: 10.71 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.004667/0.3426, allocations: 2.943 MB / 1.021 GB, free: 7.75 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.002181/0.3448, allocations: 1.103 MB / 1.022 GB, free: 6.641 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002491/0.345, allocations: 11.94 kB / 1.022 GB, free: 6.629 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0002563/0.3453, allocations: 79.14 kB / 1.022 GB, free: 6.551 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0001838/0.3455, allocations: 83.17 kB / 1.022 GB, free: 6.469 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008209/0.3463, allocations: 339 kB / 1.022 GB, free: 6.141 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0007611/0.3471, allocations: 0.7146 MB / 1.023 GB, free: 5.426 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006542/0.3478, allocations: 496.3 kB / 1.024 GB, free: 4.941 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002859/0.3481, allocations: 247.1 kB / 1.024 GB, free: 4.699 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002893/0.3484, allocations: 250.8 kB / 1.024 GB, free: 4.453 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 9.406e-05/0.3485, allocations: 68 kB / 1.024 GB, free: 4.387 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001407/0.3486, allocations: 80 kB / 1.024 GB, free: 4.309 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001449/0.3488, allocations: 147.5 kB / 1.024 GB, free: 4.164 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0002523/0.349, allocations: 274.6 kB / 1.025 GB, free: 3.895 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0007295/0.3498, allocations: 0.7207 MB / 1.025 GB, free: 3.172 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.3498, allocations: 0 / 1.025 GB, free: 3.172 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.242e-06/0.3498, allocations: 0 / 1.025 GB, free: 3.172 MB / 0.795 GB Notification: Performance of Transformations before backend: time 8.867e-06/0.3498, allocations: 0 / 1.025 GB, free: 3.172 MB / 0.795 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.001756/0.3516, allocations: 0.8752 MB / 1.026 GB, free: 2.234 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/0.3516, allocations: 20.81 kB / 1.026 GB, free: 2.215 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001247/0.3517, allocations: 56.28 kB / 1.026 GB, free: 2.16 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006547/0.3524, allocations: 448.5 kB / 1.027 GB, free: 1.684 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.575e-05/0.3525, allocations: 41.36 kB / 1.027 GB, free: 1.645 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.394e-05/0.3525, allocations: 52.38 kB / 1.027 GB, free: 1.594 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001024/0.3536, allocations: 0.5316 MB / 1.027 GB, free: 1.027 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.496e-05/0.3536, allocations: 0 / 1.027 GB, free: 1.027 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.816e-05/0.3537, allocations: 24 kB / 1.027 GB, free: 1.004 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.168e-05/0.3537, allocations: 8 kB / 1.027 GB, free: 0.9961 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009838/0.3547, allocations: 403.6 kB / 1.028 GB, free: 0.6055 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002451/0.3571, allocations: 1.848 MB / 1.029 GB, free: 14.67 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000995/0.3581, allocations: 361.5 kB / 1.03 GB, free: 14.3 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004142/0.3586, allocations: 173.6 kB / 1.03 GB, free: 14.12 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.255e-05/0.3586, allocations: 4 kB / 1.03 GB, free: 14.12 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006565/0.3593, allocations: 254.8 kB / 1.03 GB, free: 13.85 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=35): time 1.763e-06/0.3593, allocations: 0 / 1.03 GB, free: 13.85 MB / 0.8106 GB Notification: Performance of matching and sorting (n=35): time 0.001359/0.3606, allocations: 485.2 kB / 1.031 GB, free: 13.38 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.699e-05/0.3607, allocations: 85.23 kB / 1.031 GB, free: 13.27 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004631/0.3612, allocations: 405.5 kB / 1.031 GB, free: 12.87 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.985e-05/0.3613, allocations: 41.7 kB / 1.031 GB, free: 12.82 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002105/0.3615, allocations: 248.2 kB / 1.031 GB, free: 12.57 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.000103/0.3616, allocations: 98.72 kB / 1.032 GB, free: 12.48 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001613/0.3618, allocations: 110.1 kB / 1.032 GB, free: 12.36 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001819/0.3619, allocations: 358.8 kB / 1.032 GB, free: 12 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004313/0.3624, allocations: 153 kB / 1.032 GB, free: 11.86 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005107/0.3629, allocations: 265.9 kB / 1.032 GB, free: 11.55 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008606/0.3638, allocations: 411.4 kB / 1.033 GB, free: 11.1 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.52e-06/0.3638, allocations: 0 / 1.033 GB, free: 11.1 MB / 0.8106 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.00118/0.365, allocations: 0.5222 MB / 1.033 GB, free: 10.57 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 5.474e-05/0.365, allocations: 45.62 kB / 1.033 GB, free: 10.52 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/0.3651, allocations: 4 kB / 1.033 GB, free: 10.51 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.361e-05/0.3651, allocations: 7.984 kB / 1.033 GB, free: 10.5 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003344/0.3654, allocations: 75.83 kB / 1.033 GB, free: 10.43 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.328e-05/0.3654, allocations: 4.281 kB / 1.033 GB, free: 10.43 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000382/0.3658, allocations: 75.48 kB / 1.034 GB, free: 10.35 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.355e-05/0.3659, allocations: 27.98 kB / 1.034 GB, free: 10.32 MB / 0.8106 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.0002665/0.3662, allocations: 193.7 kB / 1.034 GB, free: 10.13 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.463e-05/0.3662, allocations: 47.47 kB / 1.034 GB, free: 10.08 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009613/0.3672, allocations: 397.8 kB / 1.034 GB, free: 9.684 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.201e-06/0.3672, allocations: 4 kB / 1.034 GB, free: 9.68 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.215e-06/0.3672, allocations: 7.984 kB / 1.034 GB, free: 9.672 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.7e-06/0.3673, allocations: 0 / 1.034 GB, free: 9.672 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00165/0.3689, allocations: 0.9514 MB / 1.035 GB, free: 8.66 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.3689, allocations: 0 / 1.035 GB, free: 8.66 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002693/0.3692, allocations: 51.92 kB / 1.035 GB, free: 8.609 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.203e-06/0.3692, allocations: 4 kB / 1.035 GB, free: 8.605 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.232e-05/0.3693, allocations: 12 kB / 1.035 GB, free: 8.594 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.3693, allocations: 0 / 1.035 GB, free: 8.594 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.3693, allocations: 3.984 kB / 1.035 GB, free: 8.59 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001376/0.3706, allocations: 0.6382 MB / 1.036 GB, free: 7.93 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001604/0.3708, allocations: 152.5 kB / 1.036 GB, free: 7.762 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.903e-05/0.3709, allocations: 11.98 kB / 1.036 GB, free: 7.75 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003241/0.3712, allocations: 44.02 kB / 1.036 GB, free: 7.707 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001196/0.3713, allocations: 43.88 kB / 1.036 GB, free: 7.664 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.051e-05/0.3714, allocations: 16 kB / 1.036 GB, free: 7.648 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003044/0.3717, allocations: 263.2 kB / 1.036 GB, free: 7.395 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.7e-07/0.3717, allocations: 4 kB / 1.036 GB, free: 7.391 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000436/0.3721, allocations: 99.67 kB / 1.036 GB, free: 7.293 MB / 0.8106 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.active,preHeatCoil.pumOff.active,$cse1,$cse2,$whenCondition2,$whenCondition1,TMix.T_start,TMix.count,preHeatCoil.preHeaOn.y,preHeatCoil.pumOff.localActive,preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.oldActive,preHeatCoil.toOn.enableFire,preHeatCoil.stateGraphRoot.activeSteps,preHeatCoil.pumOn.localActive,preHeatCoil.pumOn.newActive,preHeatCoil.pumOn.oldActive,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.000185/0.3723, allocations: 127 kB / 1.037 GB, free: 7.164 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001116/0.3735, allocations: 455.7 kB / 1.037 GB, free: 6.707 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.3735, allocations: 192 / 1.037 GB, free: 6.707 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.000458/0.3739, allocations: 188.2 kB / 1.037 GB, free: 6.523 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005319/0.3745, allocations: 85.61 kB / 1.037 GB, free: 6.441 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001503/0.376, allocations: 0.7844 MB / 1.038 GB, free: 5.613 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004534/0.3765, allocations: 0.8273 MB / 1.039 GB, free: 4.762 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001372/0.3766, allocations: 47.42 kB / 1.039 GB, free: 4.715 MB / 0.8106 GB Notification: Performance of SimCode: time 3.21e-07/0.3766, allocations: 0 / 1.039 GB, free: 4.715 MB / 0.8106 GB Notification: Performance of Templates: time 0.009717/0.3863, allocations: 5.948 MB / 1.045 GB, free: 14.8 MB / 0.8262 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=400 -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