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.007527/0.007527, allocations: 102.7 kB / 15.73 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: 195.2 kB / 16.68 MB, free: 6.375 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.457/1.457, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.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.437/2.437, allocations: 390.2 MB / 0.6648 GB, free: 208 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 71.88 kB / 0.9509 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3183/0.3195, allocations: 140.4 MB / 1.088 GB, free: 1.453 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.0242/0.3438, allocations: 23.24 MB / 1.111 GB, free: 10.12 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.00815/0.352, allocations: 5.082 MB / 1.116 GB, free: 5.02 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009936/0.353, allocations: 27.88 kB / 1.116 GB, free: 4.992 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.0009037/0.3539, allocations: 282 kB / 1.116 GB, free: 4.715 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.002159/0.3562, allocations: 0.7928 MB / 1.117 GB, free: 3.918 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.002077/0.3582, allocations: 0.7575 MB / 1.117 GB, free: 3.168 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.002199/0.3605, allocations: 1.609 MB / 1.119 GB, free: 1.551 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007371/0.3612, allocations: 489.3 kB / 1.119 GB, free: 1.074 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001552/0.3628, allocations: 0.6344 MB / 1.12 GB, free: 452 kB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006269/0.3634, allocations: 450 kB / 1.12 GB, free: 0 / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 7.806e-05/0.3635, allocations: 52.05 kB / 1.121 GB, free: 15.95 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001164/0.3647, allocations: 487.1 kB / 1.121 GB, free: 15.47 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0001508/0.3649, allocations: 143.5 kB / 1.121 GB, free: 15.33 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0003224/0.3652, allocations: 310.5 kB / 1.121 GB, free: 15.02 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.001284/0.3665, allocations: 0.9231 MB / 1.122 GB, free: 14.1 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.3665, allocations: 0 / 1.122 GB, free: 14.1 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.773e-06/0.3665, allocations: 0 / 1.122 GB, free: 14.1 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 8.716e-06/0.3665, allocations: 0 / 1.122 GB, free: 14.1 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.001308/0.3678, allocations: 0.8882 MB / 1.123 GB, free: 13.16 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.3679, allocations: 8.031 kB / 1.123 GB, free: 13.15 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002467/0.3681, allocations: 68.19 kB / 1.123 GB, free: 13.09 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009939/0.3691, allocations: 0.5766 MB / 1.124 GB, free: 12.47 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.95e-05/0.3692, allocations: 40.88 kB / 1.124 GB, free: 12.43 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.087e-05/0.3692, allocations: 40 kB / 1.124 GB, free: 12.39 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00071/0.37, allocations: 432.7 kB / 1.124 GB, free: 11.94 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.668e-05/0.37, allocations: 4 kB / 1.124 GB, free: 11.94 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.861e-05/0.37, allocations: 19.94 kB / 1.124 GB, free: 11.92 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.303e-05/0.3701, allocations: 8 kB / 1.124 GB, free: 11.91 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004964/0.3706, allocations: 307.8 kB / 1.125 GB, free: 11.62 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.002655/0.3732, allocations: 1.907 MB / 1.127 GB, free: 9.574 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005053/0.3738, allocations: 258.8 kB / 1.127 GB, free: 9.312 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001815/0.374, allocations: 124.8 kB / 1.127 GB, free: 9.188 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008121/0.3748, allocations: 0.8467 MB / 1.128 GB, free: 8.156 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.949e-05/0.3748, allocations: 42.56 kB / 1.128 GB, free: 8.105 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=26): time 2.194e-06/0.3748, allocations: 0 / 1.128 GB, free: 8.105 MB / 0.8887 GB Notification: Performance of matching and sorting (n=26): time 0.0006828/0.3755, allocations: 365.5 kB / 1.128 GB, free: 7.742 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.509e-05/0.3756, allocations: 59.34 kB / 1.128 GB, free: 7.672 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005319/0.3761, allocations: 482 kB / 1.129 GB, free: 7.188 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 3.046e-05/0.3761, allocations: 29.7 kB / 1.129 GB, free: 7.152 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001895/0.3763, allocations: 256.1 kB / 1.129 GB, free: 6.898 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 7.531e-05/0.3764, allocations: 98.58 kB / 1.129 GB, free: 6.801 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001095/0.3765, allocations: 73.92 kB / 1.129 GB, free: 6.723 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001442/0.3767, allocations: 362.8 kB / 1.129 GB, free: 6.359 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001575/0.3768, allocations: 96.61 kB / 1.13 GB, free: 6.266 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000216/0.3771, allocations: 172 kB / 1.13 GB, free: 6.074 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003809/0.3775, allocations: 286.6 kB / 1.13 GB, free: 5.77 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.65e-06/0.3775, allocations: 4 kB / 1.13 GB, free: 5.766 MB / 0.8887 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005762/0.378, allocations: 364.8 kB / 1.13 GB, free: 5.402 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 2.663e-05/0.3781, allocations: 8 kB / 1.13 GB, free: 5.395 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.3781, allocations: 0 / 1.13 GB, free: 5.395 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.087e-05/0.3781, allocations: 4 kB / 1.13 GB, free: 5.391 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002617/0.3784, allocations: 71.84 kB / 1.13 GB, free: 5.32 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.14e-05/0.3784, allocations: 4 kB / 1.13 GB, free: 5.316 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000268/0.3787, allocations: 39.52 kB / 1.13 GB, free: 5.277 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.763e-05/0.3787, allocations: 20.22 kB / 1.13 GB, free: 5.258 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.0002181/0.379, allocations: 187 kB / 1.131 GB, free: 5.066 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.572e-05/0.3791, allocations: 51.44 kB / 1.131 GB, free: 5.016 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007786/0.3798, allocations: 484.5 kB / 1.131 GB, free: 4.535 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.42e-05/0.3799, allocations: 11.98 kB / 1.131 GB, free: 4.523 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.3799, allocations: 3.984 kB / 1.131 GB, free: 4.52 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000571/0.3805, allocations: 0.557 MB / 1.132 GB, free: 3.895 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001694/0.3822, allocations: 1.152 MB / 1.133 GB, free: 2.648 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.3822, allocations: 0 / 1.133 GB, free: 2.648 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002193/0.3824, allocations: 51.91 kB / 1.133 GB, free: 2.598 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.234e-06/0.3824, allocations: 4 kB / 1.133 GB, free: 2.594 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.399e-05/0.3824, allocations: 15.92 kB / 1.133 GB, free: 2.578 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.392e-06/0.3825, allocations: 4 kB / 1.133 GB, free: 2.574 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.065e-06/0.3825, allocations: 4.125 kB / 1.133 GB, free: 2.57 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000845/0.3833, allocations: 0.6601 MB / 1.134 GB, free: 1.875 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001897/0.3835, allocations: 180.3 kB / 1.134 GB, free: 1.68 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.197e-05/0.3836, allocations: 8 kB / 1.134 GB, free: 1.672 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002711/0.3839, allocations: 11.98 kB / 1.134 GB, free: 1.66 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.42e-05/0.384, allocations: 27.91 kB / 1.134 GB, free: 1.633 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.35e-05/0.384, allocations: 15.94 kB / 1.134 GB, free: 1.617 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0004499/0.3845, allocations: 346.8 kB / 1.134 GB, free: 1.281 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.61e-07/0.3845, allocations: 0 / 1.134 GB, free: 1.281 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0007751/0.3852, allocations: 195.8 kB / 1.134 GB, free: 1.09 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.0008378/0.3861, allocations: 299.7 kB / 1.135 GB, free: 0.7969 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.0005796/0.3867, allocations: 295.5 kB / 1.135 GB, free: 0.5078 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.3867, allocations: 0 / 1.135 GB, free: 0.5078 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0002695/0.387, allocations: 171 kB / 1.135 GB, free: 352 kB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001572/0.3886, allocations: 336.6 kB / 1.135 GB, free: 24 kB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001706/0.3903, allocations: 1.057 MB / 1.136 GB, free: 14.92 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004316/0.3907, allocations: 0.8627 MB / 1.137 GB, free: 14.03 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.000367/0.3911, allocations: 120.6 kB / 1.137 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001151/0.3912, allocations: 59.41 kB / 1.137 GB, free: 13.85 MB / 0.9044 GB Notification: Performance of SimCode: time 7.72e-07/0.3912, allocations: 0 / 1.137 GB, free: 13.85 MB / 0.9044 GB Notification: Performance of Templates: time 0.02215/0.4134, allocations: 12.2 MB / 1.149 GB, free: 1.828 MB / 0.9044 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