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.008434/0.008434, allocations: 101 kB / 15.73 MB, free: 6.047 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.002026/0.002026, allocations: 188 kB / 16.67 MB, free: 5.977 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.383/1.383, allocations: 222.9 MB / 240.4 MB, free: 4.32 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.344/2.344, allocations: 390.2 MB / 0.6648 GB, free: 184 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 67.55 kB / 0.9509 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2852/0.2865, allocations: 140.4 MB / 1.088 GB, free: 1.457 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02367/0.3102, allocations: 23.24 MB / 1.111 GB, free: 10.12 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.007579/0.3178, allocations: 5.092 MB / 1.116 GB, free: 5.012 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008903/0.3187, allocations: 23.88 kB / 1.116 GB, free: 4.988 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.000853/0.3196, allocations: 278 kB / 1.116 GB, free: 4.715 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.00197/0.3216, allocations: 0.7968 MB / 1.117 GB, free: 3.914 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.001826/0.3235, allocations: 0.7657 MB / 1.117 GB, free: 3.156 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.00182/0.3253, allocations: 1.606 MB / 1.119 GB, free: 1.543 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000618/0.3259, allocations: 489.2 kB / 1.119 GB, free: 1.066 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001921/0.3279, allocations: 0.6123 MB / 1.12 GB, free: 464 kB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008668/0.3288, allocations: 446 kB / 1.12 GB, free: 16 kB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0001105/0.3289, allocations: 52.05 kB / 1.121 GB, free: 15.96 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001419/0.3303, allocations: 491 kB / 1.121 GB, free: 15.48 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0001921/0.3305, allocations: 147.4 kB / 1.121 GB, free: 15.34 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0004149/0.3309, allocations: 310.5 kB / 1.121 GB, free: 15.04 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.001746/0.3327, allocations: 0.9192 MB / 1.122 GB, free: 14.11 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.3327, allocations: 0 / 1.122 GB, free: 14.11 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.974e-06/0.3327, allocations: 0 / 1.122 GB, free: 14.11 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.147e-05/0.3327, allocations: 0 / 1.122 GB, free: 14.11 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.001415/0.3342, allocations: 0.8882 MB / 1.123 GB, free: 13.18 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.3342, allocations: 8.031 kB / 1.123 GB, free: 13.17 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002361/0.3344, allocations: 68.19 kB / 1.123 GB, free: 13.1 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00106/0.3355, allocations: 0.5766 MB / 1.124 GB, free: 12.48 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.934e-05/0.3356, allocations: 36.88 kB / 1.124 GB, free: 12.45 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.181e-05/0.3356, allocations: 44 kB / 1.124 GB, free: 12.41 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006614/0.3363, allocations: 436.6 kB / 1.124 GB, free: 11.95 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.768e-05/0.3363, allocations: 0 / 1.124 GB, free: 11.95 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.108e-05/0.3364, allocations: 20 kB / 1.124 GB, free: 11.93 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.093e-05/0.3364, allocations: 16 kB / 1.124 GB, free: 11.92 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004805/0.3369, allocations: 303.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.002526/0.3394, allocations: 1.907 MB / 1.127 GB, free: 9.582 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004925/0.3399, allocations: 262.8 kB / 1.127 GB, free: 9.316 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001836/0.3401, allocations: 124.8 kB / 1.127 GB, free: 9.191 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008085/0.3409, allocations: 0.8428 MB / 1.128 GB, free: 8.164 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.645e-05/0.341, allocations: 38.56 kB / 1.128 GB, free: 8.117 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=26): time 1.493e-06/0.341, allocations: 0 / 1.128 GB, free: 8.117 MB / 0.8887 GB Notification: Performance of matching and sorting (n=26): time 0.0006681/0.3417, allocations: 369.5 kB / 1.128 GB, free: 7.75 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.929e-05/0.3417, allocations: 59.34 kB / 1.128 GB, free: 7.68 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005173/0.3422, allocations: 474 kB / 1.129 GB, free: 7.203 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 3.116e-05/0.3423, allocations: 33.7 kB / 1.129 GB, free: 7.164 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001797/0.3425, allocations: 264.1 kB / 1.129 GB, free: 6.902 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 6.97e-05/0.3426, allocations: 90.66 kB / 1.129 GB, free: 6.812 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001143/0.3427, allocations: 73.92 kB / 1.129 GB, free: 6.734 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.000146/0.3428, allocations: 358.8 kB / 1.129 GB, free: 6.375 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001596/0.343, allocations: 92.61 kB / 1.129 GB, free: 6.285 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002202/0.3432, allocations: 176 kB / 1.13 GB, free: 6.09 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000389/0.3436, allocations: 290.6 kB / 1.13 GB, free: 5.781 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.3436, allocations: 0 / 1.13 GB, free: 5.781 MB / 0.8887 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005626/0.3442, allocations: 364.8 kB / 1.13 GB, free: 5.418 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.3442, allocations: 4 kB / 1.13 GB, free: 5.414 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.3442, allocations: 7.938 kB / 1.13 GB, free: 5.406 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.803e-05/0.3443, allocations: 4 kB / 1.13 GB, free: 5.402 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002632/0.3445, allocations: 79.83 kB / 1.13 GB, free: 5.324 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.322e-05/0.3446, allocations: 7.984 kB / 1.13 GB, free: 5.316 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002437/0.3448, allocations: 35.75 kB / 1.13 GB, free: 5.281 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.584e-05/0.3448, allocations: 20 kB / 1.13 GB, free: 5.262 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.0002/0.3451, allocations: 187 kB / 1.131 GB, free: 5.07 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.138e-05/0.3451, allocations: 47.44 kB / 1.131 GB, free: 5.023 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007824/0.3459, allocations: 480.5 kB / 1.131 GB, free: 4.547 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.11e-05/0.346, allocations: 7.938 kB / 1.131 GB, free: 4.539 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.346, allocations: 4 kB / 1.131 GB, free: 4.535 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005822/0.3466, allocations: 0.5609 MB / 1.132 GB, free: 3.906 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001798/0.3484, allocations: 1.152 MB / 1.133 GB, free: 2.66 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.3484, allocations: 0 / 1.133 GB, free: 2.66 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002208/0.3486, allocations: 55.92 kB / 1.133 GB, free: 2.605 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.222e-06/0.3486, allocations: 4 kB / 1.133 GB, free: 2.602 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.467e-05/0.3487, allocations: 11.98 kB / 1.133 GB, free: 2.59 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.3487, allocations: 4 kB / 1.133 GB, free: 2.586 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.3487, allocations: 8.125 kB / 1.133 GB, free: 2.578 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008669/0.3496, allocations: 0.664 MB / 1.134 GB, free: 1.879 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001951/0.3498, allocations: 172.3 kB / 1.134 GB, free: 1.691 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.416e-05/0.3498, allocations: 8 kB / 1.134 GB, free: 1.684 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002622/0.3501, allocations: 11.98 kB / 1.134 GB, free: 1.672 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.12e-05/0.3502, allocations: 27.91 kB / 1.134 GB, free: 1.645 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.414e-05/0.3502, allocations: 19.92 kB / 1.134 GB, free: 1.625 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0003768/0.3506, allocations: 346.8 kB / 1.134 GB, free: 1.289 MB / 0.8887 GB Notification: Performance of sort global known variables: time 2.91e-07/0.3506, allocations: 0 / 1.134 GB, free: 1.289 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0006218/0.3512, allocations: 199.8 kB / 1.134 GB, free: 1.094 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.0006028/0.3518, allocations: 290.2 kB / 1.135 GB, free: 0.8125 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.0004735/0.3523, allocations: 295.5 kB / 1.135 GB, free: 0.5234 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.3523, allocations: 0 / 1.135 GB, free: 0.5234 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0002316/0.3526, allocations: 171 kB / 1.135 GB, free: 368 kB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001497/0.3541, allocations: 327.8 kB / 1.135 GB, free: 44 kB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001576/0.3557, allocations: 1.057 MB / 1.136 GB, free: 14.94 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003898/0.3561, allocations: 0.8744 MB / 1.137 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0003221/0.3564, allocations: 124.6 kB / 1.137 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001053/0.3565, allocations: 51.42 kB / 1.137 GB, free: 13.86 MB / 0.9044 GB Notification: Performance of SimCode: time 3.6e-07/0.3565, allocations: 0 / 1.137 GB, free: 13.86 MB / 0.9044 GB Notification: Performance of Templates: time 0.02123/0.3777, allocations: 12.22 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