Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001743/0.001744, allocations: 105.6 kB / 15.98 MB, free: 6.289 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.00196/0.00196, allocations: 197.9 kB / 16.91 MB, free: 6.148 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.43/1.43, allocations: 222.9 MB / 240.6 MB, free: 15.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.683/2.683, allocations: 469.8 MB / 0.7427 GB, free: 3.625 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001867/0.001867, allocations: 60.05 kB / 0.9087 GB, free: 14.28 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3276/0.3295, allocations: 159.2 MB / 1.064 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.5773/0.9068, allocations: 23.08 MB / 1.087 GB, free: 10.43 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.007249/0.9141, allocations: 5.06 MB / 1.092 GB, free: 8.52 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001161/0.9153, allocations: 22.84 kB / 1.092 GB, free: 8.512 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0008684/0.9162, allocations: 233.5 kB / 1.092 GB, free: 8.375 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.002403/0.9186, allocations: 0.7404 MB / 1.093 GB, free: 7.941 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.002121/0.9207, allocations: 0.6949 MB / 1.093 GB, free: 7.566 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.002493/0.9232, allocations: 1.626 MB / 1.095 GB, free: 6.812 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007775/0.924, allocations: 486.1 kB / 1.095 GB, free: 6.609 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001794/0.9258, allocations: 0.6216 MB / 1.096 GB, free: 6.32 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007248/0.9266, allocations: 473.1 kB / 1.096 GB, free: 6.113 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 8.863e-05/0.9267, allocations: 46.22 kB / 1.096 GB, free: 6.113 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001441/0.9281, allocations: 495 kB / 1.097 GB, free: 5.926 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001741/0.9283, allocations: 138.3 kB / 1.097 GB, free: 5.848 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0003965/0.9287, allocations: 313 kB / 1.097 GB, free: 5.668 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001319/0.93, allocations: 0.6836 MB / 1.098 GB, free: 5.453 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.93, allocations: 0 / 1.098 GB, free: 5.453 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.273e-06/0.9301, allocations: 1.062 kB / 1.098 GB, free: 5.453 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.407e-05/0.9301, allocations: 0 / 1.098 GB, free: 5.453 MB / 0.8419 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.00156/0.9316, allocations: 0.8879 MB / 1.099 GB, free: 4.781 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.146e-05/0.9317, allocations: 9.75 kB / 1.099 GB, free: 4.781 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000258/0.932, allocations: 72.11 kB / 1.099 GB, free: 4.746 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009498/0.9329, allocations: 0.5601 MB / 1.099 GB, free: 4.359 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.232e-05/0.933, allocations: 32.91 kB / 1.099 GB, free: 4.34 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.408e-05/0.9331, allocations: 39.09 kB / 1.1 GB, free: 4.328 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007307/0.9338, allocations: 439.8 kB / 1.1 GB, free: 4.117 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.012e-05/0.9338, allocations: 0 / 1.1 GB, free: 4.117 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.064e-05/0.9339, allocations: 17.52 kB / 1.1 GB, free: 4.105 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.512e-05/0.9339, allocations: 10.16 kB / 1.1 GB, free: 4.105 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005143/0.9344, allocations: 302.1 kB / 1.1 GB, free: 4.004 MB / 0.8419 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.00257/0.937, allocations: 1.923 MB / 1.102 GB, free: 2.629 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005219/0.9375, allocations: 253.3 kB / 1.102 GB, free: 2.531 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001858/0.9377, allocations: 126.3 kB / 1.103 GB, free: 2.48 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006456/0.9384, allocations: 0.8551 MB / 1.103 GB, free: 1.523 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2e-05/0.9384, allocations: 32 kB / 1.103 GB, free: 1.484 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=26): time 1.763e-06/0.9384, allocations: 0 / 1.103 GB, free: 1.484 MB / 0.8419 GB Notification: Performance of matching and sorting (n=26): time 0.00076/0.9392, allocations: 369 kB / 1.104 GB, free: 1.332 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.011e-05/0.9392, allocations: 58.94 kB / 1.104 GB, free: 1.266 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005679/0.9398, allocations: 469.2 kB / 1.104 GB, free: 1.043 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.114e-05/0.9398, allocations: 35.22 kB / 1.104 GB, free: 1.004 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001612/0.94, allocations: 265.1 kB / 1.105 GB, free: 0.7891 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 8.137e-05/0.9401, allocations: 94.16 kB / 1.105 GB, free: 0.7148 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001161/0.9402, allocations: 74.14 kB / 1.105 GB, free: 0.6719 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 8.046e-05/0.9403, allocations: 356.5 kB / 1.105 GB, free: 348 kB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001693/0.9405, allocations: 101.6 kB / 1.105 GB, free: 312 kB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000222/0.9407, allocations: 169.8 kB / 1.105 GB, free: 204 kB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00037/0.9411, allocations: 292 kB / 1.106 GB, free: 24 kB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.9411, allocations: 1.219 kB / 1.106 GB, free: 24 kB / 0.8419 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006581/0.9418, allocations: 356.9 kB / 1.106 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.187e-05/0.9418, allocations: 5.672 kB / 1.106 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.9418, allocations: 2.406 kB / 1.106 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.899e-05/0.9418, allocations: 3.438 kB / 1.106 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002866/0.9421, allocations: 74.38 kB / 1.106 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.737e-05/0.9421, allocations: 16.22 kB / 1.106 GB, free: 15.85 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003593/0.9425, allocations: 45.41 kB / 1.106 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.383e-05/0.9426, allocations: 17.45 kB / 1.106 GB, free: 15.82 MB / 0.8575 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.0002472/0.9428, allocations: 175.3 kB / 1.106 GB, free: 15.67 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001018/0.9429, allocations: 48.22 kB / 1.106 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009319/0.9439, allocations: 480 kB / 1.107 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.59e-05/0.9439, allocations: 8 kB / 1.107 GB, free: 15.44 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.336e-06/0.9439, allocations: 5.672 kB / 1.107 GB, free: 15.44 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006556/0.9446, allocations: 0.5661 MB / 1.107 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002148/0.9467, allocations: 1.147 MB / 1.108 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.517e-05/0.9467, allocations: 2.312 kB / 1.108 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002347/0.947, allocations: 50.03 kB / 1.108 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.062e-05/0.947, allocations: 8.547 kB / 1.108 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.765e-05/0.947, allocations: 9.141 kB / 1.108 GB, free: 14.26 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.656e-06/0.9471, allocations: 7.703 kB / 1.108 GB, free: 14.26 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.9471, allocations: 1.656 kB / 1.108 GB, free: 14.26 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009889/0.9481, allocations: 0.6692 MB / 1.109 GB, free: 13.87 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002687/0.9483, allocations: 175.4 kB / 1.109 GB, free: 13.72 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.706e-05/0.9484, allocations: 12.48 kB / 1.109 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000302/0.9487, allocations: 20.56 kB / 1.109 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.214e-05/0.9488, allocations: 22.73 kB / 1.109 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.9e-05/0.9488, allocations: 18.47 kB / 1.109 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0004804/0.9493, allocations: 342.7 kB / 1.11 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.71e-07/0.9493, allocations: 0 / 1.11 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0007818/0.9501, allocations: 193 kB / 1.11 GB, free: 13.5 MB / 0.8575 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.0007011/0.9508, allocations: 293.2 kB / 1.11 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000652/0.9515, allocations: 315.1 kB / 1.11 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.9515, allocations: 1.5 kB / 1.11 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002781/0.9518, allocations: 164 kB / 1.111 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001592/0.9534, allocations: 333.7 kB / 1.111 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002225/0.9556, allocations: 1.281 MB / 1.112 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005429/0.9562, allocations: 0.8609 MB / 1.113 GB, free: 11.49 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001582/0.9563, allocations: 61.39 kB / 1.113 GB, free: 11.47 MB / 0.8575 GB Notification: Performance of SimCode: time 4.21e-07/0.9564, allocations: 0 / 1.113 GB, free: 11.47 MB / 0.8575 GB Notification: Performance of Templates: time 0.01946/0.9758, allocations: 9.761 MB / 1.123 GB, free: 10.33 MB / 0.8575 GB make -j1 -f Buildings_11_Buildings.Fluid.Sensors.Examples.HeatMeter.makefile (rm -f Buildings_11_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; mkfifo Buildings_11_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe >> ../files/Buildings_11_Buildings.Fluid.Sensors.Examples.HeatMeter.sim & ./Buildings_11_Buildings.Fluid.Sensors.Examples.HeatMeter -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.Sensors.Examples.HeatMeter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Sensors_Examples_HeatMeter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Sensors.Examples.HeatMeter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches