Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.001084/0.001084, allocations: 108 kB / 15.6 MB, free: 132 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.001121/0.001121, allocations: 192.9 kB / 16.53 MB, free: 6.391 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.361/1.361, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.748/2.748, allocations: 472.6 MB / 0.7451 GB, free: 4.633 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001284, allocations: 65.61 kB / 0.912 GB, free: 33.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3477/0.349, allocations: 159.9 MB / 1.068 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02435/0.3734, allocations: 23.24 MB / 1.091 GB, free: 3.102 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.007726/0.3811, allocations: 5.085 MB / 1.096 GB, free: 14 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008358/0.382, allocations: 27.81 kB / 1.096 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0007683/0.3828, allocations: 278.1 kB / 1.096 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.001934/0.3848, allocations: 0.789 MB / 1.097 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001819/0.3866, allocations: 0.7536 MB / 1.098 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.001701/0.3883, allocations: 1.613 MB / 1.099 GB, free: 10.54 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000612/0.3889, allocations: 493.8 kB / 1.1 GB, free: 10.06 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001232/0.3902, allocations: 0.6148 MB / 1.1 GB, free: 9.449 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005444/0.3907, allocations: 454 kB / 1.101 GB, free: 9.004 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 7.27e-05/0.3908, allocations: 44 kB / 1.101 GB, free: 8.961 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000984/0.3918, allocations: 495.1 kB / 1.101 GB, free: 8.477 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001553/0.392, allocations: 135.6 kB / 1.101 GB, free: 8.344 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002788/0.3923, allocations: 306.5 kB / 1.102 GB, free: 8.043 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001099/0.3934, allocations: 0.9114 MB / 1.103 GB, free: 7.129 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.3934, allocations: 0 / 1.103 GB, free: 7.129 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.313e-06/0.3934, allocations: 0 / 1.103 GB, free: 7.129 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.056e-06/0.3934, allocations: 0 / 1.103 GB, free: 7.129 MB / 0.8575 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.001233/0.3946, allocations: 0.892 MB / 1.103 GB, free: 6.184 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.3947, allocations: 8.031 kB / 1.103 GB, free: 6.176 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002133/0.3949, allocations: 80.11 kB / 1.103 GB, free: 6.098 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008659/0.3958, allocations: 0.5337 MB / 1.104 GB, free: 5.523 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.516e-05/0.3958, allocations: 36.94 kB / 1.104 GB, free: 5.488 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.48e-05/0.3959, allocations: 40 kB / 1.104 GB, free: 5.449 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006634/0.3966, allocations: 432.7 kB / 1.105 GB, free: 5.008 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.74e-05/0.3966, allocations: 7.922 kB / 1.105 GB, free: 5 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.643e-05/0.3966, allocations: 12 kB / 1.105 GB, free: 4.988 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.072e-05/0.3967, allocations: 16 kB / 1.105 GB, free: 4.973 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005273/0.3972, allocations: 307.8 kB / 1.105 GB, free: 4.672 MB / 0.8575 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.002531/0.3997, allocations: 1.923 MB / 1.107 GB, free: 2.621 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004864/0.4002, allocations: 258.8 kB / 1.107 GB, free: 2.359 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001697/0.4004, allocations: 120.8 kB / 1.107 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008239/0.4012, allocations: 0.8506 MB / 1.108 GB, free: 1.203 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.327e-05/0.4013, allocations: 42.5 kB / 1.108 GB, free: 1.152 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=26): time 1.403e-06/0.4013, allocations: 0 / 1.108 GB, free: 1.152 MB / 0.8575 GB Notification: Performance of matching and sorting (n=26): time 0.0006412/0.4019, allocations: 370.2 kB / 1.108 GB, free: 0.7852 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.32e-05/0.402, allocations: 59.34 kB / 1.108 GB, free: 0.7148 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005076/0.4025, allocations: 477.9 kB / 1.109 GB, free: 240 kB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.873e-05/0.4025, allocations: 29.7 kB / 1.109 GB, free: 204 kB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001966/0.4027, allocations: 252.3 kB / 1.109 GB, free: 15.95 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 7.373e-05/0.4028, allocations: 102.7 kB / 1.109 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001081/0.4029, allocations: 77.92 kB / 1.109 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001384/0.4031, allocations: 358.7 kB / 1.11 GB, free: 15.4 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001667/0.4033, allocations: 100.6 kB / 1.11 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000216/0.4035, allocations: 168 kB / 1.11 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003852/0.4039, allocations: 286.7 kB / 1.11 GB, free: 14.81 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.4039, allocations: 0 / 1.11 GB, free: 14.81 MB / 0.8731 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005393/0.4044, allocations: 364.8 kB / 1.11 GB, free: 14.45 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.4045, allocations: 8 kB / 1.11 GB, free: 14.44 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.4045, allocations: 0 / 1.11 GB, free: 14.44 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.485e-05/0.4045, allocations: 4 kB / 1.11 GB, free: 14.44 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002652/0.4047, allocations: 79.83 kB / 1.111 GB, free: 14.36 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.917e-06/0.4048, allocations: 4 kB / 1.111 GB, free: 14.36 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002562/0.405, allocations: 39.81 kB / 1.111 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.249e-05/0.4051, allocations: 19.98 kB / 1.111 GB, free: 14.3 MB / 0.8731 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.0001843/0.4053, allocations: 179 kB / 1.111 GB, free: 14.11 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.197e-05/0.4054, allocations: 47.44 kB / 1.111 GB, free: 14.07 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007627/0.4061, allocations: 478.8 kB / 1.111 GB, free: 13.59 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.159e-05/0.4061, allocations: 11.92 kB / 1.111 GB, free: 13.58 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.4062, allocations: 0 / 1.111 GB, free: 13.58 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005494/0.4067, allocations: 0.5684 MB / 1.112 GB, free: 12.95 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001622/0.4083, allocations: 1.148 MB / 1.113 GB, free: 11.7 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.279e-06/0.4084, allocations: 4 kB / 1.113 GB, free: 11.7 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002239/0.4086, allocations: 56.09 kB / 1.113 GB, free: 11.64 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.4086, allocations: 4 kB / 1.113 GB, free: 11.64 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.323e-05/0.4086, allocations: 12 kB / 1.113 GB, free: 11.63 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.4086, allocations: 0 / 1.113 GB, free: 11.63 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.4086, allocations: 4 kB / 1.113 GB, free: 11.62 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008664/0.4095, allocations: 0.6678 MB / 1.114 GB, free: 10.92 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001867/0.4097, allocations: 172.4 kB / 1.114 GB, free: 10.73 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.056e-05/0.4098, allocations: 11.98 kB / 1.114 GB, free: 10.72 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002704/0.4101, allocations: 11.94 kB / 1.114 GB, free: 10.71 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.257e-05/0.4101, allocations: 19.97 kB / 1.114 GB, free: 10.69 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.086e-05/0.4102, allocations: 23.92 kB / 1.114 GB, free: 10.67 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0003836/0.4106, allocations: 346.9 kB / 1.114 GB, free: 10.33 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4106, allocations: 0 / 1.114 GB, free: 10.33 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0005843/0.4112, allocations: 191.8 kB / 1.114 GB, free: 10.14 MB / 0.8731 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.0006086/0.4118, allocations: 298.7 kB / 1.115 GB, free: 9.852 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0005428/0.4123, allocations: 316.7 kB / 1.115 GB, free: 9.543 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.4123, allocations: 0 / 1.115 GB, free: 9.543 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002277/0.4126, allocations: 160.5 kB / 1.115 GB, free: 9.387 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001565/0.4141, allocations: 346.9 kB / 1.116 GB, free: 9.062 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001575/0.4157, allocations: 1.064 MB / 1.117 GB, free: 7.953 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004166/0.4162, allocations: 0.8705 MB / 1.117 GB, free: 7.055 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0003582/0.4165, allocations: 120.6 kB / 1.118 GB, free: 6.934 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001112/0.4166, allocations: 55.42 kB / 1.118 GB, free: 6.879 MB / 0.8731 GB Notification: Performance of SimCode: time 3.01e-07/0.4166, allocations: 0 / 1.118 GB, free: 6.879 MB / 0.8731 GB Notification: Performance of Templates: time 0.02191/0.4386, allocations: 12.16 MB / 1.129 GB, free: 10.88 MB / 0.8887 GB make -j1 -f Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.makefile (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.sim & ./Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sensors_Examples_HeatMeter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches