Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001263/0.001263, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00129/0.00129, allocations: 197.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.437/1.437, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001754/0.001754, allocations: 63.88 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.288/0.2897, allocations: 50.54 MB / 408.7 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.1005/0.3903, allocations: 90.42 MB / 499.2 MB, free: 6.793 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03317/0.4235, allocations: 21.35 MB / 0.5083 GB, free: 1.387 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002573/0.4261, allocations: 87.5 kB / 0.5084 GB, free: 1.301 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003032/0.4291, allocations: 0.9433 MB / 0.5093 GB, free: 360 kB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01028/0.4395, allocations: 3.74 MB / 0.513 GB, free: 12.59 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01464/0.4541, allocations: 5.672 MB / 0.5185 GB, free: 6.922 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.01107/0.4652, allocations: 7.073 MB / 0.5254 GB, free: 15.83 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00362/0.4689, allocations: 1.841 MB / 0.5272 GB, free: 13.97 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4015/0.8704, allocations: 74.95 MB / 0.6004 GB, free: 11.85 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.06575/0.9362, allocations: 31.94 MB / 0.6316 GB, free: 0.9023 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001123/0.9374, allocations: 249.6 kB / 0.6318 GB, free: 0.6602 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01373/0.9511, allocations: 6.116 MB / 0.6378 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.001821/0.953, allocations: 1.087 MB / 0.6389 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.002367/0.9553, allocations: 1.498 MB / 0.6403 GB, free: 10.37 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01044/0.9658, allocations: 5.564 MB / 0.6458 GB, free: 5.781 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.9658, allocations: 0 / 0.6458 GB, free: 5.781 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.863e-06/0.9659, allocations: 0 / 0.6458 GB, free: 5.781 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.922e-05/0.9659, allocations: 0 / 0.6458 GB, free: 5.781 MB / 0.4981 GB 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.01056/0.9765, allocations: 3.598 MB / 0.6493 GB, free: 2.176 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.728e-05/0.9766, allocations: 8.031 kB / 0.6493 GB, free: 2.168 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006996/0.9773, allocations: 345.4 kB / 0.6496 GB, free: 1.832 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001077/0.9784, allocations: 324.7 kB / 0.6499 GB, free: 1.516 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003129/0.9815, allocations: 1.692 MB / 0.6516 GB, free: 15.86 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002166/0.9817, allocations: 222.6 kB / 0.6518 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003691/0.9821, allocations: 206 kB / 0.652 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005597/0.9877, allocations: 3.302 MB / 0.6552 GB, free: 12.07 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.789e-05/0.9878, allocations: 6.625 kB / 0.6552 GB, free: 12.06 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002475/0.988, allocations: 85.75 kB / 0.6553 GB, free: 11.99 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003378/0.9884, allocations: 250.4 kB / 0.6555 GB, free: 11.75 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005282/0.9937, allocations: 3.113 MB / 0.6586 GB, free: 8.66 MB / 0.5137 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.02073/1.014, allocations: 13.82 MB / 0.6721 GB, free: 10.16 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00438/1.019, allocations: 2.218 MB / 0.6742 GB, free: 7.945 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002255/1.021, allocations: 1.375 MB / 0.6756 GB, free: 6.578 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009567/1.031, allocations: 5.864 MB / 0.6813 GB, free: 248 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.926e-05/1.031, allocations: 53.31 kB / 0.6814 GB, free: 188 kB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007865/1.032, allocations: 182.4 kB / 0.6815 GB, free: 8 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=171): time 4.459e-06/1.032, allocations: 0 / 0.6815 GB, free: 8 kB / 0.5294 GB Notification: Performance of matching and sorting (n=197): time 0.02501/1.057, allocations: 9.199 MB / 0.6905 GB, free: 6.754 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.904e-05/1.057, allocations: 69.41 kB / 0.6906 GB, free: 6.676 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003417/1.06, allocations: 1.841 MB / 0.6924 GB, free: 4.793 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0002717/1.06, allocations: 61.7 kB / 0.6924 GB, free: 4.727 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009948/1.061, allocations: 1.093 MB / 0.6935 GB, free: 3.629 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009487/1.062, allocations: 0.7138 MB / 0.6942 GB, free: 2.926 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001049/1.063, allocations: 462.6 kB / 0.6947 GB, free: 2.469 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001674/1.064, allocations: 305.1 kB / 0.6949 GB, free: 2.168 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002302/1.066, allocations: 1.228 MB / 0.6961 GB, free: 0.9336 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003058/1.069, allocations: 1.807 MB / 0.6979 GB, free: 14.89 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005414/1.074, allocations: 3.157 MB / 0.701 GB, free: 11.56 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-05/1.075, allocations: 4 kB / 0.701 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.008033/1.083, allocations: 4.316 MB / 0.7052 GB, free: 7.332 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.841e-05/1.083, allocations: 12 kB / 0.7052 GB, free: 7.32 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.776e-05/1.083, allocations: 20 kB / 0.7052 GB, free: 7.301 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01455/1.097, allocations: 3.634 MB / 0.7088 GB, free: 3.676 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001408/1.099, allocations: 326.7 kB / 0.7091 GB, free: 3.379 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007666/1.106, allocations: 3.953 MB / 0.713 GB, free: 15.43 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00245/1.109, allocations: 91.95 kB / 0.7131 GB, free: 15.34 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00049/1.109, allocations: 120 kB / 0.7132 GB, free: 15.23 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004133/1.114, allocations: 1.672 MB / 0.7148 GB, free: 13.55 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002909/1.116, allocations: 1.755 MB / 0.7165 GB, free: 11.55 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0053/1.122, allocations: 3.047 MB / 0.7195 GB, free: 8.336 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.905e-05/1.122, allocations: 8.625 kB / 0.7195 GB, free: 8.328 MB / 0.5762 GB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.008241/1.13, allocations: 4.034 MB / 0.7234 GB, free: 4.391 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.299e-05/1.13, allocations: 23.95 kB / 0.7235 GB, free: 4.367 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.343e-05/1.13, allocations: 16 kB / 0.7235 GB, free: 4.352 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01034/1.141, allocations: 2.742 MB / 0.7261 GB, free: 1.613 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001769/1.142, allocations: 377 kB / 0.7265 GB, free: 1.27 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006609/1.149, allocations: 3.474 MB / 0.7299 GB, free: 13.81 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002399/1.151, allocations: 95.94 kB / 0.73 GB, free: 13.71 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004089/1.152, allocations: 112 kB / 0.7301 GB, free: 13.61 MB / 0.5919 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.0009774/1.153, allocations: 319.7 kB / 0.7304 GB, free: 13.31 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008749/1.154, allocations: 234.5 kB / 0.7306 GB, free: 13.08 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00862/1.162, allocations: 3.942 MB / 0.7345 GB, free: 9.133 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.144e-05/1.162, allocations: 27.94 kB / 0.7345 GB, free: 9.105 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.829e-05/1.162, allocations: 3.984 kB / 0.7345 GB, free: 9.102 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00652/1.169, allocations: 3.383 MB / 0.7378 GB, free: 5.645 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01234/1.181, allocations: 6.293 MB / 0.744 GB, free: 15.32 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.518e-06/1.181, allocations: 0 / 0.744 GB, free: 15.32 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001504/1.183, allocations: 313.4 kB / 0.7443 GB, free: 15.03 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004205/1.187, allocations: 1.164 MB / 0.7454 GB, free: 13.85 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002945/1.187, allocations: 71.95 kB / 0.7455 GB, free: 13.78 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01143/1.199, allocations: 11.07 MB / 0.7563 GB, free: 1.996 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/1.199, allocations: 0 / 0.7563 GB, free: 1.996 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2096/1.408, allocations: 5.196 MB / 0.7613 GB, free: 282.4 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001317/1.41, allocations: 0.6183 MB / 0.7619 GB, free: 282.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003489/1.41, allocations: 49.02 kB / 0.762 GB, free: 282.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001336/1.412, allocations: 73.02 kB / 0.7621 GB, free: 282.3 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003557/1.412, allocations: 170.6 kB / 0.7622 GB, free: 282.3 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001616/1.412, allocations: 77.81 kB / 0.7623 GB, free: 282.3 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001422/1.414, allocations: 1.266 MB / 0.7635 GB, free: 282 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.9e-07/1.414, allocations: 2.344 kB / 0.7635 GB, free: 282 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.003693/1.417, allocations: 1.756 MB / 0.7653 GB, free: 281.9 MB / 0.6075 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.00886/1.426, allocations: 6.667 MB / 0.7718 GB, free: 279.4 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.00908/1.435, allocations: 5.114 MB / 0.7768 GB, free: 277.5 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 6.492e-06/1.435, allocations: 3.969 kB / 0.7768 GB, free: 277.5 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.003491/1.439, allocations: 2.241 MB / 0.779 GB, free: 275.4 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004287/1.443, allocations: 1.065 MB / 0.78 GB, free: 274.6 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03135/1.474, allocations: 24.27 MB / 0.8037 GB, free: 250.3 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001221/1.476, allocations: 1.879 MB / 0.8055 GB, free: 248.4 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.002574/1.478, allocations: 0.9487 MB / 0.8065 GB, free: 247.4 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001065/1.479, allocations: 1.011 MB / 0.8074 GB, free: 246.4 MB / 0.6075 GB Notification: Performance of SimCode: time 1.412e-06/1.479, allocations: 0 / 0.8074 GB, free: 246.4 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1347/1.614, allocations: 98.9 MB / 0.904 GB, free: 147.8 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.12/19.73, allocations: 7.25 kB / 0.904 GB, free: 147.8 MB / 0.6075 GB (rm -f Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Fluid_Examples_HeatingSystem.fmu > Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)