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: "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.HeatMeter,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sensors_Examples_HeatMeter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.HeatMeter,fileNamePrefix="Buildings_latest_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.001536/0.001536, allocations: 108 kB / 15.61 MB, free: 148 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.001704/0.001704, allocations: 192.8 kB / 16.53 MB, free: 6.691 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.466/1.466, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.722/2.722, allocations: 469.4 MB / 0.742 GB, free: 7.719 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001429/0.001429, allocations: 65.31 kB / 0.9083 GB, free: 34.49 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3171/0.3186, allocations: 159.1 MB / 1.064 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02659/0.3452, allocations: 23.23 MB / 1.086 GB, free: 7.207 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.00882/0.354, allocations: 5.092 MB / 1.091 GB, free: 2.105 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00112/0.3552, allocations: 23.88 kB / 1.091 GB, free: 2.082 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001118/0.3564, allocations: 286 kB / 1.092 GB, free: 1.801 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.002336/0.3588, allocations: 0.7889 MB / 1.092 GB, free: 1.008 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.002154/0.3609, allocations: 0.7492 MB / 1.093 GB, free: 268 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.00211/0.363, allocations: 1.609 MB / 1.095 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008277/0.3639, allocations: 493.4 kB / 1.095 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001607/0.3655, allocations: 0.6107 MB / 1.096 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007684/0.3663, allocations: 446 kB / 1.096 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001256/0.3664, allocations: 51.94 kB / 1.096 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001154/0.3676, allocations: 495.1 kB / 1.097 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001818/0.3678, allocations: 143.5 kB / 1.097 GB, free: 12.44 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0003754/0.3682, allocations: 306.5 kB / 1.097 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001469/0.3696, allocations: 0.9114 MB / 1.098 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.3697, allocations: 0 / 1.098 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.443e-06/0.3697, allocations: 0 / 1.098 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 2.224e-05/0.3697, allocations: 0 / 1.098 GB, free: 11.23 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.001563/0.3713, allocations: 0.8842 MB / 1.099 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/0.3713, allocations: 8.031 kB / 1.099 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001009/0.3714, allocations: 82.66 kB / 1.099 GB, free: 10.2 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002474/0.3717, allocations: 64.19 kB / 1.099 GB, free: 10.13 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001026/0.3727, allocations: 0.5491 MB / 1.1 GB, free: 9.547 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.159e-05/0.3728, allocations: 29 kB / 1.1 GB, free: 9.52 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.291e-05/0.3728, allocations: 36 kB / 1.1 GB, free: 9.484 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007017/0.3735, allocations: 444.7 kB / 1.1 GB, free: 9.027 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.721e-05/0.3736, allocations: 0 / 1.1 GB, free: 9.027 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.097e-05/0.3736, allocations: 16 kB / 1.1 GB, free: 9.012 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.636e-05/0.3736, allocations: 15.94 kB / 1.1 GB, free: 8.996 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005363/0.3742, allocations: 307.8 kB / 1.1 GB, free: 8.695 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.002681/0.3769, allocations: 1.915 MB / 1.102 GB, free: 6.648 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000499/0.3774, allocations: 266.8 kB / 1.103 GB, free: 6.379 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001841/0.3776, allocations: 124.8 kB / 1.103 GB, free: 6.254 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007923/0.3784, allocations: 0.8389 MB / 1.103 GB, free: 5.23 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.012e-05/0.3784, allocations: 38.56 kB / 1.103 GB, free: 5.184 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=26): time 1.654e-06/0.3784, allocations: 0 / 1.103 GB, free: 5.184 MB / 0.8575 GB Notification: Performance of matching and sorting (n=26): time 0.0007055/0.3791, allocations: 378.5 kB / 1.104 GB, free: 4.809 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.007e-05/0.3792, allocations: 59.34 kB / 1.104 GB, free: 4.738 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005431/0.3797, allocations: 481.9 kB / 1.104 GB, free: 4.254 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.888e-05/0.3798, allocations: 29.7 kB / 1.104 GB, free: 4.219 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001994/0.38, allocations: 260.1 kB / 1.105 GB, free: 3.961 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 8.227e-05/0.3801, allocations: 98.59 kB / 1.105 GB, free: 3.863 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001173/0.3802, allocations: 69.92 kB / 1.105 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001564/0.3804, allocations: 366.7 kB / 1.105 GB, free: 3.422 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001692/0.3806, allocations: 96.61 kB / 1.105 GB, free: 3.328 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000226/0.3808, allocations: 168 kB / 1.105 GB, free: 3.141 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004214/0.3812, allocations: 282.6 kB / 1.106 GB, free: 2.84 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.583e-06/0.3812, allocations: 8 kB / 1.106 GB, free: 2.832 MB / 0.8575 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005908/0.3818, allocations: 364.9 kB / 1.106 GB, free: 2.469 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/0.3819, allocations: 4 kB / 1.106 GB, free: 2.465 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.3819, allocations: 4 kB / 1.106 GB, free: 2.461 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.592e-05/0.3819, allocations: 7.938 kB / 1.106 GB, free: 2.453 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002709/0.3822, allocations: 71.91 kB / 1.106 GB, free: 2.383 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.399e-05/0.3822, allocations: 7.984 kB / 1.106 GB, free: 2.375 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000265/0.3825, allocations: 31.59 kB / 1.106 GB, free: 2.344 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.709e-05/0.3825, allocations: 16 kB / 1.106 GB, free: 2.328 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.0002041/0.3827, allocations: 186.1 kB / 1.106 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000101/0.3828, allocations: 51.44 kB / 1.106 GB, free: 2.086 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007653/0.3836, allocations: 469 kB / 1.107 GB, free: 1.621 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.358e-05/0.3836, allocations: 7.875 kB / 1.107 GB, free: 1.613 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.3836, allocations: 4 kB / 1.107 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005425/0.3842, allocations: 0.5624 MB / 1.107 GB, free: 0.9805 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00178/0.386, allocations: 1.156 MB / 1.109 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.612e-06/0.386, allocations: 3.984 kB / 1.109 GB, free: 15.72 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000232/0.3862, allocations: 51.92 kB / 1.109 GB, free: 15.67 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.153e-06/0.3862, allocations: 4 kB / 1.109 GB, free: 15.67 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.787e-05/0.3863, allocations: 15.92 kB / 1.109 GB, free: 15.65 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.919e-06/0.3863, allocations: 8.188 kB / 1.109 GB, free: 15.64 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.3863, allocations: 0 / 1.109 GB, free: 15.64 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008797/0.3872, allocations: 0.6599 MB / 1.109 GB, free: 14.95 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001998/0.3874, allocations: 180.3 kB / 1.109 GB, free: 14.75 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.946e-05/0.3875, allocations: 8 kB / 1.109 GB, free: 14.75 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002789/0.3878, allocations: 11.98 kB / 1.109 GB, free: 14.73 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.876e-05/0.3878, allocations: 27.91 kB / 1.109 GB, free: 14.71 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.542e-05/0.3879, allocations: 16 kB / 1.109 GB, free: 14.69 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0004344/0.3883, allocations: 346.8 kB / 1.11 GB, free: 14.36 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2e-07/0.3883, allocations: 4 kB / 1.11 GB, free: 14.35 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0006381/0.389, allocations: 199.8 kB / 1.11 GB, free: 14.16 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.001605/0.3906, allocations: 1.389 MB / 1.111 GB, free: 12.73 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0005596/0.3911, allocations: 312.5 kB / 1.112 GB, free: 12.43 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.3912, allocations: 0 / 1.112 GB, free: 12.43 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002339/0.3914, allocations: 168.6 kB / 1.112 GB, free: 12.27 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001557/0.393, allocations: 344.4 kB / 1.112 GB, free: 11.94 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00539/0.3984, allocations: 4.295 MB / 1.116 GB, free: 7.488 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004064/0.3988, allocations: 0.8666 MB / 1.117 GB, free: 6.594 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0003916/0.3992, allocations: 116.7 kB / 1.117 GB, free: 6.48 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002415/0.3994, allocations: 191.4 kB / 1.117 GB, free: 6.293 MB / 0.8731 GB Notification: Performance of SimCode: time 6.01e-07/0.3994, allocations: 4 kB / 1.117 GB, free: 6.289 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03959/0.439, allocations: 16.87 MB / 1.134 GB, free: 5.66 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.086/8.525, allocations: 12.69 kB / 1.134 GB, free: 5.652 MB / 0.8887 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Fluid_Sensors_Examples_HeatMeter.fmu > Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sensors_Examples_HeatMeter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches