Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.0007807/0.0007804, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.005555/0.005555, allocations: 171.7 kB / 16.26 MB, free: 6.613 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.439/1.439, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.657/2.657, allocations: 437.7 MB / 0.7121 GB, free: 6.973 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0006254/0.0006255, allocations: 11.94 kB / 0.8728 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7756/0.7762, allocations: 153.8 MB / 1.023 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02549/0.8018, allocations: 22.51 MB / 1.045 GB, free: 9.262 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.007263/0.8091, allocations: 5.069 MB / 1.05 GB, free: 4.18 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007889/0.8099, allocations: 27.81 kB / 1.05 GB, free: 4.152 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0007391/0.8107, allocations: 226.7 kB / 1.05 GB, free: 3.93 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.001729/0.8124, allocations: 0.731 MB / 1.051 GB, free: 3.195 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.001703/0.8141, allocations: 0.6933 MB / 1.052 GB, free: 2.508 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.002095/0.8162, allocations: 2.159 MB / 1.054 GB, free: 348 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005688/0.8168, allocations: 406.6 kB / 1.054 GB, free: 15.94 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007784/0.8176, allocations: 0.525 MB / 1.055 GB, free: 15.41 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000507/0.8181, allocations: 438 kB / 1.055 GB, free: 14.98 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.985e-05/0.8182, allocations: 20 kB / 1.055 GB, free: 14.96 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009354/0.8191, allocations: 458.9 kB / 1.055 GB, free: 14.51 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.000122/0.8192, allocations: 119.4 kB / 1.056 GB, free: 14.39 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002598/0.8195, allocations: 304.2 kB / 1.056 GB, free: 14.09 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0009474/0.8205, allocations: 0.88 MB / 1.057 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.8205, allocations: 0 / 1.057 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.134e-06/0.8205, allocations: 0 / 1.057 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.734e-06/0.8205, allocations: 0 / 1.057 GB, free: 13.21 MB / 0.8106 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.001189/0.8217, allocations: 0.7886 MB / 1.057 GB, free: 12.37 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.702e-05/0.8217, allocations: 8.031 kB / 1.058 GB, free: 12.36 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000189/0.8219, allocations: 64.28 kB / 1.058 GB, free: 12.3 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008686/0.8228, allocations: 0.5609 MB / 1.058 GB, free: 11.7 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.003e-05/0.8229, allocations: 32.94 kB / 1.058 GB, free: 11.67 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.565e-05/0.8229, allocations: 40 kB / 1.058 GB, free: 11.63 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006361/0.8236, allocations: 432.7 kB / 1.059 GB, free: 11.18 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.728e-05/0.8236, allocations: 4 kB / 1.059 GB, free: 11.18 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.78e-05/0.8236, allocations: 19.94 kB / 1.059 GB, free: 11.16 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.073e-05/0.8237, allocations: 8 kB / 1.059 GB, free: 11.15 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004788/0.8241, allocations: 307.8 kB / 1.059 GB, free: 10.85 MB / 0.8106 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.00246/0.8266, allocations: 1.927 MB / 1.061 GB, free: 8.797 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004797/0.8271, allocations: 262.8 kB / 1.061 GB, free: 8.531 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001823/0.8273, allocations: 130.1 kB / 1.061 GB, free: 8.402 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007991/0.8281, allocations: 0.8545 MB / 1.062 GB, free: 7.363 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.471e-05/0.8282, allocations: 38.56 kB / 1.062 GB, free: 7.316 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=26): time 1.512e-06/0.8282, allocations: 0 / 1.062 GB, free: 7.316 MB / 0.8106 GB Notification: Performance of matching and sorting (n=26): time 0.0006464/0.8288, allocations: 372.8 kB / 1.062 GB, free: 6.949 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.691e-05/0.8289, allocations: 59.34 kB / 1.062 GB, free: 6.879 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005124/0.8294, allocations: 474 kB / 1.063 GB, free: 6.406 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.094e-05/0.8294, allocations: 29.7 kB / 1.063 GB, free: 6.371 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001865/0.8296, allocations: 260 kB / 1.063 GB, free: 6.113 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 7.687e-05/0.8297, allocations: 98.64 kB / 1.063 GB, free: 6.016 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.789e-05/0.8298, allocations: 29.7 kB / 1.063 GB, free: 5.98 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001327/0.8299, allocations: 358.8 kB / 1.064 GB, free: 5.621 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001575/0.8301, allocations: 96.61 kB / 1.064 GB, free: 5.527 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002067/0.8303, allocations: 168.1 kB / 1.064 GB, free: 5.34 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000395/0.8307, allocations: 290.6 kB / 1.064 GB, free: 5.031 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.8307, allocations: 0 / 1.064 GB, free: 5.031 MB / 0.8106 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005173/0.8312, allocations: 364.8 kB / 1.065 GB, free: 4.668 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.765e-05/0.8312, allocations: 8 kB / 1.065 GB, free: 4.66 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.7e-06/0.8312, allocations: 0 / 1.065 GB, free: 4.66 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.8313, allocations: 4.219 kB / 1.065 GB, free: 4.656 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000255/0.8315, allocations: 79.84 kB / 1.065 GB, free: 4.578 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.699e-06/0.8315, allocations: 11.92 kB / 1.065 GB, free: 4.566 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002756/0.8318, allocations: 43.53 kB / 1.065 GB, free: 4.523 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.234e-05/0.8319, allocations: 19.98 kB / 1.065 GB, free: 4.504 MB / 0.8106 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.0001895/0.8321, allocations: 173.8 kB / 1.065 GB, free: 4.324 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.946e-05/0.8322, allocations: 51.44 kB / 1.065 GB, free: 4.273 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007513/0.8329, allocations: 472.9 kB / 1.065 GB, free: 3.793 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.601e-05/0.8329, allocations: 19.95 kB / 1.065 GB, free: 3.773 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.8329, allocations: 0 / 1.065 GB, free: 3.773 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000548/0.8335, allocations: 0.5606 MB / 1.066 GB, free: 3.145 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001653/0.8352, allocations: 1.164 MB / 1.067 GB, free: 1.887 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.8352, allocations: 3.984 kB / 1.067 GB, free: 1.883 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002063/0.8354, allocations: 48.11 kB / 1.067 GB, free: 1.836 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-06/0.8354, allocations: 8 kB / 1.067 GB, free: 1.828 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.427e-05/0.8354, allocations: 11.98 kB / 1.067 GB, free: 1.816 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.085e-06/0.8354, allocations: 4 kB / 1.067 GB, free: 1.812 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.8355, allocations: 0 / 1.067 GB, free: 1.812 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000834/0.8363, allocations: 0.6677 MB / 1.068 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000181/0.8365, allocations: 180.3 kB / 1.068 GB, free: 0.9141 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.28e-05/0.8366, allocations: 11.98 kB / 1.068 GB, free: 0.9023 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002928/0.8369, allocations: 19.98 kB / 1.068 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.114e-05/0.8369, allocations: 23.97 kB / 1.068 GB, free: 0.8594 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.905e-05/0.8369, allocations: 15.94 kB / 1.068 GB, free: 0.8438 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003837/0.8373, allocations: 346.8 kB / 1.068 GB, free: 0.5078 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8373, allocations: 0 / 1.068 GB, free: 0.5078 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0006332/0.838, allocations: 199.7 kB / 1.069 GB, free: 320 kB / 0.8106 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.0005885/0.8386, allocations: 297.2 kB / 1.069 GB, free: 20 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004953/0.8391, allocations: 288.8 kB / 1.069 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.8391, allocations: 0 / 1.069 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002138/0.8393, allocations: 164.5 kB / 1.069 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001677/0.841, allocations: 315.7 kB / 1.07 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001747/0.8428, allocations: 1.322 MB / 1.071 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004192/0.8432, allocations: 0.863 MB / 1.072 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.000374/0.8436, allocations: 124.6 kB / 1.072 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000107/0.8437, allocations: 51.42 kB / 1.072 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.8437, allocations: 0 / 1.072 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of Templates: time 0.01978/0.8635, allocations: 11.51 MB / 1.083 GB, free: 1.516 MB / 0.8262 GB make -j1 -f Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter.makefile (rm -f Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; mkfifo Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe >> ../files/Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter.sim & ./Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Sensors_Examples_HeatMeter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches