Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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="mat",numberOfIntervals=5000,variableFilter="time|senHeaFlo.Q_flow|heaFloRat.Q_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter") translateModel(Buildings.Fluid.Sensors.Examples.HeatMeter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senHeaFlo.Q_flow|heaFloRat.Q_flow",fileNamePrefix="Buildings_9_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.008599/0.008599, allocations: 98.45 kB / 15.73 MB, free: 6.066 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.002105/0.002105, allocations: 195.9 kB / 16.68 MB, free: 5.973 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.418/1.418, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.334/2.334, allocations: 390.2 MB / 0.6648 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001524/0.001524, allocations: 67.91 kB / 0.9509 GB, free: 7.672 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.917/0.9185, allocations: 140.4 MB / 1.088 GB, free: 5.547 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02462/0.9432, allocations: 23.23 MB / 1.111 GB, free: 4.906 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01068/0.9539, allocations: 5.092 MB / 1.116 GB, free: 1.277 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001141/0.9551, allocations: 24.5 kB / 1.116 GB, free: 1.27 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.0009893/0.9561, allocations: 295.4 kB / 1.116 GB, free: 1.082 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.002505/0.9587, allocations: 0.8223 MB / 1.117 GB, free: 0.5977 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.002496/0.9612, allocations: 0.7636 MB / 1.117 GB, free: 200 kB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.002653/0.9638, allocations: 1.611 MB / 1.119 GB, free: 15.45 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007264/0.9646, allocations: 490.2 kB / 1.119 GB, free: 15.24 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001672/0.9663, allocations: 0.6351 MB / 1.12 GB, free: 14.95 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007609/0.967, allocations: 450.5 kB / 1.121 GB, free: 14.75 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0001295/0.9672, allocations: 46.31 kB / 1.121 GB, free: 14.75 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00134/0.9685, allocations: 497.4 kB / 1.121 GB, free: 14.56 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0001839/0.9687, allocations: 141.2 kB / 1.121 GB, free: 14.48 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.000351/0.9691, allocations: 307.4 kB / 1.121 GB, free: 14.3 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.001548/0.9706, allocations: 0.9232 MB / 1.122 GB, free: 13.96 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.9707, allocations: 5.406 kB / 1.122 GB, free: 13.96 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.543e-06/0.9707, allocations: 0 / 1.122 GB, free: 13.96 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 9.828e-06/0.9707, allocations: 0 / 1.122 GB, free: 13.96 MB / 0.8887 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.001385/0.9721, allocations: 0.8871 MB / 1.123 GB, free: 13.29 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.9721, allocations: 10.84 kB / 1.123 GB, free: 13.29 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002434/0.9724, allocations: 67.73 kB / 1.123 GB, free: 13.25 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001077/0.9735, allocations: 0.5725 MB / 1.124 GB, free: 12.87 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.819e-05/0.9735, allocations: 32.84 kB / 1.124 GB, free: 12.86 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.269e-05/0.9736, allocations: 41.88 kB / 1.124 GB, free: 12.84 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007543/0.9743, allocations: 437.1 kB / 1.124 GB, free: 12.63 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.654e-05/0.9744, allocations: 0 / 1.124 GB, free: 12.63 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.307e-05/0.9744, allocations: 16.44 kB / 1.124 GB, free: 12.62 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.277e-05/0.9744, allocations: 9.594 kB / 1.124 GB, free: 12.62 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005332/0.975, allocations: 303.6 kB / 1.125 GB, free: 12.52 MB / 0.8887 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.002821/0.9778, allocations: 1.912 MB / 1.127 GB, free: 11.15 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005231/0.9783, allocations: 257.5 kB / 1.127 GB, free: 11.04 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001941/0.9785, allocations: 126.5 kB / 1.127 GB, free: 10.99 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008584/0.9794, allocations: 0.8549 MB / 1.128 GB, free: 10.04 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.778e-05/0.9795, allocations: 36.58 kB / 1.128 GB, free: 9.992 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=26): time 3.256e-06/0.9795, allocations: 4 kB / 1.128 GB, free: 9.988 MB / 0.8887 GB Notification: Performance of matching and sorting (n=26): time 0.0007417/0.9802, allocations: 370.2 kB / 1.128 GB, free: 9.836 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.753e-05/0.9803, allocations: 58.7 kB / 1.128 GB, free: 9.77 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006335/0.9809, allocations: 477.1 kB / 1.129 GB, free: 9.543 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 4.717e-05/0.981, allocations: 31.89 kB / 1.129 GB, free: 9.508 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002031/0.9812, allocations: 255.4 kB / 1.129 GB, free: 9.301 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 9.279e-05/0.9813, allocations: 94.73 kB / 1.129 GB, free: 9.227 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001195/0.9814, allocations: 74.45 kB / 1.129 GB, free: 9.184 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001447/0.9815, allocations: 361.6 kB / 1.129 GB, free: 8.848 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001748/0.9817, allocations: 97.5 kB / 1.13 GB, free: 8.816 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002546/0.982, allocations: 170.2 kB / 1.13 GB, free: 8.711 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004205/0.9824, allocations: 282.2 kB / 1.13 GB, free: 8.543 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.9824, allocations: 5.188 kB / 1.13 GB, free: 8.539 MB / 0.8887 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006197/0.9831, allocations: 369.7 kB / 1.13 GB, free: 8.375 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.9831, allocations: 6.594 kB / 1.13 GB, free: 8.375 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.9831, allocations: 1.438 kB / 1.13 GB, free: 8.375 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.9831, allocations: 4 kB / 1.13 GB, free: 8.375 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002827/0.9834, allocations: 74.23 kB / 1.13 GB, free: 8.367 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.158e-05/0.9834, allocations: 7.328 kB / 1.13 GB, free: 8.363 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003286/0.9838, allocations: 43.91 kB / 1.13 GB, free: 8.332 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.642e-05/0.9838, allocations: 13.48 kB / 1.13 GB, free: 8.332 MB / 0.8887 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.0002127/0.984, allocations: 182.3 kB / 1.131 GB, free: 8.176 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001034/0.9841, allocations: 53.98 kB / 1.131 GB, free: 8.148 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008397/0.985, allocations: 484.9 kB / 1.131 GB, free: 7.938 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.751e-05/0.985, allocations: 8.844 kB / 1.131 GB, free: 7.934 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.985, allocations: 0 / 1.131 GB, free: 7.934 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005882/0.9856, allocations: 0.5611 MB / 1.132 GB, free: 7.492 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001903/0.9875, allocations: 1.154 MB / 1.133 GB, free: 6.766 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.9875, allocations: 1.562 kB / 1.133 GB, free: 6.766 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002332/0.9878, allocations: 50.95 kB / 1.133 GB, free: 6.762 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.751e-06/0.9878, allocations: 2.406 kB / 1.133 GB, free: 6.762 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.843e-05/0.9878, allocations: 10.58 kB / 1.133 GB, free: 6.758 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.3e-06/0.9878, allocations: 3.734 kB / 1.133 GB, free: 6.758 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.718e-06/0.9878, allocations: 2.719 kB / 1.133 GB, free: 6.758 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009721/0.9888, allocations: 0.6677 MB / 1.134 GB, free: 6.367 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002217/0.9891, allocations: 171.6 kB / 1.134 GB, free: 6.223 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.606e-05/0.9891, allocations: 12.33 kB / 1.134 GB, free: 6.215 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002926/0.9894, allocations: 18.53 kB / 1.134 GB, free: 6.203 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.896e-05/0.9895, allocations: 27.86 kB / 1.134 GB, free: 6.195 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.685e-05/0.9895, allocations: 21.52 kB / 1.134 GB, free: 6.188 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0004404/0.99, allocations: 346.7 kB / 1.134 GB, free: 6.027 MB / 0.8887 GB Notification: Performance of sort global known variables: time 2.11e-07/0.99, allocations: 0 / 1.134 GB, free: 6.027 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0008287/0.9908, allocations: 194.2 kB / 1.134 GB, free: 5.988 MB / 0.8887 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.0006451/0.9915, allocations: 300.4 kB / 1.135 GB, free: 5.832 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.000544/0.992, allocations: 296.8 kB / 1.135 GB, free: 5.734 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.9921, allocations: 5.062 kB / 1.135 GB, free: 5.73 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0002593/0.9923, allocations: 170.2 kB / 1.135 GB, free: 5.672 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00168/0.994, allocations: 330 kB / 1.135 GB, free: 5.574 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001839/0.9959, allocations: 1.048 MB / 1.136 GB, free: 4.922 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005321/0.9964, allocations: 0.863 MB / 1.137 GB, free: 4.211 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0005014/0.9969, allocations: 130.2 kB / 1.137 GB, free: 4.168 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000147/0.9971, allocations: 51.64 kB / 1.137 GB, free: 4.16 MB / 0.8887 GB Notification: Performance of SimCode: time 2.695e-06/0.9971, allocations: 0 / 1.137 GB, free: 4.16 MB / 0.8887 GB Notification: Performance of Templates: time 0.02896/1.026, allocations: 12.23 MB / 1.149 GB, free: 1.457 MB / 0.8887 GB make -j1 -f Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.makefile (rm -f Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe >> ../files/Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.sim & ./Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Sensors_Examples_HeatMeter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches