Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.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) 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(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_HeatingSystem",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.001573/0.001573, allocations: 109.8 kB / 17.06 MB, free: 6.016 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.001832/0.001832, allocations: 191 kB / 18 MB, free: 5.102 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.37/1.37, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001125/0.001125, allocations: 47.92 kB / 350.8 MB, free: 3.777 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2893/0.2905, allocations: 49.44 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.08872/0.3792, allocations: 90.09 MB / 490.3 MB, free: 14.45 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.02988/0.4091, allocations: 21.33 MB / 0.4997 GB, free: 9.051 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002553/0.4117, allocations: 91.44 kB / 0.4997 GB, free: 8.961 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00278/0.4145, allocations: 0.9395 MB / 0.5007 GB, free: 8.016 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009576/0.4242, allocations: 3.779 MB / 0.5044 GB, free: 4.223 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01293/0.4371, allocations: 5.657 MB / 0.5099 GB, free: 14.57 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.00879/0.4459, allocations: 7.058 MB / 0.5168 GB, free: 7.488 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003849/0.4498, allocations: 1.841 MB / 0.5186 GB, free: 5.621 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.439/0.8889, allocations: 74.95 MB / 0.5918 GB, free: 7.398 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.06899/0.9579, allocations: 31.93 MB / 0.6229 GB, free: 13.75 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001463/0.9594, allocations: 248 kB / 0.6232 GB, free: 13.5 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01475/0.9742, allocations: 6.084 MB / 0.6291 GB, free: 8.73 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001865/0.9761, allocations: 1.087 MB / 0.6302 GB, free: 8.082 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002948/0.9791, allocations: 1.496 MB / 0.6316 GB, free: 7.301 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01061/0.9897, allocations: 5.547 MB / 0.6371 GB, free: 2.973 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.9897, allocations: 0 / 0.6371 GB, free: 2.973 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.9898, allocations: 0 / 0.6371 GB, free: 2.973 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0001548/0.9899, allocations: 0 / 0.6371 GB, free: 2.973 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 538 * Number of variables: 538 Notification: Performance of Generate backend data structure: time 0.01094/1.001, allocations: 3.603 MB / 0.6406 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 6.543e-05/1.001, allocations: 8.031 kB / 0.6406 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006901/1.002, allocations: 337.8 kB / 0.6409 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00127/1.003, allocations: 328.5 kB / 0.6412 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003396/1.006, allocations: 1.685 MB / 0.6429 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001749/1.007, allocations: 216.2 kB / 0.6431 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003545/1.007, allocations: 202.4 kB / 0.6433 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005479/1.012, allocations: 3.316 MB / 0.6465 GB, free: 10.2 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.997e-05/1.012, allocations: 7.188 kB / 0.6465 GB, free: 10.2 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002271/1.013, allocations: 79.88 kB / 0.6466 GB, free: 10.13 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002898/1.013, allocations: 255.6 kB / 0.6468 GB, free: 9.887 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005073/1.018, allocations: 3.12 MB / 0.6499 GB, free: 6.789 MB / 0.4981 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.0188/1.037, allocations: 13.81 MB / 0.6634 GB, free: 8.293 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003986/1.041, allocations: 2.241 MB / 0.6656 GB, free: 6.066 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002105/1.043, allocations: 1.363 MB / 0.6669 GB, free: 4.707 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008628/1.052, allocations: 5.86 MB / 0.6726 GB, free: 14.38 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.37e-05/1.052, allocations: 52.56 kB / 0.6727 GB, free: 14.32 MB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007079/1.052, allocations: 180.4 kB / 0.6728 GB, free: 14.14 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=171): time 3.256e-06/1.052, allocations: 0 / 0.6728 GB, free: 14.14 MB / 0.5294 GB Notification: Performance of matching and sorting (n=197): time 0.02231/1.075, allocations: 9.193 MB / 0.6818 GB, free: 4.887 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.668e-05/1.075, allocations: 73.41 kB / 0.6819 GB, free: 4.805 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002655/1.077, allocations: 1.846 MB / 0.6837 GB, free: 2.918 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.000361/1.078, allocations: 61.7 kB / 0.6837 GB, free: 2.852 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008251/1.079, allocations: 1.09 MB / 0.6848 GB, free: 1.758 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007389/1.079, allocations: 0.7175 MB / 0.6855 GB, free: 1.051 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007413/1.08, allocations: 460.5 kB / 0.6859 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 9.171e-05/1.08, allocations: 301.1 kB / 0.6862 GB, free: 304 kB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001974/1.082, allocations: 1.233 MB / 0.6874 GB, free: 15.05 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002361/1.085, allocations: 1.801 MB / 0.6892 GB, free: 13.02 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004457/1.089, allocations: 3.163 MB / 0.6923 GB, free: 9.688 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.374e-05/1.089, allocations: 8 kB / 0.6923 GB, free: 9.68 MB / 0.545 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.007411/1.097, allocations: 4.3 MB / 0.6965 GB, free: 5.473 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.267e-05/1.097, allocations: 16.06 kB / 0.6965 GB, free: 5.457 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.918e-05/1.097, allocations: 16 kB / 0.6965 GB, free: 5.441 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01361/1.11, allocations: 3.634 MB / 0.7001 GB, free: 1.812 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001356/1.112, allocations: 327.7 kB / 0.7004 GB, free: 1.516 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006429/1.118, allocations: 3.957 MB / 0.7042 GB, free: 13.57 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002225/1.12, allocations: 93.75 kB / 0.7043 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003283/1.121, allocations: 112 kB / 0.7044 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002895/1.124, allocations: 1.679 MB / 0.7061 GB, free: 11.69 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002285/1.126, allocations: 1.749 MB / 0.7078 GB, free: 9.695 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004264/1.13, allocations: 3.054 MB / 0.7108 GB, free: 6.469 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.153e-05/1.13, allocations: 4 kB / 0.7108 GB, free: 6.465 MB / 0.5606 GB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.006863/1.137, allocations: 4.038 MB / 0.7147 GB, free: 2.523 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.133e-05/1.137, allocations: 12.16 kB / 0.7147 GB, free: 2.512 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.347e-05/1.137, allocations: 27.94 kB / 0.7148 GB, free: 2.484 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00954/1.147, allocations: 2.748 MB / 0.7174 GB, free: 15.74 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001609/1.148, allocations: 369.4 kB / 0.7178 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005287/1.154, allocations: 3.475 MB / 0.7212 GB, free: 11.94 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002119/1.156, allocations: 91.94 kB / 0.7213 GB, free: 11.85 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002584/1.156, allocations: 108 kB / 0.7214 GB, free: 11.74 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * Number of states: 0 () * Number of discrete variables: 4 (tank.inFlow[2],tank.inFlow[1],tank.regularFlow[2],tank.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (175): * Single equations (assignments): 174 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(18,107)} Notification: Performance of prepare postOptimizeDAE: time 0.0006741/1.157, allocations: 313.4 kB / 0.7217 GB, free: 11.45 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005986/1.157, allocations: 246.5 kB / 0.7219 GB, free: 11.21 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007568/1.165, allocations: 3.948 MB / 0.7258 GB, free: 7.266 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.293e-05/1.165, allocations: 28 kB / 0.7258 GB, free: 7.238 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.432e-05/1.165, allocations: 4 kB / 0.7258 GB, free: 7.234 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005721/1.171, allocations: 3.371 MB / 0.7291 GB, free: 3.781 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01138/1.182, allocations: 6.297 MB / 0.7352 GB, free: 13.46 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-05/1.182, allocations: 4 kB / 0.7352 GB, free: 13.46 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001521/1.184, allocations: 319.4 kB / 0.7356 GB, free: 13.16 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003997/1.188, allocations: 1.158 MB / 0.7367 GB, free: 11.99 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003486/1.188, allocations: 79.89 kB / 0.7368 GB, free: 11.91 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01007/1.198, allocations: 11.06 MB / 0.7476 GB, free: 140 kB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.771e-06/1.198, allocations: 4.172 kB / 0.7476 GB, free: 136 kB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.224/1.422, allocations: 5.19 MB / 0.7526 GB, free: 273.7 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001458/1.424, allocations: 0.6103 MB / 0.7532 GB, free: 273.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004496/1.424, allocations: 57.86 kB / 0.7533 GB, free: 273.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001376/1.426, allocations: 78.75 kB / 0.7534 GB, free: 273.4 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000328/1.426, allocations: 161 kB / 0.7535 GB, free: 273.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001661/1.426, allocations: 87.98 kB / 0.7536 GB, free: 273.4 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001507/1.428, allocations: 1.257 MB / 0.7548 GB, free: 272.9 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.1e-07/1.428, allocations: 0 / 0.7548 GB, free: 272.9 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.004512/1.432, allocations: 1.749 MB / 0.7565 GB, free: 272.8 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (tank.level,tank.medium.T,heater.mediums[1].p,heater.mediums[1].T,radiator.mediums[1].p,radiator.mediums[1].T,pipe.mediums[1].p,pipe.mediums[1].T,pipe.mediums[2].p,pipe.mediums[2].T) * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (182): * Single equations (assignments): 168 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,9), (2,8), (5,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009879/1.442, allocations: 6.673 MB / 0.763 GB, free: 270.3 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.009848/1.452, allocations: 5.111 MB / 0.768 GB, free: 266.8 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 8.385e-06/1.452, allocations: 4.188 kB / 0.768 GB, free: 266.8 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.003661/1.456, allocations: 2.251 MB / 0.7702 GB, free: 264.5 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004861/1.461, allocations: 1.053 MB / 0.7713 GB, free: 263.5 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03314/1.494, allocations: 24.26 MB / 0.795 GB, free: 239.1 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001141/1.495, allocations: 1.883 MB / 0.7968 GB, free: 237.2 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.002714/1.498, allocations: 0.9487 MB / 0.7977 GB, free: 236.2 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001267/1.499, allocations: 1.007 MB / 0.7987 GB, free: 235.2 MB / 0.5919 GB Notification: Performance of SimCode: time 1.232e-06/1.499, allocations: 4 kB / 0.7987 GB, free: 235.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1422/1.641, allocations: 98.82 MB / 0.8952 GB, free: 136.8 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.36/19, allocations: 15.94 kB / 0.8952 GB, free: 136.8 MB / 0.5919 GB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem_res.csv --start-time 0 --stop-time 6000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2.4 Modelica_4_0_0_Modelica_Fluid_Examples_HeatingSystem.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)