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.001775/0.001782, allocations: 110.5 kB / 16.41 MB, free: 6.488 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.001709/0.001709, allocations: 185.5 kB / 17.34 MB, free: 5.746 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.437/1.437, allocations: 222.9 MB / 241 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.524/2.524, allocations: 390.3 MB / 0.6655 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001374, allocations: 63.91 kB / 0.9516 GB, free: 7.609 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8926/0.894, allocations: 140.4 MB / 1.089 GB, free: 5.496 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02962/0.9237, allocations: 23.24 MB / 1.111 GB, free: 4.852 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.009906/0.9336, allocations: 5.097 MB / 1.116 GB, free: 1.219 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001658/0.9353, allocations: 24.62 kB / 1.116 GB, free: 1.211 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.001324/0.9367, allocations: 281.8 kB / 1.117 GB, free: 1.035 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.003452/0.9402, allocations: 0.8263 MB / 1.117 GB, free: 0.5469 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.003207/0.9435, allocations: 0.7655 MB / 1.118 GB, free: 148 kB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.003329/0.9468, allocations: 1.622 MB / 1.12 GB, free: 15.39 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001186/0.948, allocations: 486.1 kB / 1.12 GB, free: 15.18 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002293/0.9503, allocations: 0.646 MB / 1.121 GB, free: 14.88 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001345/0.9517, allocations: 442.3 kB / 1.121 GB, free: 14.69 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0002667/0.952, allocations: 46.19 kB / 1.121 GB, free: 14.69 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001914/0.9539, allocations: 492.7 kB / 1.122 GB, free: 14.51 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0003629/0.9543, allocations: 137.1 kB / 1.122 GB, free: 14.43 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0008796/0.9551, allocations: 311.3 kB / 1.122 GB, free: 14.25 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.002552/0.9577, allocations: 0.9198 MB / 1.123 GB, free: 13.91 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.9577, allocations: 4.891 kB / 1.123 GB, free: 13.91 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.124e-06/0.9577, allocations: 1.5 kB / 1.123 GB, free: 13.91 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 3.614e-05/0.9578, allocations: 0 / 1.123 GB, free: 13.91 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.002349/0.9601, allocations: 0.891 MB / 1.124 GB, free: 13.23 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.476e-05/0.9602, allocations: 9.219 kB / 1.124 GB, free: 13.23 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003722/0.9606, allocations: 67.92 kB / 1.124 GB, free: 13.2 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00141/0.962, allocations: 0.5734 MB / 1.125 GB, free: 12.82 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.951e-05/0.962, allocations: 32.12 kB / 1.125 GB, free: 12.8 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.888e-05/0.9621, allocations: 45.64 kB / 1.125 GB, free: 12.78 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000973/0.9631, allocations: 440.7 kB / 1.125 GB, free: 12.57 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.941e-05/0.9632, allocations: 1.219 kB / 1.125 GB, free: 12.57 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.411e-05/0.9632, allocations: 16.19 kB / 1.125 GB, free: 12.55 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.788e-05/0.9633, allocations: 10.28 kB / 1.125 GB, free: 12.55 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006622/0.9639, allocations: 303.1 kB / 1.125 GB, free: 12.45 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.003479/0.9674, allocations: 1.913 MB / 1.127 GB, free: 11.09 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006127/0.968, allocations: 259.1 kB / 1.128 GB, free: 10.98 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002306/0.9683, allocations: 122.3 kB / 1.128 GB, free: 10.93 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009449/0.9692, allocations: 0.8499 MB / 1.128 GB, free: 9.98 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.334e-05/0.9693, allocations: 33.56 kB / 1.128 GB, free: 9.941 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=26): time 2.584e-06/0.9693, allocations: 0 / 1.128 GB, free: 9.941 MB / 0.8887 GB Notification: Performance of matching and sorting (n=26): time 0.0008804/0.9702, allocations: 372.5 kB / 1.129 GB, free: 9.785 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.054e-05/0.9702, allocations: 57.75 kB / 1.129 GB, free: 9.719 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008092/0.9711, allocations: 481.6 kB / 1.129 GB, free: 9.488 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 4.741e-05/0.9711, allocations: 31.2 kB / 1.129 GB, free: 9.453 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002503/0.9714, allocations: 260.8 kB / 1.13 GB, free: 9.242 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001186/0.9715, allocations: 89.72 kB / 1.13 GB, free: 9.172 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000163/0.9717, allocations: 71.19 kB / 1.13 GB, free: 9.133 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001893/0.9719, allocations: 364.6 kB / 1.13 GB, free: 8.793 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001992/0.9721, allocations: 102.4 kB / 1.13 GB, free: 8.758 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002599/0.9723, allocations: 169.4 kB / 1.13 GB, free: 8.652 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004522/0.9728, allocations: 287.6 kB / 1.131 GB, free: 8.48 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.441e-06/0.9728, allocations: 0 / 1.131 GB, free: 8.48 MB / 0.8887 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007445/0.9736, allocations: 360.6 kB / 1.131 GB, free: 8.324 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 2.071e-05/0.9736, allocations: 6.625 kB / 1.131 GB, free: 8.324 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/0.9736, allocations: 3.141 kB / 1.131 GB, free: 8.324 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.25e-05/0.9736, allocations: 6.688 kB / 1.131 GB, free: 8.32 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003043/0.974, allocations: 77.77 kB / 1.131 GB, free: 8.309 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.293e-05/0.974, allocations: 4.547 kB / 1.131 GB, free: 8.309 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004041/0.9744, allocations: 39.39 kB / 1.131 GB, free: 8.281 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.511e-05/0.9744, allocations: 18.02 kB / 1.131 GB, free: 8.277 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.0002528/0.9747, allocations: 182.4 kB / 1.131 GB, free: 8.125 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001585/0.9749, allocations: 48.47 kB / 1.131 GB, free: 8.102 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009686/0.9758, allocations: 485.4 kB / 1.132 GB, free: 7.891 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.009e-05/0.9759, allocations: 10.69 kB / 1.132 GB, free: 7.887 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.766e-06/0.9759, allocations: 1.125 kB / 1.132 GB, free: 7.887 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006167/0.9765, allocations: 0.5577 MB / 1.132 GB, free: 7.445 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002293/0.9788, allocations: 1.154 MB / 1.134 GB, free: 6.719 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.523e-06/0.9788, allocations: 1.859 kB / 1.134 GB, free: 6.719 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002449/0.9791, allocations: 58.3 kB / 1.134 GB, free: 6.707 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.221e-05/0.9791, allocations: 3.406 kB / 1.134 GB, free: 6.707 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.301e-05/0.9792, allocations: 10.56 kB / 1.134 GB, free: 6.703 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.845e-06/0.9792, allocations: 3.547 kB / 1.134 GB, free: 6.703 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.9792, allocations: 5.375 kB / 1.134 GB, free: 6.699 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001062/0.9802, allocations: 0.6658 MB / 1.134 GB, free: 6.312 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003142/0.9806, allocations: 170.9 kB / 1.134 GB, free: 6.168 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001337/0.9807, allocations: 9.516 kB / 1.134 GB, free: 6.164 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003341/0.9811, allocations: 15.27 kB / 1.134 GB, free: 6.156 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.653e-05/0.9811, allocations: 29.27 kB / 1.134 GB, free: 6.145 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.321e-05/0.9812, allocations: 18.66 kB / 1.134 GB, free: 6.141 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.000582/0.9818, allocations: 345.2 kB / 1.135 GB, free: 5.98 MB / 0.8887 GB Notification: Performance of sort global known variables: time 3.71e-07/0.9818, allocations: 1.219 kB / 1.135 GB, free: 5.98 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0009573/0.9827, allocations: 195.1 kB / 1.135 GB, free: 5.941 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.0009848/0.9837, allocations: 304.9 kB / 1.135 GB, free: 5.777 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.0006815/0.9844, allocations: 288.5 kB / 1.136 GB, free: 5.688 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 6.462e-06/0.9844, allocations: 1.188 kB / 1.136 GB, free: 5.688 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0003137/0.9848, allocations: 172.2 kB / 1.136 GB, free: 5.625 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001846/0.9866, allocations: 340 kB / 1.136 GB, free: 5.52 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00218/0.9888, allocations: 1.069 MB / 1.137 GB, free: 4.844 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005763/0.9894, allocations: 0.868 MB / 1.138 GB, free: 4.125 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001988/0.9896, allocations: 62.11 kB / 1.138 GB, free: 4.109 MB / 0.8887 GB Notification: Performance of SimCode: time 9.42e-07/0.9896, allocations: 0 / 1.138 GB, free: 4.109 MB / 0.8887 GB Notification: Performance of Templates: time 0.0243/1.014, allocations: 9.913 MB / 1.148 GB, free: 2.406 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches