Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Fluid_Sensors_Examples_HeatMeter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.HeatMeter,fileNamePrefix="Buildings_9_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.008108/0.008108, allocations: 105.8 kB / 15.74 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001906/0.001906, allocations: 192.3 kB / 16.67 MB, free: 5.973 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.337/1.337, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.349/2.349, allocations: 390.3 MB / 0.6648 GB, free: 184 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001156/0.001156, allocations: 66.7 kB / 0.9504 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2686/0.2698, allocations: 140.4 MB / 1.087 GB, free: 1.961 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02812/0.298, allocations: 23.24 MB / 1.11 GB, free: 10.63 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.008219/0.3062, allocations: 5.089 MB / 1.115 GB, free: 5.523 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001241/0.3075, allocations: 23.88 kB / 1.115 GB, free: 5.5 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.001196/0.3087, allocations: 282 kB / 1.115 GB, free: 5.223 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.002724/0.3115, allocations: 0.798 MB / 1.116 GB, free: 4.422 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.002044/0.3136, allocations: 0.7525 MB / 1.117 GB, free: 3.676 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.002487/0.3161, allocations: 1.606 MB / 1.119 GB, free: 2.062 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008619/0.317, allocations: 497.2 kB / 1.119 GB, free: 1.578 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001724/0.3187, allocations: 0.6115 MB / 1.12 GB, free: 0.9688 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008403/0.3195, allocations: 458 kB / 1.12 GB, free: 0.5195 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0001321/0.3197, allocations: 47.94 kB / 1.12 GB, free: 484 kB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001126/0.3208, allocations: 491.2 kB / 1.121 GB, free: 15.99 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0002182/0.321, allocations: 139.4 kB / 1.121 GB, free: 15.86 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0004492/0.3215, allocations: 314.4 kB / 1.121 GB, free: 15.55 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.001523/0.323, allocations: 0.92 MB / 1.122 GB, free: 14.62 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.838e-06/0.323, allocations: 0 / 1.122 GB, free: 14.62 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.552e-06/0.3231, allocations: 0 / 1.122 GB, free: 14.62 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 2.666e-05/0.3231, allocations: 0 / 1.122 GB, free: 14.62 MB / 0.8887 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.001592/0.3247, allocations: 0.8882 MB / 1.123 GB, free: 13.69 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.3247, allocations: 12.03 kB / 1.123 GB, free: 13.68 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001011/0.3248, allocations: 70.72 kB / 1.123 GB, free: 13.6 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002531/0.3251, allocations: 72.17 kB / 1.123 GB, free: 13.53 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001126/0.3262, allocations: 0.588 MB / 1.123 GB, free: 12.9 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.015e-05/0.3263, allocations: 29 kB / 1.123 GB, free: 12.87 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.299e-05/0.3264, allocations: 39.98 kB / 1.124 GB, free: 12.83 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007196/0.3271, allocations: 436.7 kB / 1.124 GB, free: 12.38 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.819e-05/0.3271, allocations: 8 kB / 1.124 GB, free: 12.37 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.862e-05/0.3272, allocations: 12 kB / 1.124 GB, free: 12.36 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.855e-05/0.3272, allocations: 16 kB / 1.124 GB, free: 12.34 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005275/0.3277, allocations: 303.8 kB / 1.124 GB, free: 12.05 MB / 0.8887 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.002776/0.3305, allocations: 1.907 MB / 1.126 GB, free: 10.01 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005514/0.3311, allocations: 258.8 kB / 1.126 GB, free: 9.746 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002015/0.3313, allocations: 120.8 kB / 1.126 GB, free: 9.625 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008693/0.3322, allocations: 0.8545 MB / 1.127 GB, free: 8.586 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.063e-05/0.3322, allocations: 34.5 kB / 1.127 GB, free: 8.543 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=26): time 1.463e-06/0.3322, allocations: 0 / 1.127 GB, free: 8.543 MB / 0.8887 GB Notification: Performance of matching and sorting (n=26): time 0.0007435/0.333, allocations: 369.5 kB / 1.128 GB, free: 8.176 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.843e-05/0.333, allocations: 55.41 kB / 1.128 GB, free: 8.109 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005853/0.3336, allocations: 474 kB / 1.128 GB, free: 7.633 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 3.919e-05/0.3337, allocations: 33.7 kB / 1.128 GB, free: 7.594 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002035/0.3339, allocations: 260 kB / 1.129 GB, free: 7.336 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 9.38e-05/0.334, allocations: 98.72 kB / 1.129 GB, free: 7.238 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001032/0.3341, allocations: 69.94 kB / 1.129 GB, free: 7.164 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001665/0.3342, allocations: 354.8 kB / 1.129 GB, free: 6.809 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001753/0.3344, allocations: 100.6 kB / 1.129 GB, free: 6.711 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002463/0.3347, allocations: 176 kB / 1.129 GB, free: 6.516 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000398/0.3351, allocations: 295.2 kB / 1.13 GB, free: 6.203 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.3351, allocations: 0 / 1.13 GB, free: 6.203 MB / 0.8887 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006412/0.3357, allocations: 356.8 kB / 1.13 GB, free: 5.848 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.946e-05/0.3358, allocations: 5.406 kB / 1.13 GB, free: 5.844 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.3358, allocations: 7.984 kB / 1.13 GB, free: 5.836 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.995e-05/0.3358, allocations: 7.922 kB / 1.13 GB, free: 5.828 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000263/0.3361, allocations: 79.89 kB / 1.13 GB, free: 5.75 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.137e-05/0.3361, allocations: 12.16 kB / 1.13 GB, free: 5.738 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002766/0.3364, allocations: 43.47 kB / 1.13 GB, free: 5.695 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.951e-05/0.3364, allocations: 19.98 kB / 1.13 GB, free: 5.676 MB / 0.8887 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.0001974/0.3366, allocations: 174.9 kB / 1.13 GB, free: 5.496 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001092/0.3368, allocations: 47.44 kB / 1.13 GB, free: 5.449 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007834/0.3375, allocations: 476.8 kB / 1.131 GB, free: 4.977 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.405e-05/0.3376, allocations: 11.92 kB / 1.131 GB, free: 4.965 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.3376, allocations: 0 / 1.131 GB, free: 4.965 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005986/0.3382, allocations: 0.565 MB / 1.131 GB, free: 4.332 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001764/0.34, allocations: 1.148 MB / 1.132 GB, free: 3.09 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.541e-06/0.34, allocations: 4 kB / 1.132 GB, free: 3.086 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002187/0.3402, allocations: 55.91 kB / 1.132 GB, free: 3.031 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/0.3402, allocations: 0 / 1.132 GB, free: 3.031 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.803e-05/0.3402, allocations: 16.19 kB / 1.132 GB, free: 3.016 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.449e-06/0.3403, allocations: 0 / 1.132 GB, free: 3.016 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/0.3403, allocations: 7.938 kB / 1.132 GB, free: 3.008 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008644/0.3411, allocations: 0.6601 MB / 1.133 GB, free: 2.312 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002227/0.3414, allocations: 180.3 kB / 1.133 GB, free: 2.117 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.321e-05/0.3414, allocations: 8 kB / 1.133 GB, free: 2.109 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002771/0.3417, allocations: 11.98 kB / 1.133 GB, free: 2.098 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.222e-05/0.3418, allocations: 27.84 kB / 1.133 GB, free: 2.07 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.235e-05/0.3418, allocations: 15.98 kB / 1.133 GB, free: 2.055 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0004224/0.3423, allocations: 354.8 kB / 1.134 GB, free: 1.711 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3423, allocations: 0 / 1.134 GB, free: 1.711 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0006932/0.343, allocations: 195.8 kB / 1.134 GB, free: 1.52 MB / 0.8887 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.0018/0.3448, allocations: 1.39 MB / 1.135 GB, free: 92 kB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.0005188/0.3453, allocations: 283.8 kB / 1.136 GB, free: 15.81 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.3453, allocations: 4 kB / 1.136 GB, free: 15.81 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0002378/0.3456, allocations: 174.9 kB / 1.136 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001542/0.3471, allocations: 332.7 kB / 1.136 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00567/0.3528, allocations: 4.193 MB / 1.14 GB, free: 10.98 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006494/0.3535, allocations: 0.8744 MB / 1.141 GB, free: 10.07 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0004989/0.354, allocations: 120.6 kB / 1.141 GB, free: 9.957 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003539/0.3543, allocations: 195.4 kB / 1.141 GB, free: 9.766 MB / 0.9044 GB Notification: Performance of SimCode: time 1.052e-06/0.3544, allocations: 0 / 1.141 GB, free: 9.766 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.047/0.4014, allocations: 16.98 MB / 1.158 GB, free: 9.047 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.486/8.888, allocations: 7.875 kB / 1.158 GB, free: 9.039 MB / 0.92 GB (rm -f Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe >> ../files/Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Fluid_Sensors_Examples_HeatMeter.fmu > Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Sensors_Examples_HeatMeter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Sensors.Examples.HeatMeter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches