Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Fluid.Sensors.Examples.HeatMeter.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.Fluid.Sensors.Examples.HeatMeter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.Sensors.Examples.HeatMeter") translateModel(Buildings.Fluid.Sensors.Examples.HeatMeter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.Sensors.Examples.HeatMeter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001077/0.001076, allocations: 98.11 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.007041/0.007041, allocations: 169.2 kB / 16.26 MB, free: 6.652 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.471/1.471, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.881/2.881, allocations: 473.4 MB / 0.7469 GB, free: 6.074 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0005787/0.0005788, allocations: 17.03 kB / 0.9158 GB, free: 33.07 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3636/0.3643, allocations: 162.2 MB / 1.074 GB, free: 7.535 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02425/0.3886, allocations: 22.52 MB / 1.096 GB, free: 0.9219 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.008376/0.397, allocations: 5.05 MB / 1.101 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008744/0.3979, allocations: 23.88 kB / 1.101 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0008011/0.3987, allocations: 222.7 kB / 1.101 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.002068/0.4008, allocations: 0.7348 MB / 1.102 GB, free: 10.88 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.00176/0.4026, allocations: 0.6811 MB / 1.103 GB, free: 10.2 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.002449/0.405, allocations: 2.171 MB / 1.105 GB, free: 8.027 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006256/0.4057, allocations: 408.8 kB / 1.105 GB, free: 7.629 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009729/0.4066, allocations: 0.5211 MB / 1.106 GB, free: 7.105 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005412/0.4072, allocations: 453.9 kB / 1.106 GB, free: 6.66 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 6.033e-05/0.4073, allocations: 24 kB / 1.106 GB, free: 6.637 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009881/0.4083, allocations: 454.9 kB / 1.107 GB, free: 6.191 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.000137/0.4084, allocations: 107.6 kB / 1.107 GB, free: 6.086 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002921/0.4087, allocations: 300.2 kB / 1.107 GB, free: 5.785 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001072/0.4098, allocations: 0.8917 MB / 1.108 GB, free: 4.891 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.4098, allocations: 0 / 1.108 GB, free: 4.891 MB / 0.8575 GB Notification: Performance of FrontEnd: time 4.298e-06/0.4098, allocations: 0 / 1.108 GB, free: 4.891 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.325e-06/0.4098, allocations: 3.938 kB / 1.108 GB, free: 4.887 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: 94 * Number of variables: 94 Notification: Performance of Generate backend data structure: time 0.001405/0.4112, allocations: 0.7676 MB / 1.109 GB, free: 4.07 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.044e-05/0.4113, allocations: 12.03 kB / 1.109 GB, free: 4.059 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002264/0.4115, allocations: 68.17 kB / 1.109 GB, free: 3.992 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009634/0.4125, allocations: 0.5727 MB / 1.109 GB, free: 3.383 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.492e-05/0.4126, allocations: 32.94 kB / 1.109 GB, free: 3.348 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.246e-05/0.4126, allocations: 40 kB / 1.109 GB, free: 3.309 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000713/0.4134, allocations: 432.7 kB / 1.11 GB, free: 2.863 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.884e-05/0.4134, allocations: 0 / 1.11 GB, free: 2.863 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.135e-05/0.4134, allocations: 20 kB / 1.11 GB, free: 2.844 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.435e-05/0.4135, allocations: 15.98 kB / 1.11 GB, free: 2.828 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005206/0.414, allocations: 303.8 kB / 1.11 GB, free: 2.531 MB / 0.8575 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002672/0.4167, allocations: 1.923 MB / 1.112 GB, free: 492 kB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004976/0.4172, allocations: 258.8 kB / 1.112 GB, free: 224 kB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001918/0.4174, allocations: 116.8 kB / 1.112 GB, free: 104 kB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009101/0.4183, allocations: 0.874 MB / 1.113 GB, free: 15.04 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.235e-05/0.4184, allocations: 34.5 kB / 1.113 GB, free: 15 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=26): time 1.773e-06/0.4184, allocations: 8 kB / 1.113 GB, free: 14.99 MB / 0.8731 GB Notification: Performance of matching and sorting (n=26): time 0.0006939/0.4191, allocations: 362.5 kB / 1.114 GB, free: 14.63 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.081e-05/0.4191, allocations: 59.34 kB / 1.114 GB, free: 14.56 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005463/0.4197, allocations: 473.9 kB / 1.114 GB, free: 14.09 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 3.371e-05/0.4197, allocations: 33.7 kB / 1.114 GB, free: 14.05 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001949/0.4199, allocations: 260 kB / 1.114 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 7.969e-05/0.42, allocations: 94.67 kB / 1.114 GB, free: 13.7 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.78e-05/0.4201, allocations: 33.7 kB / 1.114 GB, free: 13.66 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001584/0.4202, allocations: 358.8 kB / 1.115 GB, free: 13.3 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001587/0.4204, allocations: 100.6 kB / 1.115 GB, free: 13.2 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000218/0.4206, allocations: 175.9 kB / 1.115 GB, free: 13 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004013/0.421, allocations: 279.2 kB / 1.115 GB, free: 12.71 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/0.421, allocations: 4 kB / 1.115 GB, free: 12.7 MB / 0.8731 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005457/0.4216, allocations: 368.8 kB / 1.116 GB, free: 12.34 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.98e-05/0.4216, allocations: 13.64 kB / 1.116 GB, free: 12.32 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.722e-06/0.4216, allocations: 4 kB / 1.116 GB, free: 12.32 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.4216, allocations: 4 kB / 1.116 GB, free: 12.32 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002658/0.4219, allocations: 71.84 kB / 1.116 GB, free: 12.25 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.047e-05/0.4219, allocations: 7.938 kB / 1.116 GB, free: 12.24 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002949/0.4222, allocations: 43.83 kB / 1.116 GB, free: 12.2 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.224e-05/0.4223, allocations: 12 kB / 1.116 GB, free: 12.18 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0002105/0.4225, allocations: 187 kB / 1.116 GB, free: 11.99 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.952e-05/0.4226, allocations: 55.34 kB / 1.116 GB, free: 11.94 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007928/0.4234, allocations: 466.9 kB / 1.116 GB, free: 11.48 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.244e-05/0.4234, allocations: 3.938 kB / 1.116 GB, free: 11.47 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.4234, allocations: 4 kB / 1.116 GB, free: 11.47 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005703/0.424, allocations: 0.5684 MB / 1.117 GB, free: 10.83 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001799/0.4258, allocations: 1.168 MB / 1.118 GB, free: 9.57 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.4258, allocations: 0 / 1.118 GB, free: 9.57 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002148/0.426, allocations: 51.91 kB / 1.118 GB, free: 9.52 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.314e-06/0.4261, allocations: 4 kB / 1.118 GB, free: 9.516 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.421e-05/0.4261, allocations: 8 kB / 1.118 GB, free: 9.508 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.552e-06/0.4261, allocations: 7.984 kB / 1.118 GB, free: 9.5 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.4261, allocations: 3.938 kB / 1.118 GB, free: 9.496 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008631/0.427, allocations: 0.668 MB / 1.119 GB, free: 8.793 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000197/0.4272, allocations: 176.4 kB / 1.119 GB, free: 8.602 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.259e-05/0.4273, allocations: 8 kB / 1.119 GB, free: 8.594 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002974/0.4276, allocations: 23.92 kB / 1.119 GB, free: 8.57 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.02e-05/0.4276, allocations: 23.91 kB / 1.119 GB, free: 8.547 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.624e-05/0.4276, allocations: 27.92 kB / 1.119 GB, free: 8.52 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0004006/0.4281, allocations: 342.9 kB / 1.119 GB, free: 8.188 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4281, allocations: 0 / 1.119 GB, free: 8.188 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0006447/0.4287, allocations: 191.8 kB / 1.12 GB, free: 8 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (vol.dynBal.U,senT.T,senHeaFlo.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * 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.0006226/0.4293, allocations: 296.6 kB / 1.12 GB, free: 7.707 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0004758/0.4298, allocations: 287.9 kB / 1.12 GB, free: 7.426 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/0.4298, allocations: 0 / 1.12 GB, free: 7.426 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002302/0.4301, allocations: 171.7 kB / 1.12 GB, free: 7.258 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001728/0.4318, allocations: 308.6 kB / 1.121 GB, free: 6.961 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001756/0.4336, allocations: 1.309 MB / 1.122 GB, free: 5.605 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004522/0.4341, allocations: 0.8747 MB / 1.123 GB, free: 4.703 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0004238/0.4345, allocations: 124.6 kB / 1.123 GB, free: 4.578 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001269/0.4346, allocations: 47.42 kB / 1.123 GB, free: 4.531 MB / 0.8731 GB Notification: Performance of SimCode: time 3.11e-07/0.4346, allocations: 0 / 1.123 GB, free: 4.531 MB / 0.8731 GB Notification: Performance of Templates: time 0.02138/0.456, allocations: 11.51 MB / 1.134 GB, free: 9.184 MB / 0.8887 GB make -j1 -f Buildings_3.0.0_Buildings.Fluid.Sensors.Examples.HeatMeter.makefile (rm -f Buildings_3.0.0_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; mkfifo Buildings_3.0.0_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe >> ../files/Buildings_3.0.0_Buildings.Fluid.Sensors.Examples.HeatMeter.sim & ./Buildings_3.0.0_Buildings.Fluid.Sensors.Examples.HeatMeter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe 2>&1)