Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.DHC.Networks.Controls.Examples.MainPump1PipeExample.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.DHC.Networks.Controls.Examples.MainPump1PipeExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.DHC.Networks.Controls.Examples.MainPump1PipeExample") translateModel(Buildings.DHC.Networks.Controls.Examples.MainPump1PipeExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.DHC.Networks.Controls.Examples.MainPump1PipeExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009345/0.0009346, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.007433/0.007434, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.463/1.463, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.032/3.032, allocations: 473.4 MB / 0.7469 GB, free: 6.059 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004311/0.0004306, allocations: 16.48 kB / 0.9158 GB, free: 33.15 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3737/0.3742, allocations: 162.2 MB / 1.074 GB, free: 7.539 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Networks.Controls.Examples.MainPump1PipeExample): time 0.004395/0.3786, allocations: 3.183 MB / 1.077 GB, free: 4.34 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.003022/0.3817, allocations: 1.586 MB / 1.079 GB, free: 2.746 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003716/0.3821, allocations: 15.88 kB / 1.079 GB, free: 2.73 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0006118/0.3827, allocations: 243 kB / 1.079 GB, free: 2.492 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0005047/0.3832, allocations: 219 kB / 1.079 GB, free: 2.277 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008914/0.3841, allocations: 413.3 kB / 1.08 GB, free: 1.879 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0008699/0.385, allocations: 0.8595 MB / 1.08 GB, free: 1.012 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000653/0.3856, allocations: 421.9 kB / 1.081 GB, free: 0.5742 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003221/0.386, allocations: 266.5 kB / 1.081 GB, free: 320 kB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003747/0.3864, allocations: 306.2 kB / 1.081 GB, free: 12 kB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 6.906e-05/0.3864, allocations: 16.05 kB / 1.081 GB, free: 15.99 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001634/0.3866, allocations: 63.88 kB / 1.081 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001598/0.3868, allocations: 147.2 kB / 1.082 GB, free: 15.79 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002684/0.387, allocations: 323.5 kB / 1.082 GB, free: 15.46 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0008579/0.3879, allocations: 0.9342 MB / 1.083 GB, free: 14.53 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.3879, allocations: 4 kB / 1.083 GB, free: 14.52 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.934e-06/0.3879, allocations: 0 / 1.083 GB, free: 14.52 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 8.817e-06/0.388, allocations: 0 / 1.083 GB, free: 14.52 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.001737/0.3897, allocations: 0.9737 MB / 1.084 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.015e-05/0.3897, allocations: 12.03 kB / 1.084 GB, free: 13.49 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001325/0.3899, allocations: 87.81 kB / 1.084 GB, free: 13.4 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008296/0.3907, allocations: 0.5632 MB / 1.084 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.958e-05/0.3908, allocations: 37.69 kB / 1.084 GB, free: 12.76 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.725e-05/0.3909, allocations: 59.94 kB / 1.085 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001032/0.3919, allocations: 0.5768 MB / 1.085 GB, free: 12.11 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.3919, allocations: 7.938 kB / 1.085 GB, free: 12.1 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.386e-05/0.392, allocations: 23.98 kB / 1.085 GB, free: 12.08 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.593e-05/0.392, allocations: 16 kB / 1.085 GB, free: 12.06 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000829/0.3929, allocations: 409 kB / 1.086 GB, free: 11.66 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002755/0.3956, allocations: 1.77 MB / 1.087 GB, free: 9.836 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001147/0.3968, allocations: 498.9 kB / 1.088 GB, free: 9.34 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004112/0.3972, allocations: 234 kB / 1.088 GB, free: 9.105 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 4.583e-05/0.3973, allocations: 16.58 kB / 1.088 GB, free: 9.09 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005298/0.3978, allocations: 277.3 kB / 1.088 GB, free: 8.805 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=51): time 2.454e-06/0.3978, allocations: 0 / 1.088 GB, free: 8.805 MB / 0.8419 GB Notification: Performance of matching and sorting (n=51): time 0.00127/0.3991, allocations: 0.6348 MB / 1.089 GB, free: 8.164 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.568e-05/0.3991, allocations: 63.78 kB / 1.089 GB, free: 8.09 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008744/0.4, allocations: 0.6996 MB / 1.09 GB, free: 7.383 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.597e-05/0.4001, allocations: 41.7 kB / 1.09 GB, free: 7.336 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002917/0.4004, allocations: 344.8 kB / 1.09 GB, free: 6.996 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001383/0.4005, allocations: 161.7 kB / 1.09 GB, free: 6.836 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.821e-05/0.4006, allocations: 49.64 kB / 1.09 GB, free: 6.781 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001875/0.4008, allocations: 386.8 kB / 1.091 GB, free: 6.395 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003311/0.4011, allocations: 161 kB / 1.091 GB, free: 6.238 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000403/0.4015, allocations: 241.7 kB / 1.091 GB, free: 5.977 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006999/0.4022, allocations: 403.5 kB / 1.091 GB, free: 5.555 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.556e-06/0.4023, allocations: 4 kB / 1.091 GB, free: 5.551 MB / 0.8419 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009391/0.4032, allocations: 0.5224 MB / 1.092 GB, free: 5.023 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 9.692e-05/0.4033, allocations: 150.4 kB / 1.092 GB, free: 4.852 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.4033, allocations: 0 / 1.092 GB, free: 4.852 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.405e-05/0.4034, allocations: 4 kB / 1.092 GB, free: 4.848 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003852/0.4037, allocations: 103.9 kB / 1.092 GB, free: 4.746 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.194e-05/0.4038, allocations: 11.88 kB / 1.092 GB, free: 4.734 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003036/0.4041, allocations: 59.5 kB / 1.092 GB, free: 4.676 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.279e-05/0.4041, allocations: 16 kB / 1.092 GB, free: 4.66 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 6.592e-06/0.4041, allocations: 4 kB / 1.092 GB, free: 4.656 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007692/0.4049, allocations: 438.3 kB / 1.093 GB, free: 4.227 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.4049, allocations: 4 kB / 1.093 GB, free: 4.223 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.312e-06/0.4049, allocations: 4 kB / 1.093 GB, free: 4.219 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003441/0.4053, allocations: 95.89 kB / 1.093 GB, free: 4.125 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.4053, allocations: 7.938 kB / 1.093 GB, free: 4.117 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002565/0.4056, allocations: 59.42 kB / 1.093 GB, free: 4.059 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.763e-05/0.4056, allocations: 16 kB / 1.093 GB, free: 4.043 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 20 ($PRE.TMixandTSouIn.nextTimeEvent,$whenCondition3,$PRE.TSouOut.nextTimeEvent,$whenCondition2,$PRE.QCoo_flow.nextTimeEvent,$whenCondition1,conPum.conShi.con1.y,QCoo_flow.nextTimeEventScaled,$PRE.QCoo_flow.nextTimeEventScaled,QCoo_flow.nextTimeEvent,conPum.and2.y,conPum.greThr.greHys.y,$PRE.conPum.greThr.greHys.y,TSouOut.nextTimeEventScaled,$PRE.TSouOut.nextTimeEventScaled,TSouOut.nextTimeEvent,TMixandTSouIn.nextTimeEventScaled,$PRE.TMixandTSouIn.nextTimeEventScaled,TMixandTSouIn.nextTimeEvent,conPum.conShi.cheYMinMax.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * 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.0003585/0.406, allocations: 311.9 kB / 1.093 GB, free: 3.727 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.482e-05/0.4061, allocations: 71.14 kB / 1.093 GB, free: 3.656 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001037/0.4071, allocations: 0.5347 MB / 1.094 GB, free: 3.109 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.388e-06/0.4071, allocations: 8 kB / 1.094 GB, free: 3.102 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.4071, allocations: 4 kB / 1.094 GB, free: 3.098 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/0.4072, allocations: 7.922 kB / 1.094 GB, free: 3.09 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007116/0.4079, allocations: 0.6457 MB / 1.094 GB, free: 2.395 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.4079, allocations: 4 kB / 1.094 GB, free: 2.391 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003024/0.4082, allocations: 67.91 kB / 1.094 GB, free: 2.324 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.4082, allocations: 0 / 1.094 GB, free: 2.324 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.217e-05/0.4082, allocations: 15.98 kB / 1.094 GB, free: 2.309 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.379e-06/0.4082, allocations: 4 kB / 1.094 GB, free: 2.305 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.4083, allocations: 0 / 1.094 GB, free: 2.305 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001307/0.4096, allocations: 0.7612 MB / 1.095 GB, free: 1.527 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001422/0.4097, allocations: 160 kB / 1.095 GB, free: 1.352 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.323e-05/0.4098, allocations: 16 kB / 1.095 GB, free: 1.336 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002614/0.4101, allocations: 36.03 kB / 1.095 GB, free: 1.301 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.556e-05/0.4102, allocations: 32.39 kB / 1.095 GB, free: 1.266 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.508e-05/0.4102, allocations: 27.92 kB / 1.095 GB, free: 1.238 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0005917/0.4108, allocations: 0.4991 MB / 1.096 GB, free: 0.7461 MB / 0.8419 GB Notification: Performance of sort global known variables: time 4.1e-07/0.4108, allocations: 0 / 1.096 GB, free: 0.7461 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0006218/0.4115, allocations: 228.3 kB / 1.096 GB, free: 0.5234 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (conPum.conShi.I.y) * Number of discrete variables: 11 ($whenCondition3,$whenCondition2,$whenCondition1,TMixandTSouIn.nextTimeEvent,TMixandTSouIn.nextTimeEventScaled,TSouOut.nextTimeEvent,TSouOut.nextTimeEventScaled,conPum.greThr.greHys.y,conPum.and2.y,QCoo_flow.nextTimeEvent,QCoo_flow.nextTimeEventScaled) * Number of discrete states: 7 (TMixandTSouIn.nextTimeEventScaled,TSouOut.nextTimeEventScaled,conPum.greThr.greHys.y,QCoo_flow.nextTimeEventScaled,QCoo_flow.nextTimeEvent,TSouOut.nextTimeEvent,TMixandTSouIn.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 47 * 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.001133/0.4126, allocations: 493.7 kB / 1.097 GB, free: 220 kB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001255/0.4139, allocations: 0.6483 MB / 1.097 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/0.4139, allocations: 0 / 1.097 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0004003/0.4143, allocations: 230.3 kB / 1.097 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008323/0.4151, allocations: 152.3 kB / 1.098 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002133/0.4173, allocations: 1.459 MB / 1.099 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005395/0.4178, allocations: 0.9392 MB / 1.1 GB, free: 12.74 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0003904/0.4182, allocations: 117 kB / 1.1 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001587/0.4184, allocations: 59.42 kB / 1.1 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of SimCode: time 6.82e-07/0.4184, allocations: 3.938 kB / 1.1 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of Templates: time 0.01607/0.4345, allocations: 7.172 MB / 1.107 GB, free: 5.477 MB / 0.8575 GB make -j1 -f Buildings_3.0.0_Buildings.DHC.Networks.Controls.Examples.MainPump1PipeExample.makefile (rm -f Buildings_3.0.0_Buildings.DHC.Networks.Controls.Examples.MainPump1PipeExample.pipe ; mkfifo Buildings_3.0.0_Buildings.DHC.Networks.Controls.Examples.MainPump1PipeExample.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.DHC.Networks.Controls.Examples.MainPump1PipeExample.pipe >> ../files/Buildings_3.0.0_Buildings.DHC.Networks.Controls.Examples.MainPump1PipeExample.sim & ./Buildings_3.0.0_Buildings.DHC.Networks.Controls.Examples.MainPump1PipeExample -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.DHC.Networks.Controls.Examples.MainPump1PipeExample.pipe 2>&1)