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.00543/0.00543, allocations: 95.38 kB / 15.73 MB, free: 6.051 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.001158/0.001158, allocations: 204.5 kB / 16.68 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.347/1.347, allocations: 222.9 MB / 240.4 MB, free: 4.328 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.383/2.383, allocations: 390.2 MB / 0.6648 GB, free: 196 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 69 kB / 0.9504 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2603/0.2616, allocations: 140.4 MB / 1.087 GB, free: 2.023 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02414/0.2858, allocations: 23.25 MB / 1.11 GB, free: 10.68 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.007141/0.293, allocations: 5.083 MB / 1.115 GB, free: 5.586 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007453/0.2938, allocations: 27.81 kB / 1.115 GB, free: 5.559 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.0008073/0.2946, allocations: 282.1 kB / 1.115 GB, free: 5.281 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.00201/0.2966, allocations: 0.8319 MB / 1.116 GB, free: 4.445 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.001851/0.2985, allocations: 0.7688 MB / 1.117 GB, free: 3.684 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.001991/0.3005, allocations: 1.613 MB / 1.119 GB, free: 2.062 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006528/0.3012, allocations: 493.3 kB / 1.119 GB, free: 1.582 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001329/0.3025, allocations: 0.632 MB / 1.12 GB, free: 0.9492 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005365/0.3031, allocations: 450 kB / 1.12 GB, free: 0.5078 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 6.967e-05/0.3031, allocations: 44 kB / 1.12 GB, free: 476 kB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001047/0.3042, allocations: 499.2 kB / 1.121 GB, free: 15.97 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0001593/0.3044, allocations: 143.4 kB / 1.121 GB, free: 15.84 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0003107/0.3047, allocations: 306.5 kB / 1.121 GB, free: 15.54 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.001313/0.306, allocations: 0.9226 MB / 1.122 GB, free: 14.61 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.306, allocations: 0 / 1.122 GB, free: 14.61 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.733e-06/0.306, allocations: 0 / 1.122 GB, free: 14.61 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 9.418e-06/0.3061, allocations: 0 / 1.122 GB, free: 14.61 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.001279/0.3073, allocations: 0.9029 MB / 1.123 GB, free: 13.66 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.3074, allocations: 12.03 kB / 1.123 GB, free: 13.64 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.538e-05/0.3075, allocations: 78.66 kB / 1.123 GB, free: 13.56 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002054/0.3077, allocations: 72.52 kB / 1.123 GB, free: 13.49 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009713/0.3087, allocations: 0.5923 MB / 1.124 GB, free: 12.86 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.376e-05/0.3087, allocations: 29 kB / 1.124 GB, free: 12.83 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.594e-05/0.3088, allocations: 36 kB / 1.124 GB, free: 12.79 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006687/0.3095, allocations: 436.7 kB / 1.124 GB, free: 12.34 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.768e-05/0.3095, allocations: 3.938 kB / 1.124 GB, free: 12.34 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.012e-05/0.3095, allocations: 16 kB / 1.124 GB, free: 12.32 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.218e-05/0.3096, allocations: 15.98 kB / 1.124 GB, free: 12.3 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005043/0.3101, allocations: 303.8 kB / 1.124 GB, free: 12.01 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.002521/0.3126, allocations: 1.916 MB / 1.126 GB, free: 9.961 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004807/0.3131, allocations: 262.7 kB / 1.126 GB, free: 9.695 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001757/0.3133, allocations: 120.8 kB / 1.127 GB, free: 9.574 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00081/0.3141, allocations: 0.8506 MB / 1.127 GB, free: 8.539 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.544e-05/0.3141, allocations: 38.55 kB / 1.127 GB, free: 8.492 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=26): time 1.493e-06/0.3141, allocations: 4 kB / 1.127 GB, free: 8.488 MB / 0.8887 GB Notification: Performance of matching and sorting (n=26): time 0.0006694/0.3148, allocations: 373.7 kB / 1.128 GB, free: 8.117 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.584e-05/0.3149, allocations: 55.41 kB / 1.128 GB, free: 8.051 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005388/0.3154, allocations: 470.1 kB / 1.128 GB, free: 7.578 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 3.116e-05/0.3155, allocations: 37.7 kB / 1.128 GB, free: 7.535 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001851/0.3157, allocations: 260.4 kB / 1.129 GB, free: 7.277 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 8.366e-05/0.3157, allocations: 99.16 kB / 1.129 GB, free: 7.18 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001065/0.3159, allocations: 73.97 kB / 1.129 GB, free: 7.102 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001335/0.316, allocations: 358.8 kB / 1.129 GB, free: 6.742 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000165/0.3162, allocations: 96.59 kB / 1.129 GB, free: 6.648 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002243/0.3164, allocations: 176 kB / 1.129 GB, free: 6.453 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003978/0.3168, allocations: 287.1 kB / 1.13 GB, free: 6.148 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.347e-06/0.3168, allocations: 0 / 1.13 GB, free: 6.148 MB / 0.8887 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005664/0.3174, allocations: 369 kB / 1.13 GB, free: 5.781 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/0.3174, allocations: 5.719 kB / 1.13 GB, free: 5.777 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.3174, allocations: 4 kB / 1.13 GB, free: 5.773 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.88e-05/0.3174, allocations: 3.938 kB / 1.13 GB, free: 5.77 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002672/0.3177, allocations: 84.11 kB / 1.13 GB, free: 5.688 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.816e-06/0.3177, allocations: 0 / 1.13 GB, free: 5.688 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000253/0.318, allocations: 43.61 kB / 1.13 GB, free: 5.645 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.383e-05/0.318, allocations: 19.98 kB / 1.13 GB, free: 5.625 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.0001945/0.3182, allocations: 174.9 kB / 1.13 GB, free: 5.445 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.562e-05/0.3183, allocations: 55.61 kB / 1.13 GB, free: 5.391 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007846/0.3191, allocations: 484.8 kB / 1.131 GB, free: 4.91 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.318e-05/0.3192, allocations: 7.938 kB / 1.131 GB, free: 4.902 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.3192, allocations: 3.984 kB / 1.131 GB, free: 4.898 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006745/0.3199, allocations: 0.5611 MB / 1.131 GB, free: 4.27 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001787/0.3216, allocations: 1.156 MB / 1.133 GB, free: 3.02 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.3217, allocations: 0 / 1.133 GB, free: 3.02 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002222/0.3219, allocations: 56.09 kB / 1.133 GB, free: 2.965 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.3219, allocations: 4 kB / 1.133 GB, free: 2.961 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.265e-05/0.3219, allocations: 12 kB / 1.133 GB, free: 2.949 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.436e-06/0.3219, allocations: 0 / 1.133 GB, free: 2.949 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.322, allocations: 4 kB / 1.133 GB, free: 2.945 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008825/0.3228, allocations: 0.6682 MB / 1.133 GB, free: 2.242 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002101/0.3231, allocations: 172.6 kB / 1.133 GB, free: 2.055 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.088e-05/0.3231, allocations: 12 kB / 1.133 GB, free: 2.043 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002788/0.3234, allocations: 11.98 kB / 1.133 GB, free: 2.031 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.484e-05/0.3235, allocations: 23.91 kB / 1.133 GB, free: 2.008 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.15e-05/0.3235, allocations: 23.98 kB / 1.133 GB, free: 1.984 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.000394/0.3239, allocations: 342.9 kB / 1.134 GB, free: 1.652 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.137e-05/0.3239, allocations: 0 / 1.134 GB, free: 1.652 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0006436/0.3246, allocations: 207.5 kB / 1.134 GB, free: 1.449 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.001757/0.3263, allocations: 1.392 MB / 1.135 GB, free: 20 kB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.0005284/0.3269, allocations: 287.8 kB / 1.136 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 4.167e-06/0.3269, allocations: 4 kB / 1.136 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0002218/0.3271, allocations: 167.8 kB / 1.136 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001587/0.3287, allocations: 339.4 kB / 1.136 GB, free: 15.24 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005422/0.3342, allocations: 4.214 MB / 1.14 GB, free: 10.88 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004641/0.3346, allocations: 0.8627 MB / 1.141 GB, free: 9.984 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0003717/0.335, allocations: 116.7 kB / 1.141 GB, free: 9.871 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002762/0.3353, allocations: 207.2 kB / 1.141 GB, free: 9.668 MB / 0.9044 GB Notification: Performance of SimCode: time 7.22e-07/0.3353, allocations: 0 / 1.141 GB, free: 9.668 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03649/0.3718, allocations: 16.96 MB / 1.158 GB, free: 8.973 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.902/9.273, allocations: 15.88 kB / 1.158 GB, free: 8.957 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