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.001463/0.001463, 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.001776/0.001777, allocations: 197.9 kB / 16.54 MB, free: 6.672 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.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.792/2.792, allocations: 472.7 MB / 0.7452 GB, free: 4.629 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 68.25 kB / 0.9121 GB, free: 33.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3485/0.3498, allocations: 159.9 MB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02972/0.3795, allocations: 23.24 MB / 1.091 GB, free: 3.051 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.01072/0.3903, allocations: 5.092 MB / 1.096 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001284/0.3916, allocations: 23.88 kB / 1.096 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.00127/0.3929, allocations: 286 kB / 1.096 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.002798/0.3958, allocations: 0.785 MB / 1.097 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.002506/0.3983, allocations: 0.7511 MB / 1.098 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.002511/0.4008, allocations: 1.609 MB / 1.099 GB, free: 10.5 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009885/0.4018, allocations: 493.8 kB / 1.1 GB, free: 10.02 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001898/0.4037, allocations: 0.6107 MB / 1.1 GB, free: 9.406 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008883/0.4046, allocations: 454 kB / 1.101 GB, free: 8.961 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001388/0.4048, allocations: 48 kB / 1.101 GB, free: 8.914 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001366/0.4062, allocations: 487.1 kB / 1.101 GB, free: 8.438 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0002174/0.4064, allocations: 143.5 kB / 1.101 GB, free: 8.297 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0005588/0.407, allocations: 310.5 kB / 1.102 GB, free: 7.992 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001683/0.4087, allocations: 0.9075 MB / 1.103 GB, free: 7.082 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.4087, allocations: 0 / 1.103 GB, free: 7.082 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.583e-06/0.4087, allocations: 4 kB / 1.103 GB, free: 7.078 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.854e-05/0.4087, allocations: 0 / 1.103 GB, free: 7.078 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.00186/0.4106, allocations: 0.8882 MB / 1.103 GB, free: 6.137 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.4106, allocations: 8.031 kB / 1.103 GB, free: 6.129 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003274/0.411, allocations: 68.19 kB / 1.104 GB, free: 6.062 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001271/0.4122, allocations: 0.5454 MB / 1.104 GB, free: 5.477 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.772e-05/0.4123, allocations: 32.94 kB / 1.104 GB, free: 5.445 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.932e-05/0.4124, allocations: 40 kB / 1.104 GB, free: 5.406 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001136/0.4135, allocations: 436.6 kB / 1.105 GB, free: 4.961 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.491e-05/0.4136, allocations: 4 kB / 1.105 GB, free: 4.957 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.42e-05/0.4136, allocations: 20 kB / 1.105 GB, free: 4.938 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.675e-05/0.4137, allocations: 8 kB / 1.105 GB, free: 4.93 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007661/0.4145, allocations: 303.8 kB / 1.105 GB, free: 4.633 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.003677/0.4181, allocations: 1.927 MB / 1.107 GB, free: 2.578 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000642/0.4188, allocations: 256.1 kB / 1.107 GB, free: 2.32 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002539/0.4191, allocations: 128.7 kB / 1.107 GB, free: 2.191 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001079/0.4202, allocations: 0.8506 MB / 1.108 GB, free: 1.156 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.749e-05/0.4202, allocations: 38.56 kB / 1.108 GB, free: 1.109 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=26): time 1.964e-06/0.4202, allocations: 0 / 1.108 GB, free: 1.109 MB / 0.8575 GB Notification: Performance of matching and sorting (n=26): time 0.0009682/0.4212, allocations: 374.8 kB / 1.108 GB, free: 0.7383 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.29e-05/0.4212, allocations: 59.34 kB / 1.108 GB, free: 0.668 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008414/0.4221, allocations: 477.9 kB / 1.109 GB, free: 192 kB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.529e-05/0.4222, allocations: 33.7 kB / 1.109 GB, free: 152 kB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002738/0.4224, allocations: 256.2 kB / 1.109 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001179/0.4226, allocations: 94.59 kB / 1.109 GB, free: 15.8 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001549/0.4227, allocations: 77.92 kB / 1.109 GB, free: 15.72 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001897/0.4229, allocations: 354.8 kB / 1.11 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002407/0.4232, allocations: 100.5 kB / 1.11 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003152/0.4235, allocations: 176 kB / 1.11 GB, free: 15.07 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005553/0.4241, allocations: 286.6 kB / 1.11 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.4241, allocations: 0 / 1.11 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008624/0.425, allocations: 360.9 kB / 1.111 GB, free: 14.41 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.072e-05/0.425, allocations: 8 kB / 1.111 GB, free: 14.4 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.425, allocations: 4 kB / 1.111 GB, free: 14.39 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.324e-05/0.4251, allocations: 4 kB / 1.111 GB, free: 14.39 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003951/0.4255, allocations: 76.05 kB / 1.111 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.62e-05/0.4255, allocations: 11.94 kB / 1.111 GB, free: 14.3 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000395/0.4259, allocations: 39.59 kB / 1.111 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.025e-05/0.426, allocations: 12 kB / 1.111 GB, free: 14.25 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.0002618/0.4262, allocations: 185.7 kB / 1.111 GB, free: 14.06 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001444/0.4264, allocations: 47.44 kB / 1.111 GB, free: 14.02 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001065/0.4275, allocations: 470.9 kB / 1.111 GB, free: 13.55 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.537e-05/0.4275, allocations: 7.938 kB / 1.111 GB, free: 13.54 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.4275, allocations: 0 / 1.111 GB, free: 13.54 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007585/0.4283, allocations: 0.5801 MB / 1.112 GB, free: 12.89 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002555/0.4308, allocations: 1.144 MB / 1.113 GB, free: 11.66 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.536e-06/0.4309, allocations: 8.031 kB / 1.113 GB, free: 11.65 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000304/0.4312, allocations: 43.98 kB / 1.113 GB, free: 11.61 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.454e-06/0.4312, allocations: 0 / 1.113 GB, free: 11.61 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.462e-05/0.4313, allocations: 15.98 kB / 1.113 GB, free: 11.59 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.412e-06/0.4313, allocations: 3.938 kB / 1.113 GB, free: 11.59 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.4313, allocations: 4 kB / 1.113 GB, free: 11.58 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001307/0.4326, allocations: 0.664 MB / 1.114 GB, free: 10.88 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002645/0.4329, allocations: 172.5 kB / 1.114 GB, free: 10.7 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001003/0.433, allocations: 11.98 kB / 1.114 GB, free: 10.68 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003762/0.4334, allocations: 15.92 kB / 1.114 GB, free: 10.67 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.989e-05/0.4334, allocations: 27.97 kB / 1.114 GB, free: 10.64 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.397e-05/0.4335, allocations: 23.92 kB / 1.114 GB, free: 10.62 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0005802/0.4341, allocations: 346.9 kB / 1.114 GB, free: 10.28 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.7e-07/0.4341, allocations: 0 / 1.114 GB, free: 10.28 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0009307/0.435, allocations: 191.8 kB / 1.114 GB, free: 10.09 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.0008715/0.4359, allocations: 295.2 kB / 1.115 GB, free: 9.805 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0007459/0.4367, allocations: 312.7 kB / 1.115 GB, free: 9.5 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/0.4367, allocations: 0 / 1.115 GB, free: 9.5 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0003251/0.437, allocations: 169.2 kB / 1.115 GB, free: 9.336 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002127/0.4392, allocations: 340 kB / 1.116 GB, free: 9.016 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001697/0.4409, allocations: 1.06 MB / 1.117 GB, free: 7.91 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005814/0.4415, allocations: 0.8666 MB / 1.117 GB, free: 7.016 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0003734/0.4418, allocations: 120.7 kB / 1.118 GB, free: 6.895 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001247/0.442, allocations: 55.42 kB / 1.118 GB, free: 6.84 MB / 0.8731 GB Notification: Performance of SimCode: time 3.51e-07/0.442, allocations: 0 / 1.118 GB, free: 6.84 MB / 0.8731 GB Notification: Performance of Templates: time 0.02126/0.4632, allocations: 12.17 MB / 1.129 GB, free: 10.84 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