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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001001/0.001001, allocations: 91.84 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.009089/0.009089, allocations: 169.9 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.415/1.415, 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 11.0.1-master/package.mo): time 2.857/2.857, allocations: 462.7 MB / 0.7364 GB, free: 300 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0004621/0.0004621, allocations: 14.36 kB / 0.9028 GB, free: 36.67 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3479/0.3484, allocations: 159.6 MB / 1.059 GB, free: 5.496 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.0233/0.3717, allocations: 22.52 MB / 1.081 GB, free: 14.89 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.007651/0.3794, allocations: 5.054 MB / 1.086 GB, free: 9.82 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008323/0.3803, allocations: 27.75 kB / 1.086 GB, free: 9.793 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0007405/0.381, allocations: 222.7 kB / 1.086 GB, free: 9.574 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.002028/0.3831, allocations: 0.7349 MB / 1.087 GB, free: 8.836 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001824/0.3849, allocations: 0.6885 MB / 1.087 GB, free: 8.152 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.002422/0.3873, allocations: 2.163 MB / 1.089 GB, free: 5.98 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006621/0.388, allocations: 408.9 kB / 1.09 GB, free: 5.586 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009945/0.389, allocations: 0.5211 MB / 1.09 GB, free: 5.062 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006212/0.3897, allocations: 446 kB / 1.091 GB, free: 4.625 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 5.373e-05/0.3897, allocations: 20 kB / 1.091 GB, free: 4.605 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001122/0.3909, allocations: 458.9 kB / 1.091 GB, free: 4.156 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001321/0.391, allocations: 115.5 kB / 1.091 GB, free: 4.043 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002958/0.3913, allocations: 300.2 kB / 1.092 GB, free: 3.742 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001076/0.3924, allocations: 0.8839 MB / 1.092 GB, free: 2.855 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/0.3924, allocations: 0 / 1.092 GB, free: 2.855 MB / 0.8419 GB Notification: Performance of FrontEnd: time 3.697e-06/0.3924, allocations: 3.984 kB / 1.092 GB, free: 2.852 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 9.168e-06/0.3924, allocations: 0 / 1.092 GB, free: 2.852 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.001254/0.3937, allocations: 0.7792 MB / 1.093 GB, free: 2.023 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.7e-05/0.3937, allocations: 8.031 kB / 1.093 GB, free: 2.016 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001989/0.3939, allocations: 68.19 kB / 1.093 GB, free: 1.949 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009345/0.3949, allocations: 0.5688 MB / 1.094 GB, free: 1.344 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.006e-05/0.3949, allocations: 32.94 kB / 1.094 GB, free: 1.312 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.707e-05/0.395, allocations: 40 kB / 1.094 GB, free: 1.273 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006644/0.3957, allocations: 432.7 kB / 1.094 GB, free: 0.8281 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.784e-05/0.3957, allocations: 3.938 kB / 1.094 GB, free: 0.8242 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.972e-05/0.3958, allocations: 16 kB / 1.094 GB, free: 0.8086 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.351e-05/0.3958, allocations: 15.98 kB / 1.094 GB, free: 0.793 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004764/0.3963, allocations: 303.8 kB / 1.095 GB, free: 0.4961 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.002589/0.3989, allocations: 1.931 MB / 1.096 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004868/0.3994, allocations: 256.8 kB / 1.097 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001769/0.3996, allocations: 120.8 kB / 1.097 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007965/0.4004, allocations: 0.8624 MB / 1.098 GB, free: 13.01 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.05e-05/0.4004, allocations: 34.56 kB / 1.098 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=26): time 2.024e-06/0.4004, allocations: 0 / 1.098 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of matching and sorting (n=26): time 0.0007017/0.4011, allocations: 377.7 kB / 1.098 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.5e-05/0.4012, allocations: 63.28 kB / 1.098 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005353/0.4017, allocations: 474 kB / 1.099 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.166e-05/0.4018, allocations: 29.7 kB / 1.099 GB, free: 12.01 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001949/0.402, allocations: 260 kB / 1.099 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 8.382e-05/0.402, allocations: 98.58 kB / 1.099 GB, free: 11.65 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.626e-05/0.4021, allocations: 37.7 kB / 1.099 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001439/0.4023, allocations: 354.8 kB / 1.099 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001625/0.4024, allocations: 100.6 kB / 1.099 GB, free: 11.16 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002304/0.4027, allocations: 168 kB / 1.1 GB, free: 10.97 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003762/0.4031, allocations: 283.2 kB / 1.1 GB, free: 10.67 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.4031, allocations: 0 / 1.1 GB, free: 10.67 MB / 0.8575 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005282/0.4036, allocations: 369 kB / 1.1 GB, free: 10.3 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.088e-05/0.4036, allocations: 8 kB / 1.1 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.4036, allocations: 0 / 1.1 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.267e-05/0.4037, allocations: 4 kB / 1.1 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002589/0.4039, allocations: 75.78 kB / 1.1 GB, free: 10.21 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.148e-05/0.404, allocations: 11.97 kB / 1.1 GB, free: 10.2 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003032/0.4043, allocations: 43.59 kB / 1.1 GB, free: 10.16 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.477e-05/0.4043, allocations: 20.02 kB / 1.1 GB, free: 10.14 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.0002023/0.4045, allocations: 181.7 kB / 1.101 GB, free: 9.953 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.508e-05/0.4046, allocations: 47.44 kB / 1.101 GB, free: 9.906 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007647/0.4054, allocations: 469 kB / 1.101 GB, free: 9.438 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.406e-05/0.4054, allocations: 11.92 kB / 1.101 GB, free: 9.426 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/0.4054, allocations: 4 kB / 1.101 GB, free: 9.422 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005314/0.4059, allocations: 0.5663 MB / 1.102 GB, free: 8.789 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001701/0.4077, allocations: 1.164 MB / 1.103 GB, free: 7.531 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/0.4077, allocations: 4 kB / 1.103 GB, free: 7.527 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002112/0.4079, allocations: 47.86 kB / 1.103 GB, free: 7.48 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.823e-06/0.4079, allocations: 4 kB / 1.103 GB, free: 7.477 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.512e-05/0.4079, allocations: 11.98 kB / 1.103 GB, free: 7.465 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.933e-06/0.4079, allocations: 4 kB / 1.103 GB, free: 7.461 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.408, allocations: 4 kB / 1.103 GB, free: 7.457 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000799/0.4088, allocations: 0.6686 MB / 1.103 GB, free: 6.754 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001959/0.409, allocations: 180.3 kB / 1.104 GB, free: 6.559 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.607e-05/0.409, allocations: 8 kB / 1.104 GB, free: 6.551 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002941/0.4093, allocations: 27.83 kB / 1.104 GB, free: 6.523 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.279e-05/0.4094, allocations: 19.97 kB / 1.104 GB, free: 6.504 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.937e-05/0.4094, allocations: 15.94 kB / 1.104 GB, free: 6.488 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0003719/0.4098, allocations: 346.8 kB / 1.104 GB, free: 6.152 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.673e-06/0.4098, allocations: 0 / 1.104 GB, free: 6.152 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0006217/0.4104, allocations: 191.7 kB / 1.104 GB, free: 5.965 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.000612/0.4111, allocations: 290.9 kB / 1.104 GB, free: 5.68 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004732/0.4115, allocations: 288.3 kB / 1.105 GB, free: 5.398 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 8.065e-06/0.4116, allocations: 12.06 kB / 1.105 GB, free: 5.387 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002203/0.4118, allocations: 163.7 kB / 1.105 GB, free: 5.227 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001687/0.4135, allocations: 312.1 kB / 1.105 GB, free: 4.93 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001725/0.4152, allocations: 1.322 MB / 1.107 GB, free: 3.559 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003893/0.4156, allocations: 0.8708 MB / 1.107 GB, free: 2.656 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0004251/0.4161, allocations: 116.7 kB / 1.107 GB, free: 2.539 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001146/0.4162, allocations: 51.42 kB / 1.108 GB, free: 2.492 MB / 0.8575 GB Notification: Performance of SimCode: time 2.074e-06/0.4162, allocations: 0 / 1.108 GB, free: 2.492 MB / 0.8575 GB Notification: Performance of Templates: time 0.02143/0.4376, allocations: 11.5 MB / 1.119 GB, free: 7.145 MB / 0.8731 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