Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample.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.AgentPump1PipeExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample") translateModel(Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001057/0.001057, allocations: 91.84 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.009113/0.009113, allocations: 172.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.429/1.429, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.011/3.011, allocations: 473.4 MB / 0.7469 GB, free: 6.027 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004048/0.0004048, allocations: 16.39 kB / 0.9158 GB, free: 33.05 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4053/0.4057, allocations: 162.2 MB / 1.074 GB, free: 7.539 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample): time 0.004328/0.4101, allocations: 3.318 MB / 1.077 GB, free: 4.203 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00312/0.4132, allocations: 1.637 MB / 1.079 GB, free: 2.559 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003842/0.4136, allocations: 15.94 kB / 1.079 GB, free: 2.543 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0005983/0.4143, allocations: 242.9 kB / 1.079 GB, free: 2.305 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0004688/0.4147, allocations: 215.1 kB / 1.079 GB, free: 2.094 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008597/0.4156, allocations: 406.8 kB / 1.08 GB, free: 1.699 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0008062/0.4164, allocations: 0.8637 MB / 1.081 GB, free: 0.832 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000473/0.4169, allocations: 324.5 kB / 1.081 GB, free: 0.5117 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002753/0.4172, allocations: 246.6 kB / 1.081 GB, free: 276 kB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003069/0.4175, allocations: 278.4 kB / 1.081 GB, free: 15.99 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 5.292e-05/0.4176, allocations: 20 kB / 1.081 GB, free: 15.97 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001567/0.4177, allocations: 55.98 kB / 1.082 GB, free: 15.92 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001497/0.4179, allocations: 131.2 kB / 1.082 GB, free: 15.79 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002354/0.4181, allocations: 299.7 kB / 1.082 GB, free: 15.49 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0007392/0.4189, allocations: 0.8603 MB / 1.083 GB, free: 14.63 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.4189, allocations: 0 / 1.083 GB, free: 14.63 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.706e-06/0.4189, allocations: 0 / 1.083 GB, free: 14.63 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.074e-05/0.4189, allocations: 4 kB / 1.083 GB, free: 14.62 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: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.001585/0.4205, allocations: 0.9591 MB / 1.084 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.575e-05/0.4206, allocations: 12.03 kB / 1.084 GB, free: 13.6 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001262/0.4207, allocations: 87.91 kB / 1.084 GB, free: 13.52 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006514/0.4214, allocations: 0.5276 MB / 1.084 GB, free: 12.94 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.477e-05/0.4214, allocations: 37.31 kB / 1.084 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.738e-05/0.4215, allocations: 48.12 kB / 1.084 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008922/0.4224, allocations: 0.4988 MB / 1.085 GB, free: 12.35 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.309e-05/0.4224, allocations: 0 / 1.085 GB, free: 12.35 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.343e-05/0.4225, allocations: 16 kB / 1.085 GB, free: 12.33 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.261e-05/0.4225, allocations: 12 kB / 1.085 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007528/0.4232, allocations: 367.8 kB / 1.085 GB, free: 11.96 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002392/0.4256, allocations: 1.792 MB / 1.087 GB, free: 10.08 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009472/0.4266, allocations: 402.5 kB / 1.087 GB, free: 9.68 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003625/0.427, allocations: 172.8 kB / 1.088 GB, free: 9.508 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 4.03e-05/0.427, allocations: 11.92 kB / 1.088 GB, free: 9.496 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005424/0.4276, allocations: 239.1 kB / 1.088 GB, free: 9.25 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=35): time 1.663e-06/0.4276, allocations: 0 / 1.088 GB, free: 9.25 MB / 0.8419 GB Notification: Performance of matching and sorting (n=35): time 0.001194/0.4288, allocations: 0.5298 MB / 1.088 GB, free: 8.715 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.684e-05/0.4289, allocations: 122.7 kB / 1.088 GB, free: 8.57 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008454/0.4297, allocations: 0.7269 MB / 1.089 GB, free: 7.836 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.381e-05/0.4298, allocations: 37.7 kB / 1.089 GB, free: 7.793 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002908/0.4301, allocations: 348.2 kB / 1.09 GB, free: 7.449 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 9.877e-05/0.4302, allocations: 106.5 kB / 1.09 GB, free: 7.344 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.184e-05/0.4303, allocations: 45.7 kB / 1.09 GB, free: 7.293 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001189/0.4304, allocations: 326 kB / 1.09 GB, free: 6.969 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000353/0.4307, allocations: 152.8 kB / 1.09 GB, free: 6.82 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004144/0.4312, allocations: 264.3 kB / 1.09 GB, free: 6.52 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006689/0.4318, allocations: 358.2 kB / 1.091 GB, free: 6.145 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.4318, allocations: 0 / 1.091 GB, free: 6.145 MB / 0.8419 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009037/0.4328, allocations: 492.2 kB / 1.091 GB, free: 5.656 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 9.855e-05/0.4329, allocations: 139.9 kB / 1.091 GB, free: 5.492 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.762e-06/0.4329, allocations: 0 / 1.091 GB, free: 5.492 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.789e-05/0.4329, allocations: 4 kB / 1.091 GB, free: 5.488 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003183/0.4332, allocations: 91.89 kB / 1.091 GB, free: 5.398 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.193e-05/0.4332, allocations: 11.92 kB / 1.091 GB, free: 5.387 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003792/0.4336, allocations: 91.48 kB / 1.092 GB, free: 5.297 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.189e-05/0.4337, allocations: 19.94 kB / 1.092 GB, free: 5.277 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 6.682e-06/0.4337, allocations: 4 kB / 1.092 GB, free: 5.273 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005931/0.4343, allocations: 347.4 kB / 1.092 GB, free: 4.934 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.4343, allocations: 8.156 kB / 1.092 GB, free: 4.926 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.059e-06/0.4343, allocations: 4 kB / 1.092 GB, free: 4.922 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002523/0.4346, allocations: 75.91 kB / 1.092 GB, free: 4.848 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.4346, allocations: 4 kB / 1.092 GB, free: 4.844 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003062/0.4349, allocations: 79.48 kB / 1.092 GB, free: 4.766 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.59e-05/0.4349, allocations: 16 kB / 1.092 GB, free: 4.75 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: 21 ($PRE.TSouIn.nextTimeEvent,$whenCondition3,$PRE.TSouOut.nextTimeEvent,$whenCondition2,$PRE.TretDis.nextTimeEvent,$whenCondition1,TretDis.nextTimeEventScaled,$PRE.TretDis.nextTimeEventScaled,TretDis.nextTimeEvent,TSouOut.nextTimeEventScaled,$PRE.TSouOut.nextTimeEventScaled,TSouOut.nextTimeEvent,AgentPump.hys1.y,$PRE.AgentPump.hys1.y,AgentPump.hys.y,$PRE.AgentPump.hys.y,AgentPump.NetDemBool.lesHys.y,$PRE.AgentPump.NetDemBool.lesHys.y,TSouIn.nextTimeEventScaled,$PRE.TSouIn.nextTimeEventScaled,TSouIn.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 52 * 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.0003147/0.4352, allocations: 307.1 kB / 1.092 GB, free: 4.441 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.809e-05/0.4354, allocations: 71.09 kB / 1.092 GB, free: 4.371 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001369/0.4355, allocations: 70.62 kB / 1.092 GB, free: 4.301 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.4355, allocations: 0 / 1.092 GB, free: 4.301 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.33e-05/0.4355, allocations: 8.062 kB / 1.092 GB, free: 4.293 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.4355, allocations: 3.984 kB / 1.092 GB, free: 4.289 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00059/0.4361, allocations: 0.5635 MB / 1.093 GB, free: 3.676 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.4361, allocations: 0 / 1.093 GB, free: 3.676 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001958/0.4363, allocations: 51.91 kB / 1.093 GB, free: 3.625 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.342e-06/0.4364, allocations: 3.938 kB / 1.093 GB, free: 3.621 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.57e-05/0.4364, allocations: 11.98 kB / 1.093 GB, free: 3.609 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.4364, allocations: 0 / 1.093 GB, free: 3.609 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.4364, allocations: 4 kB / 1.093 GB, free: 3.605 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008285/0.4372, allocations: 452 kB / 1.094 GB, free: 3.145 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001423/0.4374, allocations: 160.1 kB / 1.094 GB, free: 2.969 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.244e-05/0.4375, allocations: 12 kB / 1.094 GB, free: 2.957 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002669/0.4377, allocations: 47.95 kB / 1.094 GB, free: 2.91 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001136/0.4379, allocations: 39.94 kB / 1.094 GB, free: 2.871 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.418e-05/0.4379, allocations: 19.98 kB / 1.094 GB, free: 2.852 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0005863/0.4385, allocations: 0.5147 MB / 1.094 GB, free: 2.34 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.2e-07/0.4385, allocations: 0 / 1.094 GB, free: 2.34 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005868/0.4391, allocations: 211.3 kB / 1.095 GB, free: 2.133 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,TSouIn.nextTimeEvent,TSouIn.nextTimeEventScaled,AgentPump.NetDemBool.lesHys.y,AgentPump.hys.y,AgentPump.hys1.y,TSouOut.nextTimeEvent,TSouOut.nextTimeEventScaled,TretDis.nextTimeEvent,TretDis.nextTimeEventScaled) * Number of discrete states: 9 (TSouIn.nextTimeEventScaled,AgentPump.NetDemBool.lesHys.y,AgentPump.hys.y,AgentPump.hys1.y,TSouOut.nextTimeEventScaled,TretDis.nextTimeEventScaled,TretDis.nextTimeEvent,TSouOut.nextTimeEvent,TSouIn.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 29 * 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.001163/0.4403, allocations: 485.5 kB / 1.095 GB, free: 1.836 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001128/0.4414, allocations: 0.5499 MB / 1.096 GB, free: 1.285 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.4414, allocations: 0 / 1.096 GB, free: 1.285 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003763/0.4418, allocations: 176.7 kB / 1.096 GB, free: 1.113 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008548/0.4427, allocations: 166.2 kB / 1.096 GB, free: 0.9609 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001773/0.4445, allocations: 1.284 MB / 1.097 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004675/0.4449, allocations: 0.9032 MB / 1.098 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.000338/0.4453, allocations: 108.8 kB / 1.098 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001399/0.4454, allocations: 55.42 kB / 1.098 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of SimCode: time 2.185e-06/0.4454, allocations: 0 / 1.098 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of Templates: time 0.014/0.4595, allocations: 7.431 MB / 1.105 GB, free: 7.207 MB / 0.8575 GB make -j1 -f Buildings_1.6_Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample.makefile (rm -f Buildings_1.6_Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample.pipe ; mkfifo Buildings_1.6_Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample.pipe ; head -c 1048576 < Buildings_1.6_Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample.pipe >> ../files/Buildings_1.6_Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample.sim & ./Buildings_1.6_Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample.pipe 2>&1)