Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.Sensors.Examples.HeatMeter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001479/0.001479, allocations: 108.5 kB / 16.45 MB, free: 6.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001742/0.001742, allocations: 216.2 kB / 19.43 MB, free: 3.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.405/1.405, allocations: 230.6 MB / 252.8 MB, free: 8.965 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.016/3.016, allocations: 0.49 GB / 0.7916 GB, free: 33.31 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.HeatMeter,fileNamePrefix="Buildings_12_Buildings_Fluid_Sensors_Examples_HeatMeter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.HeatMeter,fileNamePrefix="Buildings_12_Buildings_Fluid_Sensors_Examples_HeatMeter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001944/0.001944, allocations: 74.45 kB / 1.149 GB, free: 26.37 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3332/0.3351, allocations: 176.1 MB / 1.321 GB, free: 3.32 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02735/0.3625, allocations: 23.59 MB / 1.344 GB, free: 11.64 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.007877/0.3704, allocations: 5.104 MB / 1.349 GB, free: 6.523 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001128/0.3715, allocations: 35.69 kB / 1.349 GB, free: 6.488 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0009979/0.3725, allocations: 290 kB / 1.349 GB, free: 6.203 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0025/0.375, allocations: 0.8241 MB / 1.35 GB, free: 5.375 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.001979/0.377, allocations: 0.7594 MB / 1.351 GB, free: 4.621 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.002296/0.3793, allocations: 1.617 MB / 1.352 GB, free: 2.996 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007121/0.38, allocations: 417.5 kB / 1.353 GB, free: 2.582 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001775/0.3817, allocations: 0.7306 MB / 1.353 GB, free: 1.852 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006428/0.3824, allocations: 470 kB / 1.354 GB, free: 1.391 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 7.242e-05/0.3825, allocations: 48 kB / 1.354 GB, free: 1.344 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001121/0.3836, allocations: 0.503 MB / 1.354 GB, free: 0.8398 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0001538/0.3837, allocations: 147.4 kB / 1.355 GB, free: 0.6953 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0003384/0.3841, allocations: 314.5 kB / 1.355 GB, free: 396 kB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.001423/0.3855, allocations: 0.946 MB / 1.356 GB, free: 15.43 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.3855, allocations: 0 / 1.356 GB, free: 15.43 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.763e-06/0.3855, allocations: 4 kB / 1.356 GB, free: 15.43 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.431e-05/0.3855, allocations: 0 / 1.356 GB, free: 15.43 MB / 1.061 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.001433/0.3869, allocations: 0.9145 MB / 1.357 GB, free: 14.47 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.387, allocations: 11.98 kB / 1.357 GB, free: 14.46 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.052e-05/0.3871, allocations: 78.72 kB / 1.357 GB, free: 14.37 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002117/0.3873, allocations: 68.56 kB / 1.357 GB, free: 14.3 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009934/0.3883, allocations: 0.5885 MB / 1.357 GB, free: 13.68 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.907e-05/0.3883, allocations: 29 kB / 1.357 GB, free: 13.65 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.206e-05/0.3884, allocations: 36 kB / 1.357 GB, free: 13.61 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007005/0.3891, allocations: 440.7 kB / 1.358 GB, free: 13.16 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.507e-05/0.3891, allocations: 7.875 kB / 1.358 GB, free: 13.15 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.071e-05/0.3891, allocations: 16 kB / 1.358 GB, free: 13.14 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.258e-05/0.3892, allocations: 12 kB / 1.358 GB, free: 13.12 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005152/0.3897, allocations: 303.8 kB / 1.358 GB, free: 12.83 MB / 1.061 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.002709/0.3924, allocations: 1.923 MB / 1.36 GB, free: 10.77 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005089/0.3929, allocations: 241.2 kB / 1.36 GB, free: 10.53 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001829/0.3931, allocations: 108.8 kB / 1.36 GB, free: 10.42 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008867/0.394, allocations: 0.8584 MB / 1.361 GB, free: 9.379 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.892e-05/0.394, allocations: 34.56 kB / 1.361 GB, free: 9.336 MB / 1.061 GB Notification: Performance of pre-optimization done (n=26): time 1.633e-06/0.394, allocations: 4 kB / 1.361 GB, free: 9.332 MB / 1.061 GB Notification: Performance of matching and sorting (n=26): time 0.0007299/0.3947, allocations: 372.8 kB / 1.362 GB, free: 8.965 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.001e-05/0.3948, allocations: 55.41 kB / 1.362 GB, free: 8.898 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005703/0.3953, allocations: 478.1 kB / 1.362 GB, free: 8.422 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.407e-05/0.3954, allocations: 33.7 kB / 1.362 GB, free: 8.383 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002127/0.3956, allocations: 264.3 kB / 1.362 GB, free: 8.121 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 8.567e-05/0.3957, allocations: 91.17 kB / 1.362 GB, free: 8.031 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001129/0.3958, allocations: 74.02 kB / 1.363 GB, free: 7.953 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001827/0.396, allocations: 358.8 kB / 1.363 GB, free: 7.594 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001701/0.3961, allocations: 92.61 kB / 1.363 GB, free: 7.504 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002447/0.3964, allocations: 180 kB / 1.363 GB, free: 7.305 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004178/0.3968, allocations: 283.2 kB / 1.363 GB, free: 7.004 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.3968, allocations: 0 / 1.363 GB, free: 7.004 MB / 1.061 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006117/0.3974, allocations: 365.1 kB / 1.364 GB, free: 6.641 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.547e-05/0.3974, allocations: 4 kB / 1.364 GB, free: 6.637 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.3974, allocations: 4.219 kB / 1.364 GB, free: 6.633 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.7e-05/0.3974, allocations: 7.938 kB / 1.364 GB, free: 6.625 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002677/0.3977, allocations: 71.91 kB / 1.364 GB, free: 6.555 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/0.3977, allocations: 7.922 kB / 1.364 GB, free: 6.547 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002534/0.398, allocations: 39.67 kB / 1.364 GB, free: 6.508 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.593e-05/0.398, allocations: 16 kB / 1.364 GB, free: 6.492 MB / 1.061 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.0002067/0.3982, allocations: 177.8 kB / 1.364 GB, free: 6.309 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000107/0.3983, allocations: 51.67 kB / 1.364 GB, free: 6.258 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008334/0.3992, allocations: 477 kB / 1.365 GB, free: 5.785 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.482e-05/0.3992, allocations: 15.88 kB / 1.365 GB, free: 5.77 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.3992, allocations: 4 kB / 1.365 GB, free: 5.766 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006287/0.3998, allocations: 0.5725 MB / 1.365 GB, free: 5.125 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0018/0.4016, allocations: 1.153 MB / 1.366 GB, free: 3.879 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.4016, allocations: 8.188 kB / 1.366 GB, free: 3.871 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002209/0.4018, allocations: 43.98 kB / 1.366 GB, free: 3.828 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/0.4018, allocations: 0 / 1.366 GB, free: 3.828 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.617e-05/0.4019, allocations: 15.98 kB / 1.366 GB, free: 3.812 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.7e-06/0.4019, allocations: 3.938 kB / 1.366 GB, free: 3.809 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.4019, allocations: 4 kB / 1.366 GB, free: 3.805 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009213/0.4028, allocations: 0.6832 MB / 1.367 GB, free: 3.086 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002094/0.403, allocations: 168.7 kB / 1.367 GB, free: 2.902 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.321e-05/0.4031, allocations: 8 kB / 1.367 GB, free: 2.895 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002649/0.4033, allocations: 11.98 kB / 1.367 GB, free: 2.883 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.363e-05/0.4034, allocations: 31.91 kB / 1.367 GB, free: 2.852 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.163e-05/0.4034, allocations: 12 kB / 1.367 GB, free: 2.84 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0004244/0.4038, allocations: 346.8 kB / 1.368 GB, free: 2.504 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.4038, allocations: 0 / 1.368 GB, free: 2.504 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0006268/0.4045, allocations: 203.5 kB / 1.368 GB, free: 2.305 MB / 1.061 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.00157/0.406, allocations: 1.385 MB / 1.369 GB, free: 0.875 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004936/0.4065, allocations: 283.5 kB / 1.369 GB, free: 0.5977 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.4065, allocations: 0 / 1.369 GB, free: 0.5977 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002353/0.4068, allocations: 155.7 kB / 1.37 GB, free: 456 kB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001505/0.4083, allocations: 342.9 kB / 1.37 GB, free: 124 kB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005626/0.4139, allocations: 4.219 MB / 1.374 GB, free: 11.73 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005457/0.4144, allocations: 0.8627 MB / 1.375 GB, free: 10.84 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0003538/0.4148, allocations: 112.7 kB / 1.375 GB, free: 10.72 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002761/0.4151, allocations: 195.4 kB / 1.375 GB, free: 10.54 MB / 1.076 GB Notification: Performance of SimCode: time 7.81e-07/0.4151, allocations: 4 kB / 1.375 GB, free: 10.53 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05048/0.4656, allocations: 16.98 MB / 1.392 GB, free: 9.805 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.63/9.096, allocations: 14.84 kB / 1.392 GB, free: 9.797 MB / 1.092 GB " [Timeout remaining time 291] (rm -f Buildings_12_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; mkfifo Buildings_12_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe >> ../files/Buildings_12_Buildings.Fluid.Sensors.Examples.HeatMeter.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Fluid.Sensors.Examples.HeatMeter_res.csv --start-time 0 --stop-time 60 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.024 Buildings_12_Buildings_Fluid_Sensors_Examples_HeatMeter.fmu > Buildings_12_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.Sensors.Examples.HeatMeter_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Sensors_Examples_HeatMeter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.Sensors.Examples.HeatMeter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable senHeaFlo.Q_flow in file Buildings_12_Buildings.Fluid.Sensors.Examples.HeatMeter_res.csv. Warning: Get data of variable senHeaFlo.Q_flow from file Buildings_12_Buildings.Fluid.Sensors.Examples.HeatMeter_res.csv failed! Error: Could not read variable heaFloRat.Q_flow in file Buildings_12_Buildings.Fluid.Sensors.Examples.HeatMeter_res.csv. Warning: Get data of variable heaFloRat.Q_flow from file Buildings_12_Buildings.Fluid.Sensors.Examples.HeatMeter_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.384371119784191]