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: "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.HeatMeter,fileNamePrefix="Buildings_10_Buildings_Fluid_Sensors_Examples_HeatMeter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.HeatMeter,fileNamePrefix="Buildings_10_Buildings_Fluid_Sensors_Examples_HeatMeter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001469/0.001469, 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.002283/0.002283, allocations: 192 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.454/1.454, allocations: 222.9 MB / 240.2 MB, free: 4.418 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.609/2.609, allocations: 437.1 MB / 0.7104 GB, free: 5.02 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001421/0.001421, allocations: 71.84 kB / 0.8693 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7089/0.7103, allocations: 151.6 MB / 1.017 GB, free: 2.438 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02253/0.7329, allocations: 23.24 MB / 1.04 GB, free: 11.11 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.007602/0.7405, allocations: 5.097 MB / 1.045 GB, free: 6 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007463/0.7413, allocations: 23.88 kB / 1.045 GB, free: 5.977 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0007606/0.7421, allocations: 282 kB / 1.045 GB, free: 5.699 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.001917/0.744, allocations: 0.785 MB / 1.046 GB, free: 4.91 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.00184/0.7459, allocations: 0.7503 MB / 1.047 GB, free: 4.164 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.001839/0.7477, allocations: 1.612 MB / 1.048 GB, free: 2.547 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006048/0.7483, allocations: 485.5 kB / 1.049 GB, free: 2.066 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001244/0.7496, allocations: 0.6109 MB / 1.05 GB, free: 1.453 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005164/0.7501, allocations: 450.1 kB / 1.05 GB, free: 1.012 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 7.813e-05/0.7502, allocations: 44 kB / 1.05 GB, free: 0.9688 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001065/0.7513, allocations: 491 kB / 1.05 GB, free: 500 kB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001437/0.7514, allocations: 139.5 kB / 1.051 GB, free: 360 kB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.000281/0.7517, allocations: 310.5 kB / 1.051 GB, free: 48 kB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.001116/0.7529, allocations: 0.9037 MB / 1.052 GB, free: 15.14 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.7529, allocations: 0 / 1.052 GB, free: 15.14 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.925e-06/0.7529, allocations: 0 / 1.052 GB, free: 15.14 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.826e-06/0.7529, allocations: 7.938 kB / 1.052 GB, free: 15.13 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.001273/0.7542, allocations: 0.8882 MB / 1.053 GB, free: 14.2 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.7542, allocations: 12.03 kB / 1.053 GB, free: 14.18 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.038e-05/0.7543, allocations: 74.72 kB / 1.053 GB, free: 14.1 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000209/0.7545, allocations: 76.2 kB / 1.053 GB, free: 14.03 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008509/0.7554, allocations: 0.5374 MB / 1.053 GB, free: 13.45 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.794e-05/0.7554, allocations: 33 kB / 1.053 GB, free: 13.42 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.548e-05/0.7555, allocations: 39.91 kB / 1.053 GB, free: 13.38 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006581/0.7562, allocations: 436.7 kB / 1.054 GB, free: 12.93 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.631e-05/0.7562, allocations: 3.984 kB / 1.054 GB, free: 12.93 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.889e-05/0.7562, allocations: 16 kB / 1.054 GB, free: 12.91 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.224e-05/0.7563, allocations: 16 kB / 1.054 GB, free: 12.89 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004787/0.7568, allocations: 299.8 kB / 1.054 GB, free: 12.61 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.002444/0.7592, allocations: 1.935 MB / 1.056 GB, free: 10.54 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005023/0.7597, allocations: 256.9 kB / 1.056 GB, free: 10.28 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001733/0.7599, allocations: 120.8 kB / 1.056 GB, free: 10.16 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007578/0.7607, allocations: 0.8545 MB / 1.057 GB, free: 9.117 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.581e-05/0.7607, allocations: 34.56 kB / 1.057 GB, free: 9.074 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=26): time 1.613e-06/0.7607, allocations: 3.938 kB / 1.057 GB, free: 9.07 MB / 0.8106 GB Notification: Performance of matching and sorting (n=26): time 0.0006491/0.7614, allocations: 368.6 kB / 1.058 GB, free: 8.707 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.982e-05/0.7614, allocations: 51.41 kB / 1.058 GB, free: 8.645 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005032/0.7619, allocations: 478.1 kB / 1.058 GB, free: 8.168 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.04e-05/0.762, allocations: 29.7 kB / 1.058 GB, free: 8.133 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.000174/0.7621, allocations: 264 kB / 1.058 GB, free: 7.871 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 7.289e-05/0.7622, allocations: 98.66 kB / 1.058 GB, free: 7.773 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001042/0.7623, allocations: 77.92 kB / 1.059 GB, free: 7.691 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000124/0.7625, allocations: 354.8 kB / 1.059 GB, free: 7.336 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001583/0.7626, allocations: 100.6 kB / 1.059 GB, free: 7.238 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002196/0.7629, allocations: 168.1 kB / 1.059 GB, free: 7.051 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003771/0.7632, allocations: 278.7 kB / 1.059 GB, free: 6.754 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.7633, allocations: 0 / 1.059 GB, free: 6.754 MB / 0.8106 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005557/0.7638, allocations: 364.8 kB / 1.06 GB, free: 6.391 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.7638, allocations: 8 kB / 1.06 GB, free: 6.383 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.7638, allocations: 0 / 1.06 GB, free: 6.383 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.802e-05/0.7639, allocations: 7.938 kB / 1.06 GB, free: 6.375 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002731/0.7641, allocations: 75.83 kB / 1.06 GB, free: 6.301 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.696e-06/0.7642, allocations: 8.219 kB / 1.06 GB, free: 6.293 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002547/0.7644, allocations: 39.53 kB / 1.06 GB, free: 6.254 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.474e-05/0.7645, allocations: 19.98 kB / 1.06 GB, free: 6.234 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.0001822/0.7647, allocations: 173.8 kB / 1.06 GB, free: 6.055 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.21e-05/0.7648, allocations: 47.44 kB / 1.06 GB, free: 6.008 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007597/0.7655, allocations: 469 kB / 1.061 GB, free: 5.539 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.519e-05/0.7655, allocations: 19.95 kB / 1.061 GB, free: 5.52 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.7656, allocations: 7.938 kB / 1.061 GB, free: 5.512 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005321/0.7661, allocations: 0.5723 MB / 1.061 GB, free: 4.871 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001687/0.7678, allocations: 1.152 MB / 1.062 GB, free: 3.625 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.7678, allocations: 8.188 kB / 1.062 GB, free: 3.617 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002278/0.768, allocations: 47.91 kB / 1.062 GB, free: 3.57 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.438e-06/0.7681, allocations: 4 kB / 1.062 GB, free: 3.566 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.258e-05/0.7681, allocations: 8 kB / 1.062 GB, free: 3.559 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.7681, allocations: 4 kB / 1.062 GB, free: 3.555 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.7681, allocations: 4 kB / 1.062 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008183/0.7689, allocations: 0.6684 MB / 1.063 GB, free: 2.848 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001863/0.7691, allocations: 172.4 kB / 1.063 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.102e-05/0.7692, allocations: 7.984 kB / 1.063 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002757/0.7695, allocations: 12 kB / 1.063 GB, free: 2.641 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.34e-05/0.7695, allocations: 31.91 kB / 1.063 GB, free: 2.609 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.101e-05/0.7696, allocations: 11.98 kB / 1.063 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003912/0.77, allocations: 346.9 kB / 1.064 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.8e-07/0.77, allocations: 0 / 1.064 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000627/0.7706, allocations: 191.8 kB / 1.064 GB, free: 2.074 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.001542/0.7722, allocations: 1.415 MB / 1.065 GB, free: 0.6211 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0005519/0.7727, allocations: 311.4 kB / 1.065 GB, free: 324 kB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.7727, allocations: 0 / 1.065 GB, free: 324 kB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002279/0.773, allocations: 160.6 kB / 1.066 GB, free: 164 kB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001621/0.7746, allocations: 342.3 kB / 1.066 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005198/0.7798, allocations: 4.291 MB / 1.07 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004238/0.7803, allocations: 0.8666 MB / 1.071 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.000448/0.7807, allocations: 120.7 kB / 1.071 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002367/0.781, allocations: 191.4 kB / 1.071 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of SimCode: time 5.81e-07/0.781, allocations: 0 / 1.071 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05619/0.8372, allocations: 16.86 MB / 1.088 GB, free: 9.59 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.03/8.867, allocations: 4 kB / 1.088 GB, free: 9.586 MB / 0.8419 GB (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 & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.024 Buildings_10_Buildings_Fluid_Sensors_Examples_HeatMeter.fmu > Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Sensors_Examples_HeatMeter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Sensors.Examples.HeatMeter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches