Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.006347/0.006347, allocations: 102.3 kB / 15.73 MB, free: 6.055 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.001281/0.001281, allocations: 191 kB / 16.67 MB, free: 5.969 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.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.245/2.245, allocations: 390.2 MB / 0.6648 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001189/0.001189, allocations: 60.14 kB / 0.9508 GB, free: 7.652 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.042/1.043, allocations: 140.4 MB / 1.088 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.003956/1.047, allocations: 2.925 MB / 1.091 GB, free: 3.457 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002139/1.049, allocations: 1.106 MB / 1.092 GB, free: 2.664 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00031/1.05, allocations: 14.19 kB / 1.092 GB, free: 2.66 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.000257/1.05, allocations: 78.16 kB / 1.092 GB, free: 2.602 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002013/1.05, allocations: 84.02 kB / 1.092 GB, free: 2.535 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008176/1.051, allocations: 340.7 kB / 1.092 GB, free: 2.336 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0007457/1.052, allocations: 0.7141 MB / 1.093 GB, free: 1.973 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006733/1.052, allocations: 0.4901 MB / 1.093 GB, free: 1.727 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002822/1.053, allocations: 252 kB / 1.094 GB, free: 1.586 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002799/1.053, allocations: 250.5 kB / 1.094 GB, free: 1.441 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001052/1.053, allocations: 73.84 kB / 1.094 GB, free: 1.438 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001403/1.053, allocations: 74.84 kB / 1.094 GB, free: 1.438 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001247/1.053, allocations: 147.7 kB / 1.094 GB, free: 1.332 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.000216/1.054, allocations: 270.5 kB / 1.095 GB, free: 1.137 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0008461/1.054, allocations: 0.7565 MB / 1.095 GB, free: 0.8008 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/1.054, allocations: 0 / 1.095 GB, free: 0.8008 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.603e-06/1.054, allocations: 0.7812 kB / 1.095 GB, free: 0.8008 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.302e-05/1.054, allocations: 0 / 1.095 GB, free: 0.8008 MB / 0.8575 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.001686/1.056, allocations: 0.8889 MB / 1.096 GB, free: 136 kB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/1.056, allocations: 13.69 kB / 1.096 GB, free: 132 kB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001283/1.056, allocations: 59.2 kB / 1.096 GB, free: 104 kB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008053/1.057, allocations: 439.6 kB / 1.097 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.773e-05/1.057, allocations: 39.75 kB / 1.097 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.721e-05/1.057, allocations: 49.86 kB / 1.097 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001207/1.059, allocations: 0.537 MB / 1.097 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.603e-05/1.059, allocations: 0 / 1.097 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.259e-05/1.059, allocations: 25.53 kB / 1.097 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.894e-05/1.059, allocations: 11.5 kB / 1.097 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00107/1.06, allocations: 398 kB / 1.098 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002689/1.062, allocations: 1.836 MB / 1.099 GB, free: 13.97 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001061/1.064, allocations: 359.4 kB / 1.1 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004826/1.064, allocations: 173.5 kB / 1.1 GB, free: 13.75 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 4.003e-05/1.064, allocations: 7.094 kB / 1.1 GB, free: 13.74 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006525/1.065, allocations: 243.4 kB / 1.1 GB, free: 13.62 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=35): time 3.166e-06/1.065, allocations: 0 / 1.1 GB, free: 13.62 MB / 0.8731 GB Notification: Performance of matching and sorting (n=35): time 0.001498/1.066, allocations: 487.8 kB / 1.101 GB, free: 13.44 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.429e-05/1.066, allocations: 83.66 kB / 1.101 GB, free: 13.35 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006968/1.067, allocations: 400.2 kB / 1.101 GB, free: 13.14 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 6.45e-05/1.067, allocations: 45.83 kB / 1.101 GB, free: 13.1 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002571/1.067, allocations: 256.8 kB / 1.101 GB, free: 12.89 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001022/1.068, allocations: 96.92 kB / 1.101 GB, free: 12.81 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002301/1.068, allocations: 110.4 kB / 1.102 GB, free: 12.75 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0002447/1.068, allocations: 355 kB / 1.102 GB, free: 12.42 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004482/1.068, allocations: 152.9 kB / 1.102 GB, free: 12.38 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005371/1.069, allocations: 269.1 kB / 1.102 GB, free: 12.19 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000875/1.07, allocations: 420.1 kB / 1.103 GB, free: 11.91 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/1.07, allocations: 1.375 kB / 1.103 GB, free: 11.91 MB / 0.8731 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001331/1.071, allocations: 0.5256 MB / 1.103 GB, free: 11.67 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 5.185e-05/1.071, allocations: 38.62 kB / 1.103 GB, free: 11.63 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.487e-05/1.071, allocations: 3.188 kB / 1.103 GB, free: 11.63 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.28e-05/1.071, allocations: 5.5 kB / 1.103 GB, free: 11.63 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003971/1.072, allocations: 72.38 kB / 1.103 GB, free: 11.62 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.891e-05/1.072, allocations: 10.33 kB / 1.103 GB, free: 11.62 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004085/1.072, allocations: 73.98 kB / 1.103 GB, free: 11.59 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.218e-05/1.072, allocations: 24.14 kB / 1.103 GB, free: 11.58 MB / 0.8731 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.0002822/1.073, allocations: 206.8 kB / 1.104 GB, free: 11.41 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.991e-05/1.073, allocations: 48.16 kB / 1.104 GB, free: 11.38 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001016/1.074, allocations: 383.5 kB / 1.104 GB, free: 11.23 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/1.074, allocations: 4.188 kB / 1.104 GB, free: 11.23 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/1.074, allocations: 1.312 kB / 1.104 GB, free: 11.23 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.197e-06/1.074, allocations: 3.188 kB / 1.104 GB, free: 11.23 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001793/1.076, allocations: 0.9533 MB / 1.105 GB, free: 10.66 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/1.076, allocations: 0 / 1.105 GB, free: 10.66 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003099/1.076, allocations: 51.39 kB / 1.105 GB, free: 10.66 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.773e-06/1.076, allocations: 3 kB / 1.105 GB, free: 10.66 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4e-05/1.076, allocations: 13.47 kB / 1.105 GB, free: 10.65 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.602e-06/1.076, allocations: 2.719 kB / 1.105 GB, free: 10.65 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/1.076, allocations: 0 / 1.105 GB, free: 10.65 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001536/1.077, allocations: 0.6485 MB / 1.106 GB, free: 10.31 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000216/1.078, allocations: 154 kB / 1.106 GB, free: 10.16 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.539e-05/1.078, allocations: 8.906 kB / 1.106 GB, free: 10.16 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003292/1.078, allocations: 37.72 kB / 1.106 GB, free: 10.15 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001589/1.078, allocations: 45.08 kB / 1.106 GB, free: 10.14 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.601e-05/1.078, allocations: 13.67 kB / 1.106 GB, free: 10.14 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0003829/1.079, allocations: 264.9 kB / 1.106 GB, free: 9.992 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.6e-07/1.079, allocations: 4 kB / 1.106 GB, free: 9.988 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0005455/1.079, allocations: 95.12 kB / 1.106 GB, free: 9.965 MB / 0.8731 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.0002547/1.08, allocations: 132.8 kB / 1.106 GB, free: 9.859 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0012/1.081, allocations: 444.4 kB / 1.107 GB, free: 9.676 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/1.081, allocations: 1.312 kB / 1.107 GB, free: 9.676 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.000492/1.081, allocations: 186.5 kB / 1.107 GB, free: 9.617 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005756/1.082, allocations: 98.8 kB / 1.107 GB, free: 9.574 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001624/1.083, allocations: 0.7493 MB / 1.108 GB, free: 9.121 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005487/1.084, allocations: 0.8262 MB / 1.109 GB, free: 8.414 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0002913/1.084, allocations: 49.92 kB / 1.109 GB, free: 8.402 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000144/1.084, allocations: 41.06 kB / 1.109 GB, free: 8.391 MB / 0.8731 GB Notification: Performance of SimCode: time 3.2e-07/1.084, allocations: 7.938 kB / 1.109 GB, free: 8.383 MB / 0.8731 GB Notification: Performance of Templates: time 0.01333/1.098, allocations: 5.035 MB / 1.114 GB, free: 7.988 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.makefile (rm -f Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; mkfifo Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe >> ../files/Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.sim & ./Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches