Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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_3.0.0_Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample") translateModel(Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_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.0009471/0.0009475, allocations: 97.64 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.006852/0.006852, allocations: 170.4 kB / 16.27 MB, free: 6.32 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.447/1.447, 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.068/3.068, allocations: 473.4 MB / 0.7469 GB, free: 6.102 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003871/0.0003874, allocations: 14.72 kB / 0.9158 GB, free: 33.25 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3879/0.3883, allocations: 162.2 MB / 1.074 GB, free: 7.586 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample): time 0.004223/0.3925, allocations: 3.314 MB / 1.077 GB, free: 4.254 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00283/0.3954, allocations: 1.637 MB / 1.079 GB, free: 2.609 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003403/0.3958, allocations: 19.88 kB / 1.079 GB, free: 2.59 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0005978/0.3964, allocations: 250.9 kB / 1.079 GB, free: 2.344 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.000468/0.3969, allocations: 215 kB / 1.079 GB, free: 2.133 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008089/0.3977, allocations: 406.4 kB / 1.08 GB, free: 1.742 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0007776/0.3985, allocations: 0.8637 MB / 1.081 GB, free: 0.875 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00047/0.3989, allocations: 320.5 kB / 1.081 GB, free: 0.5586 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002748/0.3992, allocations: 254.5 kB / 1.081 GB, free: 316 kB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003003/0.3995, allocations: 266.4 kB / 1.081 GB, free: 48 kB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.097e-05/0.3996, allocations: 19.94 kB / 1.081 GB, free: 28 kB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001639/0.3998, allocations: 72.02 kB / 1.082 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001345/0.3999, allocations: 119.3 kB / 1.082 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002375/0.4001, allocations: 299.7 kB / 1.082 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0007754/0.4009, allocations: 0.868 MB / 1.083 GB, free: 14.67 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.4009, allocations: 0 / 1.083 GB, free: 14.67 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.154e-06/0.401, allocations: 0 / 1.083 GB, free: 14.67 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 8.476e-06/0.401, allocations: 0 / 1.083 GB, free: 14.67 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.00156/0.4025, allocations: 0.9591 MB / 1.084 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/0.4026, allocations: 12.02 kB / 1.084 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001293/0.4027, allocations: 83.91 kB / 1.084 GB, free: 13.56 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006607/0.4034, allocations: 0.5238 MB / 1.084 GB, free: 12.99 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.327e-05/0.4034, allocations: 37.36 kB / 1.084 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.412e-05/0.4035, allocations: 60.06 kB / 1.084 GB, free: 12.9 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008768/0.4044, allocations: 0.4911 MB / 1.085 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.4044, allocations: 0 / 1.085 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.19e-05/0.4045, allocations: 16 kB / 1.085 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.052e-05/0.4045, allocations: 12 kB / 1.085 GB, free: 12.37 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007574/0.4053, allocations: 367.8 kB / 1.085 GB, free: 12.01 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002377/0.4076, allocations: 1.789 MB / 1.087 GB, free: 10.13 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009506/0.4086, allocations: 406.6 kB / 1.087 GB, free: 9.727 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003655/0.409, allocations: 176.8 kB / 1.088 GB, free: 9.551 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 4.094e-05/0.409, allocations: 7.938 kB / 1.088 GB, free: 9.543 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005276/0.4096, allocations: 235.1 kB / 1.088 GB, free: 9.301 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=35): time 2.484e-06/0.4096, allocations: 0 / 1.088 GB, free: 9.301 MB / 0.8419 GB Notification: Performance of matching and sorting (n=35): time 0.001223/0.4108, allocations: 0.5376 MB / 1.088 GB, free: 8.758 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.258e-05/0.4109, allocations: 106.8 kB / 1.088 GB, free: 8.629 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008402/0.4117, allocations: 0.7307 MB / 1.089 GB, free: 7.891 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.99e-05/0.4118, allocations: 37.7 kB / 1.089 GB, free: 7.848 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002713/0.4121, allocations: 356.1 kB / 1.09 GB, free: 7.496 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 9.259e-05/0.4122, allocations: 106.5 kB / 1.09 GB, free: 7.391 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.274e-05/0.4123, allocations: 37.7 kB / 1.09 GB, free: 7.348 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001193/0.4124, allocations: 329.9 kB / 1.09 GB, free: 7.02 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003461/0.4127, allocations: 152.8 kB / 1.09 GB, free: 6.871 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004304/0.4132, allocations: 268.3 kB / 1.09 GB, free: 6.566 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006579/0.4138, allocations: 354.2 kB / 1.091 GB, free: 6.195 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.4139, allocations: 4 kB / 1.091 GB, free: 6.191 MB / 0.8419 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008964/0.4148, allocations: 493.1 kB / 1.091 GB, free: 5.703 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 9.384e-05/0.4149, allocations: 136.3 kB / 1.091 GB, free: 5.543 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.4149, allocations: 4 kB / 1.091 GB, free: 5.539 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.907e-05/0.4149, allocations: 4 kB / 1.091 GB, free: 5.535 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003178/0.4152, allocations: 91.83 kB / 1.091 GB, free: 5.445 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.257e-05/0.4152, allocations: 4 kB / 1.091 GB, free: 5.441 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003773/0.4156, allocations: 103.4 kB / 1.092 GB, free: 5.34 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.079e-05/0.4157, allocations: 16 kB / 1.092 GB, free: 5.324 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 6.132e-06/0.4157, allocations: 8 kB / 1.092 GB, free: 5.316 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005738/0.4163, allocations: 335.4 kB / 1.092 GB, free: 4.988 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.4163, allocations: 7.938 kB / 1.092 GB, free: 4.98 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.37e-06/0.4163, allocations: 4 kB / 1.092 GB, free: 4.977 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002421/0.4165, allocations: 71.91 kB / 1.092 GB, free: 4.906 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.427e-06/0.4166, allocations: 4.219 kB / 1.092 GB, free: 4.902 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003042/0.4169, allocations: 83.55 kB / 1.092 GB, free: 4.82 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.466e-05/0.4169, allocations: 16 kB / 1.092 GB, free: 4.805 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.0003022/0.4172, allocations: 307.1 kB / 1.092 GB, free: 4.496 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.106e-05/0.4173, allocations: 67.09 kB / 1.092 GB, free: 4.43 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001262/0.4174, allocations: 70.62 kB / 1.092 GB, free: 4.359 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.4174, allocations: 4 kB / 1.092 GB, free: 4.355 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.496e-06/0.4175, allocations: 0 / 1.092 GB, free: 4.355 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.4175, allocations: 3.984 kB / 1.092 GB, free: 4.352 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000597/0.4181, allocations: 0.5635 MB / 1.093 GB, free: 3.738 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.4181, allocations: 4.062 kB / 1.093 GB, free: 3.734 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001962/0.4183, allocations: 59.91 kB / 1.093 GB, free: 3.676 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.953e-06/0.4183, allocations: 7.938 kB / 1.093 GB, free: 3.668 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.411e-05/0.4183, allocations: 11.98 kB / 1.093 GB, free: 3.656 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.4183, allocations: 0 / 1.093 GB, free: 3.656 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.4183, allocations: 0 / 1.093 GB, free: 3.656 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008053/0.4192, allocations: 452 kB / 1.094 GB, free: 3.195 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001303/0.4193, allocations: 156.1 kB / 1.094 GB, free: 3.023 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.318e-05/0.4194, allocations: 16 kB / 1.094 GB, free: 3.008 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002746/0.4197, allocations: 47.95 kB / 1.094 GB, free: 2.961 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001042/0.4198, allocations: 43.88 kB / 1.094 GB, free: 2.918 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.527e-05/0.4198, allocations: 15.98 kB / 1.094 GB, free: 2.902 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0005917/0.4204, allocations: 0.5186 MB / 1.094 GB, free: 2.387 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4204, allocations: 0 / 1.094 GB, free: 2.387 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000589/0.421, allocations: 219.2 kB / 1.095 GB, free: 2.172 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.001136/0.4222, allocations: 471 kB / 1.095 GB, free: 1.887 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001118/0.4233, allocations: 0.5463 MB / 1.096 GB, free: 1.34 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.4233, allocations: 0 / 1.096 GB, free: 1.34 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.000352/0.4237, allocations: 179.8 kB / 1.096 GB, free: 1.164 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008711/0.4245, allocations: 164.3 kB / 1.096 GB, free: 1.012 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00191/0.4265, allocations: 1.291 MB / 1.097 GB, free: 15.69 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004739/0.4269, allocations: 0.9071 MB / 1.098 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0003526/0.4273, allocations: 100.8 kB / 1.098 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001478/0.4275, allocations: 59.42 kB / 1.098 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of SimCode: time 2.6e-07/0.4275, allocations: 3.938 kB / 1.098 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of Templates: time 0.0154/0.4429, allocations: 7.411 MB / 1.105 GB, free: 7.266 MB / 0.8575 GB make -j1 -f Buildings_3.0.0_Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample.makefile (rm -f Buildings_3.0.0_Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample.pipe ; mkfifo Buildings_3.0.0_Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample.pipe >> ../files/Buildings_3.0.0_Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample.sim & ./Buildings_3.0.0_Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.DHC.Networks.Controls.Examples.AgentPump1PipeExample.pipe 2>&1)