Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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_1.6_Buildings.DHC.Networks.Controls.Examples.MainPump1PipeExample") translateModel(Buildings.DHC.Networks.Controls.Examples.MainPump1PipeExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_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.001139/0.001139, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.00813/0.00813, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.478/1.478, allocations: 223.3 MB / 240.3 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.895/2.895, allocations: 473.4 MB / 0.7469 GB, free: 6.113 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004121/0.0004121, allocations: 7.375 kB / 0.9158 GB, free: 33.14 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3787/0.3791, allocations: 162.2 MB / 1.074 GB, free: 7.598 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Networks.Controls.Examples.MainPump1PipeExample): time 0.004774/0.3839, allocations: 3.179 MB / 1.077 GB, free: 4.402 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.003725/0.3877, allocations: 1.586 MB / 1.079 GB, free: 2.809 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007135/0.3884, allocations: 15.88 kB / 1.079 GB, free: 2.793 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.000799/0.3893, allocations: 239 kB / 1.079 GB, free: 2.559 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0009203/0.3902, allocations: 223 kB / 1.079 GB, free: 2.34 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001147/0.3914, allocations: 414.9 kB / 1.08 GB, free: 1.938 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001274/0.3926, allocations: 0.8633 MB / 1.08 GB, free: 1.066 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008201/0.3935, allocations: 421.9 kB / 1.081 GB, free: 0.6289 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004796/0.394, allocations: 254.5 kB / 1.081 GB, free: 388 kB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004963/0.3945, allocations: 314.2 kB / 1.081 GB, free: 72 kB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001046/0.3946, allocations: 24 kB / 1.081 GB, free: 48 kB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00023/0.3948, allocations: 60.03 kB / 1.081 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001893/0.395, allocations: 139.2 kB / 1.082 GB, free: 15.85 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.000348/0.3954, allocations: 319.5 kB / 1.082 GB, free: 15.53 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001069/0.3965, allocations: 0.9381 MB / 1.083 GB, free: 14.59 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.788e-06/0.3965, allocations: 0 / 1.083 GB, free: 14.59 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.816e-06/0.3965, allocations: 0 / 1.083 GB, free: 14.59 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 3.235e-05/0.3965, allocations: 0 / 1.083 GB, free: 14.59 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.001995/0.3985, allocations: 0.979 MB / 1.084 GB, free: 13.56 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.74e-05/0.3986, allocations: 8.031 kB / 1.084 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002302/0.3988, allocations: 91.81 kB / 1.084 GB, free: 13.46 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009695/0.3998, allocations: 0.5632 MB / 1.084 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.118e-05/0.3999, allocations: 41.69 kB / 1.084 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.459e-05/0.4, allocations: 59.88 kB / 1.085 GB, free: 12.76 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001169/0.4011, allocations: 0.5691 MB / 1.085 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.116e-05/0.4012, allocations: 15.92 kB / 1.085 GB, free: 12.16 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.281e-05/0.4012, allocations: 20 kB / 1.085 GB, free: 12.14 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.127e-05/0.4013, allocations: 12 kB / 1.085 GB, free: 12.13 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009192/0.4022, allocations: 413 kB / 1.086 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00315/0.4054, allocations: 1.774 MB / 1.087 GB, free: 9.895 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001203/0.4066, allocations: 0.4911 MB / 1.088 GB, free: 9.395 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004321/0.407, allocations: 234.6 kB / 1.088 GB, free: 9.16 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 4.672e-05/0.4071, allocations: 16.48 kB / 1.088 GB, free: 9.145 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005858/0.4077, allocations: 269.3 kB / 1.088 GB, free: 8.867 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=51): time 2.995e-06/0.4077, allocations: 3.938 kB / 1.088 GB, free: 8.863 MB / 0.8419 GB Notification: Performance of matching and sorting (n=51): time 0.001425/0.4091, allocations: 0.6349 MB / 1.089 GB, free: 8.223 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.032e-05/0.4092, allocations: 63.72 kB / 1.089 GB, free: 8.148 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009459/0.4101, allocations: 0.6996 MB / 1.09 GB, free: 7.441 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 5.53e-05/0.4102, allocations: 37.7 kB / 1.09 GB, free: 7.398 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.000283/0.4105, allocations: 352.8 kB / 1.09 GB, free: 7.051 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.000151/0.4106, allocations: 161.7 kB / 1.09 GB, free: 6.891 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.928e-05/0.4107, allocations: 45.7 kB / 1.09 GB, free: 6.84 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001698/0.4109, allocations: 386.8 kB / 1.091 GB, free: 6.453 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003552/0.4113, allocations: 157 kB / 1.091 GB, free: 6.301 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004235/0.4117, allocations: 245.7 kB / 1.091 GB, free: 6.035 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007731/0.4125, allocations: 403.5 kB / 1.091 GB, free: 5.613 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.4125, allocations: 4 kB / 1.091 GB, free: 5.609 MB / 0.8419 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001062/0.4136, allocations: 0.5224 MB / 1.092 GB, free: 5.082 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 9.979e-05/0.4137, allocations: 146.8 kB / 1.092 GB, free: 4.914 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.4137, allocations: 4 kB / 1.092 GB, free: 4.91 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.787e-05/0.4137, allocations: 8 kB / 1.092 GB, free: 4.902 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004/0.4141, allocations: 99.83 kB / 1.092 GB, free: 4.805 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.277e-05/0.4141, allocations: 7.938 kB / 1.092 GB, free: 4.797 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003562/0.4145, allocations: 59.5 kB / 1.092 GB, free: 4.738 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.267e-05/0.4146, allocations: 20 kB / 1.092 GB, free: 4.719 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 9.608e-06/0.4146, allocations: 4 kB / 1.092 GB, free: 4.715 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000806/0.4154, allocations: 434.2 kB / 1.093 GB, free: 4.289 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.4154, allocations: 0 / 1.093 GB, free: 4.289 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.343e-06/0.4154, allocations: 4 kB / 1.093 GB, free: 4.285 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003586/0.4158, allocations: 99.83 kB / 1.093 GB, free: 4.188 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.865e-06/0.4158, allocations: 4 kB / 1.093 GB, free: 4.184 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003343/0.4161, allocations: 63.64 kB / 1.093 GB, free: 4.121 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.335e-05/0.4162, allocations: 23.98 kB / 1.093 GB, free: 4.098 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.0003976/0.4166, allocations: 312.5 kB / 1.093 GB, free: 3.781 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001209/0.4167, allocations: 75.14 kB / 1.093 GB, free: 3.707 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001093/0.4178, allocations: 0.5309 MB / 1.094 GB, free: 3.164 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.324e-06/0.4178, allocations: 4 kB / 1.094 GB, free: 3.16 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.4178, allocations: 3.984 kB / 1.094 GB, free: 3.156 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.726e-06/0.4179, allocations: 3.938 kB / 1.094 GB, free: 3.152 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007569/0.4186, allocations: 0.6457 MB / 1.094 GB, free: 2.457 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.109e-06/0.4186, allocations: 0 / 1.094 GB, free: 2.457 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003122/0.4189, allocations: 71.91 kB / 1.094 GB, free: 2.387 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.786e-05/0.419, allocations: 4 kB / 1.094 GB, free: 2.383 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.122e-05/0.419, allocations: 19.98 kB / 1.094 GB, free: 2.363 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.419, allocations: 0 / 1.094 GB, free: 2.363 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.419, allocations: 11.88 kB / 1.094 GB, free: 2.352 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001403/0.4204, allocations: 0.7496 MB / 1.095 GB, free: 1.586 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001823/0.4206, allocations: 164 kB / 1.095 GB, free: 1.406 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.869e-05/0.4207, allocations: 12 kB / 1.095 GB, free: 1.395 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002873/0.421, allocations: 35.66 kB / 1.095 GB, free: 1.363 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/0.4212, allocations: 40.39 kB / 1.095 GB, free: 1.32 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.634e-05/0.4212, allocations: 23.92 kB / 1.095 GB, free: 1.297 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0006707/0.4219, allocations: 0.5029 MB / 1.096 GB, free: 0.8008 MB / 0.8419 GB Notification: Performance of sort global known variables: time 4.41e-07/0.4219, allocations: 0 / 1.096 GB, free: 0.8008 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000742/0.4226, allocations: 228.3 kB / 1.096 GB, free: 0.5781 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.001329/0.424, allocations: 487.2 kB / 1.097 GB, free: 280 kB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001418/0.4254, allocations: 0.6479 MB / 1.097 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.287e-06/0.4254, allocations: 0 / 1.097 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0004214/0.4258, allocations: 226.3 kB / 1.097 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008519/0.4267, allocations: 155.2 kB / 1.098 GB, free: 15.26 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002429/0.4292, allocations: 1.459 MB / 1.099 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006176/0.4298, allocations: 0.9431 MB / 1.1 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0004209/0.4302, allocations: 121 kB / 1.1 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001708/0.4304, allocations: 63.42 kB / 1.1 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of SimCode: time 2.31e-07/0.4304, allocations: 0 / 1.1 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of Templates: time 0.01605/0.4465, allocations: 7.148 MB / 1.107 GB, free: 5.547 MB / 0.8575 GB make -j1 -f Buildings_1.6_Buildings.DHC.Networks.Controls.Examples.MainPump1PipeExample.makefile (rm -f Buildings_1.6_Buildings.DHC.Networks.Controls.Examples.MainPump1PipeExample.pipe ; mkfifo Buildings_1.6_Buildings.DHC.Networks.Controls.Examples.MainPump1PipeExample.pipe ; head -c 1048576 < Buildings_1.6_Buildings.DHC.Networks.Controls.Examples.MainPump1PipeExample.pipe >> ../files/Buildings_1.6_Buildings.DHC.Networks.Controls.Examples.MainPump1PipeExample.sim & ./Buildings_1.6_Buildings.DHC.Networks.Controls.Examples.MainPump1PipeExample -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.DHC.Networks.Controls.Examples.MainPump1PipeExample.pipe 2>&1)