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.00157/0.00157, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00148/0.00148, allocations: 193.8 kB / 16.53 MB, free: 6.664 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.379/1.379, allocations: 222.9 MB / 240.2 MB, free: 4.371 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.666/2.666, allocations: 437 MB / 0.7104 GB, free: 5.09 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 63.91 kB / 0.8692 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6881/0.6895, allocations: 151.6 MB / 1.017 GB, free: 2.484 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02355/0.713, allocations: 23.24 MB / 1.04 GB, free: 11.16 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.007279/0.7204, allocations: 5.091 MB / 1.045 GB, free: 6.055 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007645/0.7212, allocations: 23.88 kB / 1.045 GB, free: 6.031 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0007723/0.7219, allocations: 282 kB / 1.045 GB, free: 5.754 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.001982/0.724, allocations: 0.785 MB / 1.046 GB, free: 4.965 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.001858/0.7259, allocations: 0.7625 MB / 1.047 GB, free: 4.207 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.001846/0.7277, allocations: 1.61 MB / 1.048 GB, free: 2.59 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006425/0.7284, allocations: 487.5 kB / 1.049 GB, free: 2.109 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001358/0.7297, allocations: 0.6045 MB / 1.049 GB, free: 1.504 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005807/0.7303, allocations: 458 kB / 1.05 GB, free: 1.055 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 7.763e-05/0.7304, allocations: 44 kB / 1.05 GB, free: 1.012 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001107/0.7315, allocations: 495.1 kB / 1.05 GB, free: 0.5273 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001492/0.7317, allocations: 131.6 kB / 1.05 GB, free: 408 kB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0003213/0.732, allocations: 306.5 kB / 1.051 GB, free: 100 kB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0014/0.7334, allocations: 0.9076 MB / 1.052 GB, free: 15.19 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.7334, allocations: 0 / 1.052 GB, free: 15.19 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.533e-06/0.7335, allocations: 3.938 kB / 1.052 GB, free: 15.18 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.044e-05/0.7335, allocations: 0 / 1.052 GB, free: 15.18 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.001473/0.735, allocations: 0.8933 MB / 1.052 GB, free: 14.24 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.971e-05/0.735, allocations: 12.03 kB / 1.053 GB, free: 14.23 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002704/0.7353, allocations: 68.2 kB / 1.053 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001054/0.7364, allocations: 0.5377 MB / 1.053 GB, free: 13.59 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.144e-05/0.7364, allocations: 32.94 kB / 1.053 GB, free: 13.55 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.543e-05/0.7365, allocations: 39.91 kB / 1.053 GB, free: 13.52 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007275/0.7372, allocations: 440.7 kB / 1.054 GB, free: 13.06 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.989e-05/0.7372, allocations: 0 / 1.054 GB, free: 13.06 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.447e-05/0.7373, allocations: 16 kB / 1.054 GB, free: 13.05 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.101e-05/0.7373, allocations: 19.94 kB / 1.054 GB, free: 13.03 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005149/0.7379, allocations: 299.8 kB / 1.054 GB, free: 12.74 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.002696/0.7406, allocations: 1.919 MB / 1.056 GB, free: 10.68 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005315/0.7411, allocations: 264.1 kB / 1.056 GB, free: 10.42 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001852/0.7413, allocations: 129.5 kB / 1.056 GB, free: 10.29 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008926/0.7422, allocations: 0.8427 MB / 1.057 GB, free: 9.262 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.625e-05/0.7423, allocations: 38.56 kB / 1.057 GB, free: 9.215 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=26): time 1.713e-06/0.7423, allocations: 0 / 1.057 GB, free: 9.215 MB / 0.8106 GB Notification: Performance of matching and sorting (n=26): time 0.0008049/0.7431, allocations: 362.9 kB / 1.057 GB, free: 8.855 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.299e-05/0.7431, allocations: 67.28 kB / 1.057 GB, free: 8.777 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005952/0.7437, allocations: 474.1 kB / 1.058 GB, free: 8.305 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.375e-05/0.7438, allocations: 33.64 kB / 1.058 GB, free: 8.266 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002147/0.744, allocations: 260 kB / 1.058 GB, free: 8.008 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 9.914e-05/0.7441, allocations: 98.64 kB / 1.058 GB, free: 7.91 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001068/0.7442, allocations: 69.92 kB / 1.058 GB, free: 7.836 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001393/0.7444, allocations: 358.8 kB / 1.059 GB, free: 7.477 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000157/0.7446, allocations: 100.6 kB / 1.059 GB, free: 7.379 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002142/0.7448, allocations: 168.1 kB / 1.059 GB, free: 7.191 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003729/0.7452, allocations: 278.7 kB / 1.059 GB, free: 6.895 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.7452, allocations: 4 kB / 1.059 GB, free: 6.891 MB / 0.8106 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005396/0.7457, allocations: 364.8 kB / 1.06 GB, free: 6.527 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.7457, allocations: 8.219 kB / 1.06 GB, free: 6.52 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.7457, allocations: 4 kB / 1.06 GB, free: 6.516 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.882e-05/0.7458, allocations: 8 kB / 1.06 GB, free: 6.508 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002697/0.746, allocations: 79.83 kB / 1.06 GB, free: 6.43 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.035e-05/0.7461, allocations: 4 kB / 1.06 GB, free: 6.426 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002789/0.7464, allocations: 35.53 kB / 1.06 GB, free: 6.391 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.676e-05/0.7464, allocations: 19.98 kB / 1.06 GB, free: 6.371 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.0002169/0.7466, allocations: 173.8 kB / 1.06 GB, free: 6.191 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.798e-05/0.7467, allocations: 55.44 kB / 1.06 GB, free: 6.137 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007933/0.7475, allocations: 473 kB / 1.06 GB, free: 5.664 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.117e-05/0.7476, allocations: 11.91 kB / 1.06 GB, free: 5.652 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.7476, allocations: 4 kB / 1.06 GB, free: 5.648 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000578/0.7482, allocations: 0.5645 MB / 1.061 GB, free: 5.016 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001675/0.7498, allocations: 1.156 MB / 1.062 GB, free: 3.766 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.7499, allocations: 0 / 1.062 GB, free: 3.766 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002147/0.7501, allocations: 59.84 kB / 1.062 GB, free: 3.707 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.003e-06/0.7501, allocations: 4 kB / 1.062 GB, free: 3.703 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.454e-05/0.7501, allocations: 8 kB / 1.062 GB, free: 3.695 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.179e-06/0.7501, allocations: 4 kB / 1.062 GB, free: 3.691 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.7501, allocations: 192 / 1.062 GB, free: 3.691 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008252/0.751, allocations: 0.6723 MB / 1.063 GB, free: 2.984 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000189/0.7512, allocations: 172.4 kB / 1.063 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.04e-05/0.7513, allocations: 11.98 kB / 1.063 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002639/0.7515, allocations: 8 kB / 1.063 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.174e-05/0.7516, allocations: 19.97 kB / 1.063 GB, free: 2.758 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.612e-05/0.7516, allocations: 23.92 kB / 1.063 GB, free: 2.734 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003968/0.752, allocations: 342.9 kB / 1.063 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.51e-07/0.752, allocations: 0 / 1.063 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0006327/0.7527, allocations: 195.8 kB / 1.064 GB, free: 2.211 MB / 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.0005979/0.7533, allocations: 307.9 kB / 1.064 GB, free: 1.91 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0005469/0.7538, allocations: 329.3 kB / 1.064 GB, free: 1.59 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.7538, allocations: 0 / 1.064 GB, free: 1.59 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.00022/0.7541, allocations: 159.8 kB / 1.064 GB, free: 1.434 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001524/0.7556, allocations: 336.5 kB / 1.065 GB, free: 1.121 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001595/0.7572, allocations: 1.076 MB / 1.066 GB, free: 0 / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003913/0.7576, allocations: 0.8705 MB / 1.067 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0003728/0.758, allocations: 116.7 kB / 1.067 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001111/0.7581, allocations: 51.42 kB / 1.067 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of SimCode: time 3.21e-07/0.7581, allocations: 0 / 1.067 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of Templates: time 0.02003/0.7781, allocations: 12.17 MB / 1.079 GB, free: 2.957 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