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.005067/0.005067, allocations: 99.75 kB / 15.73 MB, free: 6.039 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.001139/0.001139, allocations: 192.1 kB / 16.67 MB, free: 5.949 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.363/1.363, allocations: 222.9 MB / 240.4 MB, free: 15.14 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.349/2.349, allocations: 390.2 MB / 0.6648 GB, free: 0.6016 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 67.89 kB / 0.9509 GB, free: 7.586 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9704/0.9717, allocations: 140.4 MB / 1.088 GB, free: 5.492 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02545/0.9972, allocations: 23.23 MB / 1.111 GB, free: 4.844 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.00852/1.006, allocations: 5.092 MB / 1.116 GB, free: 1.215 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001425/1.007, allocations: 24.97 kB / 1.116 GB, free: 1.207 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.001241/1.009, allocations: 286 kB / 1.116 GB, free: 1.027 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.00316/1.012, allocations: 0.8266 MB / 1.117 GB, free: 0.5391 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.002683/1.014, allocations: 0.7707 MB / 1.117 GB, free: 136 kB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.002948/1.017, allocations: 1.618 MB / 1.119 GB, free: 15.38 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001132/1.019, allocations: 482.4 kB / 1.119 GB, free: 15.18 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002094/1.021, allocations: 0.6385 MB / 1.12 GB, free: 14.88 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00113/1.022, allocations: 450.8 kB / 1.121 GB, free: 14.68 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0002682/1.022, allocations: 45.84 kB / 1.121 GB, free: 14.68 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001712/1.024, allocations: 487.8 kB / 1.121 GB, free: 14.5 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0002481/1.024, allocations: 138.7 kB / 1.121 GB, free: 14.43 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0006272/1.025, allocations: 311.7 kB / 1.121 GB, free: 14.25 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.002096/1.027, allocations: 0.9323 MB / 1.122 GB, free: 13.9 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/1.027, allocations: 0 / 1.122 GB, free: 13.9 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.343e-06/1.027, allocations: 1.125 kB / 1.122 GB, free: 13.9 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.949e-05/1.027, allocations: 0 / 1.122 GB, free: 13.9 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.001603/1.028, allocations: 0.9026 MB / 1.123 GB, free: 13.21 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.798e-05/1.028, allocations: 9.531 kB / 1.123 GB, free: 13.21 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002391/1.029, allocations: 80.97 kB / 1.123 GB, free: 13.17 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001085/1.03, allocations: 0.5722 MB / 1.124 GB, free: 12.79 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.198e-05/1.03, allocations: 33.09 kB / 1.124 GB, free: 12.77 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.436e-05/1.03, allocations: 38.78 kB / 1.124 GB, free: 12.76 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007659/1.031, allocations: 439.5 kB / 1.124 GB, free: 12.54 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/1.031, allocations: 1.094 kB / 1.124 GB, free: 12.54 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.349e-05/1.031, allocations: 16.66 kB / 1.124 GB, free: 12.53 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.521e-05/1.031, allocations: 9.844 kB / 1.124 GB, free: 12.53 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005392/1.031, allocations: 303.5 kB / 1.125 GB, free: 12.43 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.002967/1.034, allocations: 1.924 MB / 1.127 GB, free: 11.05 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005911/1.035, allocations: 257.4 kB / 1.127 GB, free: 10.95 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002147/1.035, allocations: 126.1 kB / 1.127 GB, free: 10.89 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000957/1.036, allocations: 0.8462 MB / 1.128 GB, free: 9.945 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.528e-05/1.036, allocations: 41.31 kB / 1.128 GB, free: 9.898 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=26): time 2.054e-06/1.036, allocations: 0 / 1.128 GB, free: 9.898 MB / 0.8887 GB Notification: Performance of matching and sorting (n=26): time 0.0008924/1.037, allocations: 371.2 kB / 1.128 GB, free: 9.746 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.697e-05/1.037, allocations: 61.75 kB / 1.128 GB, free: 9.676 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007486/1.038, allocations: 476.4 kB / 1.129 GB, free: 9.449 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 4.365e-05/1.038, allocations: 32.02 kB / 1.129 GB, free: 9.414 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.000261/1.038, allocations: 260.5 kB / 1.129 GB, free: 9.203 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001152/1.038, allocations: 99.5 kB / 1.129 GB, free: 9.125 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001558/1.039, allocations: 74.28 kB / 1.129 GB, free: 9.082 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0002032/1.039, allocations: 361.3 kB / 1.129 GB, free: 8.746 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002022/1.039, allocations: 99.61 kB / 1.13 GB, free: 8.715 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002445/1.039, allocations: 174.8 kB / 1.13 GB, free: 8.602 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004263/1.04, allocations: 279.8 kB / 1.13 GB, free: 8.438 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/1.04, allocations: 1.344 kB / 1.13 GB, free: 8.438 MB / 0.8887 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006678/1.04, allocations: 369.7 kB / 1.13 GB, free: 8.273 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 2.222e-05/1.04, allocations: 6.219 kB / 1.13 GB, free: 8.273 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/1.04, allocations: 6.219 kB / 1.13 GB, free: 8.27 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.97e-05/1.04, allocations: 3.469 kB / 1.13 GB, free: 8.27 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002799/1.041, allocations: 74.58 kB / 1.13 GB, free: 8.262 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.41e-05/1.041, allocations: 3.438 kB / 1.13 GB, free: 8.262 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003481/1.041, allocations: 43.66 kB / 1.131 GB, free: 8.23 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.43e-05/1.041, allocations: 14.39 kB / 1.131 GB, free: 8.23 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.0002402/1.041, allocations: 183.4 kB / 1.131 GB, free: 8.074 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001244/1.041, allocations: 56.19 kB / 1.131 GB, free: 8.043 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009709/1.042, allocations: 481 kB / 1.131 GB, free: 7.836 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.02e-05/1.043, allocations: 10.64 kB / 1.131 GB, free: 7.832 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/1.043, allocations: 0 / 1.131 GB, free: 7.832 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000631/1.043, allocations: 0.5648 MB / 1.132 GB, free: 7.387 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002107/1.045, allocations: 1.153 MB / 1.133 GB, free: 6.66 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/1.045, allocations: 2.719 kB / 1.133 GB, free: 6.66 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002271/1.046, allocations: 49.73 kB / 1.133 GB, free: 6.656 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.033e-06/1.046, allocations: 2.812 kB / 1.133 GB, free: 6.656 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.378e-05/1.046, allocations: 10.78 kB / 1.133 GB, free: 6.652 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.622e-06/1.046, allocations: 3.234 kB / 1.133 GB, free: 6.652 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/1.046, allocations: 6.25 kB / 1.133 GB, free: 6.648 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001026/1.047, allocations: 0.6649 MB / 1.134 GB, free: 6.262 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003207/1.047, allocations: 171.8 kB / 1.134 GB, free: 6.117 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001176/1.047, allocations: 8.609 kB / 1.134 GB, free: 6.113 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003271/1.047, allocations: 14.75 kB / 1.134 GB, free: 6.105 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.041e-05/1.047, allocations: 35.3 kB / 1.134 GB, free: 6.09 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.421e-05/1.048, allocations: 22.11 kB / 1.134 GB, free: 6.082 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0005385/1.048, allocations: 345.5 kB / 1.134 GB, free: 5.922 MB / 0.8887 GB Notification: Performance of sort global known variables: time 2.51e-07/1.048, allocations: 0 / 1.134 GB, free: 5.922 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0009312/1.049, allocations: 206.5 kB / 1.134 GB, free: 5.871 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.0008553/1.05, allocations: 299.6 kB / 1.135 GB, free: 5.711 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.0006554/1.051, allocations: 286.9 kB / 1.135 GB, free: 5.625 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 4.538e-06/1.051, allocations: 4.375 kB / 1.135 GB, free: 5.621 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0002834/1.051, allocations: 167.5 kB / 1.135 GB, free: 5.562 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001824/1.053, allocations: 339.7 kB / 1.135 GB, free: 5.457 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002059/1.055, allocations: 1.08 MB / 1.136 GB, free: 4.77 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005342/1.055, allocations: 0.8583 MB / 1.137 GB, free: 4.062 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0005424/1.056, allocations: 123 kB / 1.137 GB, free: 4.027 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001528/1.056, allocations: 55.56 kB / 1.137 GB, free: 4.016 MB / 0.8887 GB Notification: Performance of SimCode: time 1.032e-06/1.056, allocations: 0 / 1.137 GB, free: 4.016 MB / 0.8887 GB Notification: Performance of Templates: time 0.02627/1.082, allocations: 12.22 MB / 1.149 GB, free: 1.309 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