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.001518/0.001518, allocations: 107.3 kB / 16.41 MB, free: 6.406 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.00177/0.001771, allocations: 191.4 kB / 17.34 MB, free: 5.695 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.381/1.381, allocations: 222.9 MB / 241 MB, free: 15.08 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.325/2.325, allocations: 390.3 MB / 0.6655 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001411/0.001412, allocations: 75.88 kB / 0.9516 GB, free: 7.633 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.938/0.9394, allocations: 140.4 MB / 1.089 GB, free: 5.539 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02664/0.9661, allocations: 23.24 MB / 1.111 GB, free: 4.887 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.009066/0.9752, allocations: 5.089 MB / 1.116 GB, free: 1.262 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001624/0.9769, allocations: 28.47 kB / 1.116 GB, free: 1.25 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.001117/0.978, allocations: 286.5 kB / 1.117 GB, free: 1.07 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.003055/0.9812, allocations: 0.8268 MB / 1.117 GB, free: 0.582 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.002531/0.9837, allocations: 0.7673 MB / 1.118 GB, free: 180 kB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.002794/0.9865, allocations: 1.618 MB / 1.12 GB, free: 15.43 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007892/0.9873, allocations: 485.6 kB / 1.12 GB, free: 15.22 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001739/0.9891, allocations: 0.6351 MB / 1.121 GB, free: 14.93 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007688/0.9898, allocations: 459.1 kB / 1.121 GB, free: 14.73 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0001284/0.99, allocations: 46.09 kB / 1.121 GB, free: 14.73 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001403/0.9914, allocations: 492.3 kB / 1.122 GB, free: 14.54 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0001824/0.9916, allocations: 138.2 kB / 1.122 GB, free: 14.46 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.000358/0.992, allocations: 311.4 kB / 1.122 GB, free: 14.29 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.001599/0.9936, allocations: 0.9157 MB / 1.123 GB, free: 13.95 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.9936, allocations: 0 / 1.123 GB, free: 13.95 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.603e-06/0.9936, allocations: 0 / 1.123 GB, free: 13.95 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.734e-05/0.9936, allocations: 0 / 1.123 GB, free: 13.95 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.001454/0.9951, allocations: 0.9001 MB / 1.124 GB, free: 13.27 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.9951, allocations: 10.14 kB / 1.124 GB, free: 13.27 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000242/0.9954, allocations: 67.36 kB / 1.124 GB, free: 13.23 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001037/0.9964, allocations: 0.5676 MB / 1.125 GB, free: 12.86 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.385e-05/0.9965, allocations: 37.66 kB / 1.125 GB, free: 12.84 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.104e-05/0.9965, allocations: 38.53 kB / 1.125 GB, free: 12.82 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007642/0.9973, allocations: 436.4 kB / 1.125 GB, free: 12.61 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.894e-05/0.9973, allocations: 3.938 kB / 1.125 GB, free: 12.61 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.191e-05/0.9974, allocations: 20.14 kB / 1.125 GB, free: 12.59 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.569e-05/0.9974, allocations: 14.75 kB / 1.125 GB, free: 12.59 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005343/0.998, allocations: 303.4 kB / 1.125 GB, free: 12.49 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.002861/1.001, allocations: 1.908 MB / 1.127 GB, free: 11.12 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005589/1.001, allocations: 261.3 kB / 1.128 GB, free: 11.02 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002096/1.002, allocations: 121.3 kB / 1.128 GB, free: 10.97 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008459/1.002, allocations: 0.8477 MB / 1.128 GB, free: 10.02 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.187e-05/1.003, allocations: 37.58 kB / 1.128 GB, free: 9.977 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=26): time 1.643e-06/1.003, allocations: 0 / 1.128 GB, free: 9.977 MB / 0.8887 GB Notification: Performance of matching and sorting (n=26): time 0.0007649/1.003, allocations: 369 kB / 1.129 GB, free: 9.824 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.696e-05/1.003, allocations: 58.62 kB / 1.129 GB, free: 9.758 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006708/1.004, allocations: 475.6 kB / 1.129 GB, free: 9.531 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 3.69e-05/1.004, allocations: 31.8 kB / 1.129 GB, free: 9.496 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002187/1.004, allocations: 263.7 kB / 1.13 GB, free: 9.281 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 9.374e-05/1.004, allocations: 91.94 kB / 1.13 GB, free: 9.211 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001251/1.005, allocations: 73.84 kB / 1.13 GB, free: 9.168 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001527/1.005, allocations: 363 kB / 1.13 GB, free: 8.832 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001746/1.005, allocations: 96.84 kB / 1.13 GB, free: 8.801 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002365/1.005, allocations: 170.2 kB / 1.13 GB, free: 8.695 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004134/1.006, allocations: 286.3 kB / 1.131 GB, free: 8.523 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/1.006, allocations: 0 / 1.131 GB, free: 8.523 MB / 0.8887 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006542/1.006, allocations: 365.2 kB / 1.131 GB, free: 8.363 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/1.006, allocations: 6.656 kB / 1.131 GB, free: 8.363 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.305e-06/1.006, allocations: 2.484 kB / 1.131 GB, free: 8.363 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.918e-05/1.006, allocations: 3.781 kB / 1.131 GB, free: 8.363 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002793/1.007, allocations: 77.23 kB / 1.131 GB, free: 8.352 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.259e-05/1.007, allocations: 4.781 kB / 1.131 GB, free: 8.352 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003309/1.007, allocations: 44.12 kB / 1.131 GB, free: 8.32 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.083e-05/1.007, allocations: 16.11 kB / 1.131 GB, free: 8.316 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.00023/1.007, allocations: 175.1 kB / 1.131 GB, free: 8.168 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001128/1.007, allocations: 49.36 kB / 1.131 GB, free: 8.145 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008666/1.008, allocations: 493.5 kB / 1.132 GB, free: 7.926 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-05/1.008, allocations: 10.69 kB / 1.132 GB, free: 7.922 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/1.008, allocations: 0 / 1.132 GB, free: 7.922 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006068/1.009, allocations: 0.5591 MB / 1.132 GB, free: 7.48 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002123/1.011, allocations: 1.154 MB / 1.134 GB, free: 6.754 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.152e-06/1.011, allocations: 1.766 kB / 1.134 GB, free: 6.754 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002438/1.011, allocations: 55.11 kB / 1.134 GB, free: 6.746 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.645e-06/1.011, allocations: 2.062 kB / 1.134 GB, free: 6.746 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.426e-05/1.011, allocations: 10.84 kB / 1.134 GB, free: 6.742 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.54e-06/1.011, allocations: 3.125 kB / 1.134 GB, free: 6.742 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/1.011, allocations: 6.25 kB / 1.134 GB, free: 6.738 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001044/1.012, allocations: 0.6659 MB / 1.134 GB, free: 6.352 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002589/1.013, allocations: 171.8 kB / 1.134 GB, free: 6.207 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001007/1.013, allocations: 7.672 kB / 1.134 GB, free: 6.203 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003092/1.013, allocations: 18.08 kB / 1.134 GB, free: 6.191 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.563e-05/1.013, allocations: 23.48 kB / 1.134 GB, free: 6.188 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.715e-05/1.013, allocations: 18.97 kB / 1.134 GB, free: 6.184 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0005012/1.014, allocations: 344.9 kB / 1.135 GB, free: 6.023 MB / 0.8887 GB Notification: Performance of sort global known variables: time 4.3e-07/1.014, allocations: 1.062 kB / 1.135 GB, free: 6.023 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.000925/1.015, allocations: 198.2 kB / 1.135 GB, free: 5.98 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.0008092/1.015, allocations: 298.2 kB / 1.135 GB, free: 5.816 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.0006225/1.016, allocations: 295.1 kB / 1.136 GB, free: 5.723 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/1.016, allocations: 1.062 kB / 1.136 GB, free: 5.723 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0002898/1.016, allocations: 163.8 kB / 1.136 GB, free: 5.668 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001733/1.018, allocations: 343.1 kB / 1.136 GB, free: 5.562 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001981/1.02, allocations: 1.085 MB / 1.137 GB, free: 4.871 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005135/1.021, allocations: 0.864 MB / 1.138 GB, free: 4.156 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001621/1.021, allocations: 58.39 kB / 1.138 GB, free: 4.145 MB / 0.8887 GB Notification: Performance of SimCode: time 5.01e-07/1.021, allocations: 0 / 1.138 GB, free: 4.145 MB / 0.8887 GB Notification: Performance of Templates: time 0.02251/1.043, allocations: 9.907 MB / 1.148 GB, free: 2.402 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