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.001448/0.001448, allocations: 103.6 kB / 18.95 MB, free: 2.66 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.001622/0.001622, allocations: 222.1 kB / 22.25 MB, free: 5.254 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.335/1.335, allocations: 230.6 MB / 256 MB, free: 7.785 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 2.899/2.899, allocations: 0.49 GB / 0.7951 GB, free: 35.41 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.001856/0.001856, allocations: 73 kB / 1.154 GB, free: 25.43 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2906/0.2924, allocations: 176.1 MB / 1.326 GB, free: 1.441 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02312/0.3155, allocations: 21.65 MB / 1.347 GB, free: 11.71 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.006966/0.3225, allocations: 4.746 MB / 1.352 GB, free: 6.961 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005107/0.323, allocations: 35.69 kB / 1.352 GB, free: 6.926 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0006978/0.3237, allocations: 282.1 kB / 1.352 GB, free: 6.648 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.001741/0.3255, allocations: 0.8363 MB / 1.353 GB, free: 5.809 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.001632/0.3271, allocations: 0.7901 MB / 1.354 GB, free: 5.023 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.001881/0.329, allocations: 1.654 MB / 1.355 GB, free: 3.367 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005842/0.3296, allocations: 398 kB / 1.356 GB, free: 2.969 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001679/0.3312, allocations: 0.7355 MB / 1.356 GB, free: 2.23 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006956/0.3319, allocations: 473.9 kB / 1.357 GB, free: 1.766 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 6.755e-05/0.332, allocations: 44 kB / 1.357 GB, free: 1.723 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008641/0.3329, allocations: 419.2 kB / 1.357 GB, free: 1.312 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0001548/0.333, allocations: 143.4 kB / 1.357 GB, free: 1.172 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0002743/0.3333, allocations: 266.8 kB / 1.358 GB, free: 0.9102 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.001202/0.3345, allocations: 0.9342 MB / 1.358 GB, free: 15.97 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.3345, allocations: 0 / 1.358 GB, free: 15.97 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.262e-06/0.3345, allocations: 4 kB / 1.358 GB, free: 15.97 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.007e-05/0.3345, allocations: 0 / 1.358 GB, free: 15.97 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.001365/0.3359, allocations: 0.8314 MB / 1.359 GB, free: 15.1 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.831e-05/0.3359, allocations: 12.03 kB / 1.359 GB, free: 15.09 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.755e-05/0.336, allocations: 74.72 kB / 1.359 GB, free: 15.01 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002041/0.3362, allocations: 72.55 kB / 1.359 GB, free: 14.94 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009936/0.3372, allocations: 0.5113 MB / 1.36 GB, free: 14.4 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.363e-05/0.3372, allocations: 29 kB / 1.36 GB, free: 14.37 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.668e-05/0.3373, allocations: 40 kB / 1.36 GB, free: 14.33 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007237/0.338, allocations: 0.5056 MB / 1.36 GB, free: 13.79 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.777e-05/0.338, allocations: 0 / 1.36 GB, free: 13.79 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.978e-05/0.3381, allocations: 16 kB / 1.36 GB, free: 13.77 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.785e-05/0.3381, allocations: 12 kB / 1.36 GB, free: 13.76 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004884/0.3386, allocations: 299.8 kB / 1.361 GB, free: 13.47 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.002452/0.341, allocations: 1.532 MB / 1.362 GB, free: 11.88 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004819/0.3415, allocations: 238.8 kB / 1.363 GB, free: 11.64 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001778/0.3417, allocations: 118.1 kB / 1.363 GB, free: 11.52 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004731/0.3422, allocations: 99.89 kB / 1.363 GB, free: 11.42 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.365e-05/0.3422, allocations: 38.5 kB / 1.363 GB, free: 11.38 MB / 1.061 GB Notification: Performance of pre-optimization done (n=26): time 1.533e-06/0.3422, allocations: 4 kB / 1.363 GB, free: 11.37 MB / 1.061 GB Notification: Performance of matching and sorting (n=26): time 0.0006606/0.3429, allocations: 379.5 kB / 1.363 GB, free: 11 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.81e-05/0.3429, allocations: 51.41 kB / 1.363 GB, free: 10.93 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005283/0.3434, allocations: 482 kB / 1.364 GB, free: 10.45 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.531e-05/0.3435, allocations: 33.7 kB / 1.364 GB, free: 10.41 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002059/0.3437, allocations: 260.4 kB / 1.364 GB, free: 10.16 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 8.156e-05/0.3438, allocations: 99.23 kB / 1.364 GB, free: 10.06 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001073/0.3439, allocations: 73.97 kB / 1.364 GB, free: 9.98 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001559/0.344, allocations: 358.8 kB / 1.364 GB, free: 9.621 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001578/0.3442, allocations: 96.55 kB / 1.365 GB, free: 9.527 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002609/0.3444, allocations: 257.1 kB / 1.365 GB, free: 9.234 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003892/0.3448, allocations: 278.7 kB / 1.365 GB, free: 8.938 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3448, allocations: 0 / 1.365 GB, free: 8.938 MB / 1.061 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000566/0.3454, allocations: 373.1 kB / 1.365 GB, free: 8.566 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.3454, allocations: 9.562 kB / 1.365 GB, free: 8.559 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.3454, allocations: 3.938 kB / 1.365 GB, free: 8.555 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.3454, allocations: 7.938 kB / 1.365 GB, free: 8.547 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002665/0.3457, allocations: 75.89 kB / 1.365 GB, free: 8.473 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/0.3457, allocations: 7.938 kB / 1.365 GB, free: 8.465 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00025/0.346, allocations: 39.67 kB / 1.366 GB, free: 8.426 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.728e-05/0.346, allocations: 19.98 kB / 1.366 GB, free: 8.406 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.0001855/0.3462, allocations: 178.6 kB / 1.366 GB, free: 8.223 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.173e-05/0.3463, allocations: 47.72 kB / 1.366 GB, free: 8.176 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007852/0.3471, allocations: 481.5 kB / 1.366 GB, free: 7.699 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.432e-05/0.3471, allocations: 3.938 kB / 1.366 GB, free: 7.695 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.3471, allocations: 11.98 kB / 1.366 GB, free: 7.684 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006141/0.3477, allocations: 0.5686 MB / 1.367 GB, free: 7.047 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001704/0.3494, allocations: 1.013 MB / 1.368 GB, free: 5.965 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.3494, allocations: 0 / 1.368 GB, free: 5.965 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002229/0.3496, allocations: 52.09 kB / 1.368 GB, free: 5.914 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-06/0.3496, allocations: 8 kB / 1.368 GB, free: 5.906 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.334e-05/0.3496, allocations: 8 kB / 1.368 GB, free: 5.898 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.973e-06/0.3497, allocations: 7.938 kB / 1.368 GB, free: 5.891 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.3497, allocations: 0 / 1.368 GB, free: 5.891 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008697/0.3505, allocations: 0.6871 MB / 1.369 GB, free: 5.168 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002009/0.3507, allocations: 103.5 kB / 1.369 GB, free: 5.066 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.669e-05/0.3508, allocations: 8 kB / 1.369 GB, free: 5.059 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002786/0.3511, allocations: 19.92 kB / 1.369 GB, free: 5.039 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.94e-05/0.3511, allocations: 23.91 kB / 1.369 GB, free: 5.016 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.253e-05/0.3511, allocations: 19.98 kB / 1.369 GB, free: 4.996 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0004151/0.3516, allocations: 358.8 kB / 1.369 GB, free: 4.648 MB / 1.061 GB Notification: Performance of sort global known variables: time 1e-07/0.3516, allocations: 0 / 1.369 GB, free: 4.648 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.000595/0.3522, allocations: 199.6 kB / 1.369 GB, free: 4.453 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.001472/0.3536, allocations: 1.386 MB / 1.371 GB, free: 3.023 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004798/0.3541, allocations: 283.8 kB / 1.371 GB, free: 2.746 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.3541, allocations: 0 / 1.371 GB, free: 2.746 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002248/0.3543, allocations: 159.7 kB / 1.371 GB, free: 2.59 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001453/0.3558, allocations: 340.7 kB / 1.371 GB, free: 2.266 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005189/0.361, allocations: 4.235 MB / 1.375 GB, free: 13.86 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002492/0.3612, allocations: 262.4 kB / 1.376 GB, free: 13.57 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0003428/0.3616, allocations: 120.7 kB / 1.376 GB, free: 13.45 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002534/0.3618, allocations: 195.4 kB / 1.376 GB, free: 13.27 MB / 1.076 GB Notification: Performance of SimCode: time 7.11e-07/0.3618, allocations: 0 / 1.376 GB, free: 13.27 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04772/0.4095, allocations: 18.91 MB / 1.394 GB, free: 10.78 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.6/11.01, allocations: 5.938 kB / 1.394 GB, free: 10.77 MB / 1.092 GB " [Timeout remaining time 289] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Fluid.Sensors.Examples.HeatMeter_res.mat --tempDir=temp_Buildings_12_Buildings_Fluid_Sensors_Examples_HeatMeter_fmu --startTime=0 --stopTime=60 --stepSize=0.024 --timeout=400 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 16.994633616995998]