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.001511/0.001511, allocations: 115.6 kB / 17.16 MB, free: 5.895 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.001784/0.001784, allocations: 215 kB / 20.13 MB, free: 2.949 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.434/1.434, allocations: 230.6 MB / 253.5 MB, free: 15.11 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.781/2.781, allocations: 0.49 GB / 0.7923 GB, free: 1.504 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.HeatMeter,fileNamePrefix="Buildings_12_Buildings_Fluid_Sensors_Examples_HeatMeter",fmuType="cs",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.001982/0.001982, allocations: 67.89 kB / 1.15 GB, free: 15.38 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9226/0.9246, allocations: 176.1 MB / 1.321 GB, free: 24.75 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02032/0.9449, allocations: 23.59 MB / 1.345 GB, free: 7.883 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.007468/0.9524, allocations: 5.099 MB / 1.35 GB, free: 4.262 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001177/0.9536, allocations: 36.97 kB / 1.35 GB, free: 4.242 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.000836/0.9544, allocations: 295.4 kB / 1.35 GB, free: 4.062 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.002038/0.9564, allocations: 0.826 MB / 1.351 GB, free: 3.574 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.001784/0.9582, allocations: 0.7658 MB / 1.351 GB, free: 3.172 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.001885/0.9601, allocations: 1.611 MB / 1.353 GB, free: 2.422 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006429/0.9608, allocations: 420.8 kB / 1.353 GB, free: 2.223 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001704/0.9625, allocations: 0.7313 MB / 1.354 GB, free: 1.887 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005774/0.963, allocations: 473.7 kB / 1.355 GB, free: 1.684 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 7.863e-05/0.9631, allocations: 46.47 kB / 1.355 GB, free: 1.684 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001178/0.9643, allocations: 0.5098 MB / 1.355 GB, free: 1.492 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001444/0.9644, allocations: 142.6 kB / 1.355 GB, free: 1.41 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0002854/0.9647, allocations: 311 kB / 1.355 GB, free: 1.23 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.001362/0.9661, allocations: 0.9496 MB / 1.356 GB, free: 0.8789 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.9661, allocations: 1.219 kB / 1.356 GB, free: 0.8789 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.583e-06/0.9661, allocations: 0.6562 kB / 1.356 GB, free: 0.8789 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.518e-05/0.9661, allocations: 0 / 1.356 GB, free: 0.8789 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.001222/0.9673, allocations: 0.9103 MB / 1.357 GB, free: 188 kB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.265e-05/0.9674, allocations: 13.27 kB / 1.357 GB, free: 184 kB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.023e-05/0.9674, allocations: 14.53 kB / 1.357 GB, free: 180 kB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.089e-05/0.9675, allocations: 76.75 kB / 1.357 GB, free: 116 kB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002111/0.9677, allocations: 72.97 kB / 1.357 GB, free: 80 kB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001048/0.9687, allocations: 0.5795 MB / 1.358 GB, free: 15.69 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.245e-05/0.9688, allocations: 34.19 kB / 1.358 GB, free: 15.68 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.281e-05/0.9688, allocations: 38 kB / 1.358 GB, free: 15.66 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008026/0.9696, allocations: 444.6 kB / 1.359 GB, free: 15.44 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.631e-05/0.9696, allocations: 0 / 1.359 GB, free: 15.44 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.805e-05/0.9697, allocations: 24.69 kB / 1.359 GB, free: 15.42 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.301e-05/0.9697, allocations: 10.47 kB / 1.359 GB, free: 15.42 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005462/0.9703, allocations: 302.5 kB / 1.359 GB, free: 15.32 MB / 1.076 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.002866/0.9731, allocations: 1.905 MB / 1.361 GB, free: 13.96 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005172/0.9736, allocations: 250.2 kB / 1.361 GB, free: 13.86 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001905/0.9738, allocations: 111.2 kB / 1.361 GB, free: 13.81 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009321/0.9748, allocations: 0.8477 MB / 1.362 GB, free: 12.86 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.218e-05/0.9748, allocations: 41.58 kB / 1.362 GB, free: 12.82 MB / 1.076 GB Notification: Performance of pre-optimization done (n=26): time 1.463e-06/0.9748, allocations: 0 / 1.362 GB, free: 12.82 MB / 1.076 GB Notification: Performance of matching and sorting (n=26): time 0.0007356/0.9755, allocations: 380.2 kB / 1.362 GB, free: 12.65 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.028e-05/0.9756, allocations: 54.25 kB / 1.362 GB, free: 12.59 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006288/0.9762, allocations: 477 kB / 1.363 GB, free: 12.37 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 3.859e-05/0.9763, allocations: 31.92 kB / 1.363 GB, free: 12.33 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002342/0.9765, allocations: 268.5 kB / 1.363 GB, free: 12.11 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 9.73e-05/0.9766, allocations: 102.8 kB / 1.363 GB, free: 12.03 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001193/0.9767, allocations: 66.7 kB / 1.363 GB, free: 12 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001865/0.9769, allocations: 356.5 kB / 1.364 GB, free: 11.66 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001755/0.9771, allocations: 97.72 kB / 1.364 GB, free: 11.63 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000254/0.9773, allocations: 169.7 kB / 1.364 GB, free: 11.53 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004292/0.9778, allocations: 285 kB / 1.364 GB, free: 11.36 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.9778, allocations: 4 kB / 1.364 GB, free: 11.36 MB / 1.076 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006408/0.9784, allocations: 365.7 kB / 1.364 GB, free: 11.2 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 2.028e-05/0.9784, allocations: 7.625 kB / 1.364 GB, free: 11.2 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.9784, allocations: 2.156 kB / 1.364 GB, free: 11.2 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.06e-05/0.9784, allocations: 7.469 kB / 1.364 GB, free: 11.19 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002806/0.9787, allocations: 74.77 kB / 1.365 GB, free: 11.18 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.024e-05/0.9787, allocations: 5.125 kB / 1.365 GB, free: 11.18 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003194/0.9791, allocations: 38.12 kB / 1.365 GB, free: 11.16 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.671e-05/0.9791, allocations: 17.84 kB / 1.365 GB, free: 11.15 MB / 1.076 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.0002333/0.9793, allocations: 183.4 kB / 1.365 GB, free: 11 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001052/0.9794, allocations: 53.11 kB / 1.365 GB, free: 10.97 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008966/0.9803, allocations: 484.6 kB / 1.365 GB, free: 10.76 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.799e-05/0.9803, allocations: 8.25 kB / 1.365 GB, free: 10.76 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.9804, allocations: 2.031 kB / 1.365 GB, free: 10.76 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006351/0.981, allocations: 0.5607 MB / 1.366 GB, free: 10.32 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002036/0.983, allocations: 1.155 MB / 1.367 GB, free: 9.594 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.983, allocations: 1.219 kB / 1.367 GB, free: 9.594 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002283/0.9833, allocations: 54.5 kB / 1.367 GB, free: 9.586 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/0.9833, allocations: 1.969 kB / 1.367 GB, free: 9.586 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.704e-05/0.9833, allocations: 11.33 kB / 1.367 GB, free: 9.582 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.9833, allocations: 7.031 kB / 1.367 GB, free: 9.578 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.9833, allocations: 2.234 kB / 1.367 GB, free: 9.578 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009471/0.9842, allocations: 0.6723 MB / 1.368 GB, free: 9.184 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002444/0.9845, allocations: 179.4 kB / 1.368 GB, free: 9.031 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.611e-05/0.9846, allocations: 8.609 kB / 1.368 GB, free: 9.027 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002707/0.9848, allocations: 11.56 kB / 1.368 GB, free: 9.023 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.358e-05/0.9849, allocations: 26.66 kB / 1.368 GB, free: 9.016 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.543e-05/0.9849, allocations: 18.39 kB / 1.368 GB, free: 9.012 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0004424/0.9854, allocations: 349.3 kB / 1.368 GB, free: 8.848 MB / 1.076 GB Notification: Performance of sort global known variables: time 9e-08/0.9854, allocations: 0 / 1.368 GB, free: 8.848 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0007276/0.9861, allocations: 204.4 kB / 1.368 GB, free: 8.801 MB / 1.076 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.001804/0.9879, allocations: 1.377 MB / 1.37 GB, free: 7.828 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0006954/0.9886, allocations: 281.2 kB / 1.37 GB, free: 7.738 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.9886, allocations: 4.125 kB / 1.37 GB, free: 7.734 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0002873/0.9889, allocations: 153.4 kB / 1.37 GB, free: 7.684 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001639/0.9905, allocations: 328.2 kB / 1.371 GB, free: 7.59 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006464/0.997, allocations: 4.23 MB / 1.375 GB, free: 5.02 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006725/0.9976, allocations: 0.8673 MB / 1.376 GB, free: 4.301 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0005301/0.9982, allocations: 115.2 kB / 1.376 GB, free: 4.273 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003218/0.9985, allocations: 193.8 kB / 1.376 GB, free: 4.145 MB / 1.076 GB Notification: Performance of SimCode: time 8.82e-07/0.9985, allocations: 0 / 1.376 GB, free: 4.145 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05321/1.052, allocations: 17.02 MB / 1.392 GB, free: 1.879 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.001/10.05, allocations: 17.06 kB / 1.392 GB, free: 1.867 MB / 1.076 GB " [Timeout remaining time 290] (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.21564478200162]