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.00167/0.00167, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002217/0.002217, allocations: 189.2 kB / 16.13 MB, free: 6.656 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.496/1.496, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.966/2.966, allocations: 472.6 MB / 0.7447 GB, free: 4.945 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001492/0.001492, allocations: 67.97 kB / 0.9114 GB, free: 33.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3475/0.349, allocations: 159.9 MB / 1.068 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.0235/0.3726, allocations: 23.15 MB / 1.09 GB, free: 3.641 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.008188/0.3808, allocations: 5.12 MB / 1.095 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001424/0.3823, allocations: 23.88 kB / 1.095 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001136/0.3834, allocations: 230.6 kB / 1.095 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.002609/0.3861, allocations: 0.7349 MB / 1.096 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.00214/0.3883, allocations: 0.6888 MB / 1.097 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.002601/0.3909, allocations: 2.167 MB / 1.099 GB, free: 10.66 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007989/0.3917, allocations: 413.4 kB / 1.099 GB, free: 10.26 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001194/0.3929, allocations: 0.5328 MB / 1.1 GB, free: 9.727 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008358/0.3937, allocations: 461.9 kB / 1.1 GB, free: 9.273 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001251/0.3939, allocations: 24 kB / 1.1 GB, free: 9.25 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001609/0.3955, allocations: 466.9 kB / 1.101 GB, free: 8.793 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0002705/0.3958, allocations: 119.6 kB / 1.101 GB, free: 8.676 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0006166/0.3964, allocations: 286.5 kB / 1.101 GB, free: 8.395 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001891/0.3983, allocations: 0.8958 MB / 1.102 GB, free: 7.496 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.3983, allocations: 7.938 kB / 1.102 GB, free: 7.488 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.864e-06/0.3983, allocations: 0 / 1.102 GB, free: 7.488 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.959e-05/0.3984, allocations: 0 / 1.102 GB, free: 7.488 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.001837/0.4002, allocations: 0.8804 MB / 1.103 GB, free: 6.559 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/0.4003, allocations: 15.97 kB / 1.103 GB, free: 6.543 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002858/0.4005, allocations: 64.19 kB / 1.103 GB, free: 6.48 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001089/0.4016, allocations: 0.5649 MB / 1.103 GB, free: 5.879 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.573e-05/0.4017, allocations: 36.94 kB / 1.103 GB, free: 5.84 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.636e-05/0.4018, allocations: 36 kB / 1.104 GB, free: 5.805 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007699/0.4026, allocations: 436.7 kB / 1.104 GB, free: 5.355 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.978e-05/0.4026, allocations: 0 / 1.104 GB, free: 5.355 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.945e-05/0.4027, allocations: 19.98 kB / 1.104 GB, free: 5.336 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.57e-05/0.4027, allocations: 12 kB / 1.104 GB, free: 5.324 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005214/0.4032, allocations: 303.8 kB / 1.104 GB, free: 5.027 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.002786/0.406, allocations: 1.919 MB / 1.106 GB, free: 2.98 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005241/0.4065, allocations: 256.9 kB / 1.106 GB, free: 2.723 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00019/0.4068, allocations: 128.7 kB / 1.106 GB, free: 2.594 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00085/0.4076, allocations: 0.8466 MB / 1.107 GB, free: 1.562 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.375e-05/0.4077, allocations: 42.5 kB / 1.107 GB, free: 1.512 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=26): time 1.342e-06/0.4077, allocations: 0 / 1.107 GB, free: 1.512 MB / 0.8575 GB Notification: Performance of matching and sorting (n=26): time 0.0007218/0.4084, allocations: 362.5 kB / 1.108 GB, free: 1.152 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.063e-05/0.4085, allocations: 63.34 kB / 1.108 GB, free: 1.078 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005427/0.409, allocations: 473.9 kB / 1.108 GB, free: 0.6016 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.238e-05/0.409, allocations: 29.7 kB / 1.108 GB, free: 0.5664 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001892/0.4092, allocations: 256 kB / 1.108 GB, free: 320 kB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 8.548e-05/0.4093, allocations: 94.67 kB / 1.109 GB, free: 224 kB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001118/0.4095, allocations: 77.86 kB / 1.109 GB, free: 140 kB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001481/0.4096, allocations: 358.8 kB / 1.109 GB, free: 15.78 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001718/0.4098, allocations: 104.6 kB / 1.109 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002213/0.41, allocations: 168 kB / 1.109 GB, free: 15.49 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000398/0.4104, allocations: 283.2 kB / 1.11 GB, free: 15.19 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.4104, allocations: 3.938 kB / 1.11 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006083/0.411, allocations: 361.1 kB / 1.11 GB, free: 14.82 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/0.4111, allocations: 8 kB / 1.11 GB, free: 14.82 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.104e-06/0.4111, allocations: 3.984 kB / 1.11 GB, free: 14.81 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.4111, allocations: 4 kB / 1.11 GB, free: 14.81 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002723/0.4114, allocations: 83.77 kB / 1.11 GB, free: 14.73 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.028e-05/0.4114, allocations: 4 kB / 1.11 GB, free: 14.72 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003167/0.4117, allocations: 43.58 kB / 1.11 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.706e-05/0.4118, allocations: 20.03 kB / 1.11 GB, free: 14.66 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.0002112/0.412, allocations: 179 kB / 1.11 GB, free: 14.48 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001001/0.4121, allocations: 47.44 kB / 1.11 GB, free: 14.43 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007991/0.4129, allocations: 478.9 kB / 1.111 GB, free: 13.96 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.384e-05/0.4129, allocations: 7.938 kB / 1.111 GB, free: 13.95 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.4129, allocations: 0 / 1.111 GB, free: 13.95 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005659/0.4135, allocations: 0.5723 MB / 1.111 GB, free: 13.31 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001818/0.4153, allocations: 1.157 MB / 1.112 GB, free: 12.06 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.4154, allocations: 0 / 1.112 GB, free: 12.06 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002203/0.4156, allocations: 47.97 kB / 1.112 GB, free: 12.01 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.083e-06/0.4156, allocations: 12.12 kB / 1.112 GB, free: 12 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.625e-05/0.4156, allocations: 8 kB / 1.112 GB, free: 11.99 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.24e-06/0.4156, allocations: 4 kB / 1.112 GB, free: 11.99 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.4156, allocations: 4 kB / 1.112 GB, free: 11.98 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008608/0.4165, allocations: 0.6678 MB / 1.113 GB, free: 11.28 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002245/0.4167, allocations: 168.4 kB / 1.113 GB, free: 11.1 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.972e-05/0.4168, allocations: 8 kB / 1.113 GB, free: 11.09 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003081/0.4172, allocations: 23.92 kB / 1.113 GB, free: 11.07 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.564e-05/0.4172, allocations: 23.97 kB / 1.113 GB, free: 11.04 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.339e-05/0.4172, allocations: 23.92 kB / 1.113 GB, free: 11.02 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0004118/0.4177, allocations: 338.9 kB / 1.114 GB, free: 10.69 MB / 0.8731 GB Notification: Performance of sort global known variables: time 3.71e-07/0.4177, allocations: 0 / 1.114 GB, free: 10.69 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0006711/0.4183, allocations: 195.7 kB / 1.114 GB, free: 10.5 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.0007299/0.4191, allocations: 298.2 kB / 1.114 GB, free: 10.21 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0005202/0.4196, allocations: 291.7 kB / 1.114 GB, free: 9.922 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.888e-06/0.4196, allocations: 0 / 1.114 GB, free: 9.922 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002377/0.4199, allocations: 160.5 kB / 1.115 GB, free: 9.766 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001563/0.4214, allocations: 322.4 kB / 1.115 GB, free: 9.457 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001858/0.4233, allocations: 1.238 MB / 1.116 GB, free: 8.172 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004546/0.4238, allocations: 0.863 MB / 1.117 GB, free: 7.281 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0005281/0.4243, allocations: 120.6 kB / 1.117 GB, free: 7.16 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001362/0.4245, allocations: 59.42 kB / 1.117 GB, free: 7.102 MB / 0.8731 GB Notification: Performance of SimCode: time 3.9e-07/0.4245, allocations: 3.938 kB / 1.117 GB, free: 7.098 MB / 0.8731 GB Notification: Performance of Templates: time 0.02237/0.4469, allocations: 11.57 MB / 1.128 GB, free: 11.69 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)