Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_3_2_3_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.00112/0.00112, allocations: 114.4 kB / 17.74 MB, free: 5.355 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.001122/0.001123, allocations: 183.1 kB / 18.66 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.402/1.402, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001363/0.001363, allocations: 51.94 kB / 328 MB, free: 3.82 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09802/0.09939, allocations: 46.62 MB / 374.6 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.277/0.3765, allocations: 90.13 MB / 464.8 MB, free: 5.738 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03296/0.4095, allocations: 21.3 MB / 486.1 MB, free: 388 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002961/0.4125, allocations: 87.44 kB / 486.1 MB, free: 300 kB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002566/0.4151, allocations: 0.9395 MB / 487.1 MB, free: 15.35 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009705/0.4248, allocations: 3.775 MB / 490.9 MB, free: 11.55 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0134/0.4382, allocations: 5.621 MB / 496.5 MB, free: 5.922 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01037/0.4486, allocations: 7.05 MB / 0.4917 GB, free: 14.85 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003729/0.4524, allocations: 1.834 MB / 0.4935 GB, free: 13 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4494/0.9018, allocations: 74.93 MB / 0.5667 GB, free: 55.8 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.06362/0.9655, allocations: 31.91 MB / 0.5979 GB, free: 46.09 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009294/0.9665, allocations: 248.9 kB / 0.5981 GB, free: 46.09 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01347/0.9799, allocations: 6.088 MB / 0.604 GB, free: 44.7 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001741/0.9817, allocations: 1.09 MB / 0.6051 GB, free: 44.35 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002106/0.9839, allocations: 1.499 MB / 0.6066 GB, free: 43.75 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008267/0.9921, allocations: 5.542 MB / 0.612 GB, free: 39.44 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.9922, allocations: 0 / 0.612 GB, free: 39.44 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.9922, allocations: 0 / 0.612 GB, free: 39.44 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.9e-05/0.9922, allocations: 4 kB / 0.612 GB, free: 39.43 MB / 478.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.007202/0.9995, allocations: 3.601 MB / 0.6155 GB, free: 36.21 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.417e-05/0.9995, allocations: 8.031 kB / 0.6155 GB, free: 36.21 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004457/1, allocations: 335.1 kB / 0.6158 GB, free: 35.99 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008481/1.001, allocations: 325.3 kB / 0.6161 GB, free: 35.68 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002498/1.003, allocations: 1.692 MB / 0.6178 GB, free: 34.32 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001361/1.003, allocations: 220.6 kB / 0.618 GB, free: 34.16 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002918/1.004, allocations: 201.2 kB / 0.6182 GB, free: 34.03 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004121/1.008, allocations: 3.304 MB / 0.6214 GB, free: 31.59 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.853e-05/1.008, allocations: 3.469 kB / 0.6214 GB, free: 31.59 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002232/1.008, allocations: 83.89 kB / 0.6215 GB, free: 31.57 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000261/1.008, allocations: 257.8 kB / 0.6217 GB, free: 31.36 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004238/1.013, allocations: 3.108 MB / 0.6248 GB, free: 29.29 MB / 478.1 MB 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.01545/1.028, allocations: 13.83 MB / 0.6383 GB, free: 17.17 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003459/1.032, allocations: 2.226 MB / 0.6405 GB, free: 15.24 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001742/1.033, allocations: 1.373 MB / 0.6418 GB, free: 13.88 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00715/1.041, allocations: 5.864 MB / 0.6475 GB, free: 7.543 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.682e-05/1.041, allocations: 56.56 kB / 0.6476 GB, free: 7.48 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006626/1.041, allocations: 178.5 kB / 0.6478 GB, free: 7.305 MB / 478.1 MB Notification: Performance of pre-optimization done (n=171): time 4.378e-06/1.041, allocations: 3.984 kB / 0.6478 GB, free: 7.301 MB / 478.1 MB Notification: Performance of matching and sorting (n=197): time 0.01927/1.061, allocations: 9.19 MB / 0.6567 GB, free: 14.05 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.417e-05/1.061, allocations: 77.41 kB / 0.6568 GB, free: 13.96 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002484/1.063, allocations: 1.852 MB / 0.6586 GB, free: 12.07 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002241/1.063, allocations: 61.7 kB / 0.6587 GB, free: 12.01 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008207/1.064, allocations: 1.084 MB / 0.6597 GB, free: 10.92 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000654/1.065, allocations: 0.7094 MB / 0.6604 GB, free: 10.22 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007291/1.066, allocations: 460.5 kB / 0.6609 GB, free: 9.762 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001189/1.066, allocations: 305.1 kB / 0.6612 GB, free: 9.461 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001976/1.068, allocations: 1.233 MB / 0.6624 GB, free: 8.219 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002476/1.07, allocations: 1.801 MB / 0.6641 GB, free: 6.18 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00458/1.075, allocations: 3.16 MB / 0.6672 GB, free: 2.852 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.018e-05/1.075, allocations: 8 kB / 0.6672 GB, free: 2.844 MB / 494.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.007339/1.082, allocations: 4.301 MB / 0.6714 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.316e-05/1.082, allocations: 12 kB / 0.6714 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.884e-05/1.082, allocations: 16 kB / 0.6714 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01359/1.096, allocations: 3.635 MB / 0.675 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001338/1.097, allocations: 330.5 kB / 0.6753 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006441/1.104, allocations: 3.958 MB / 0.6792 GB, free: 6.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00206/1.106, allocations: 99.88 kB / 0.6793 GB, free: 6.633 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003393/1.106, allocations: 112 kB / 0.6794 GB, free: 6.523 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003111/1.109, allocations: 1.672 MB / 0.681 GB, free: 4.844 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0026/1.112, allocations: 1.759 MB / 0.6827 GB, free: 2.844 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004378/1.116, allocations: 3.05 MB / 0.6857 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.252e-05/1.116, allocations: 4 kB / 0.6857 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.007186/1.124, allocations: 4.043 MB / 0.6897 GB, free: 11.67 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.937e-05/1.124, allocations: 12 kB / 0.6897 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.564e-05/1.124, allocations: 20 kB / 0.6897 GB, free: 11.64 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009671/1.133, allocations: 2.742 MB / 0.6924 GB, free: 8.906 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001772/1.135, allocations: 375.6 kB / 0.6927 GB, free: 8.562 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005926/1.141, allocations: 3.469 MB / 0.6961 GB, free: 5.098 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0023/1.143, allocations: 91.94 kB / 0.6962 GB, free: 5.008 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003623/1.144, allocations: 115.9 kB / 0.6963 GB, free: 4.895 MB / 0.5137 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.0007825/1.145, allocations: 315.9 kB / 0.6966 GB, free: 4.605 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007698/1.145, allocations: 246.4 kB / 0.6968 GB, free: 4.363 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008043/1.153, allocations: 3.942 MB / 0.7007 GB, free: 432 kB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.969e-05/1.153, allocations: 24 kB / 0.7007 GB, free: 408 kB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-05/1.153, allocations: 4 kB / 0.7007 GB, free: 404 kB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005767/1.159, allocations: 3.374 MB / 0.704 GB, free: 12.94 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01229/1.172, allocations: 6.309 MB / 0.7102 GB, free: 6.617 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.618e-06/1.172, allocations: 0 / 0.7102 GB, free: 6.617 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001391/1.173, allocations: 323.8 kB / 0.7105 GB, free: 6.316 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004005/1.177, allocations: 1.155 MB / 0.7116 GB, free: 5.141 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002541/1.177, allocations: 75.95 kB / 0.7117 GB, free: 5.066 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01079/1.188, allocations: 11.06 MB / 0.7225 GB, free: 9.293 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/1.188, allocations: 4.047 kB / 0.7225 GB, free: 9.289 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01048/1.199, allocations: 5.19 MB / 0.7276 GB, free: 4.078 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00202/1.201, allocations: 0.6123 MB / 0.7282 GB, free: 3.445 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007209/1.201, allocations: 55.98 kB / 0.7282 GB, free: 3.391 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001912/1.203, allocations: 75.95 kB / 0.7283 GB, free: 3.316 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004926/1.204, allocations: 161.8 kB / 0.7284 GB, free: 3.156 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002633/1.204, allocations: 83.95 kB / 0.7285 GB, free: 3.074 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00227/1.206, allocations: 1.257 MB / 0.7297 GB, free: 1.797 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.553e-06/1.206, allocations: 0 / 0.7297 GB, free: 1.797 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005689/1.212, allocations: 1.747 MB / 0.7314 GB, free: 48 kB / 0.545 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.01247/1.225, allocations: 6.676 MB / 0.738 GB, free: 9.426 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01197/1.237, allocations: 5.131 MB / 0.743 GB, free: 4.406 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.027e-05/1.237, allocations: 5.75 kB / 0.743 GB, free: 4.402 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.004671/1.241, allocations: 2.251 MB / 0.7452 GB, free: 2.117 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005849/1.247, allocations: 1.039 MB / 0.7462 GB, free: 1.078 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2589/1.506, allocations: 24.24 MB / 0.7699 GB, free: 259.5 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001918/1.508, allocations: 1.878 MB / 0.7717 GB, free: 258.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003397/1.512, allocations: 0.9596 MB / 0.7726 GB, free: 258.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001264/1.513, allocations: 1.01 MB / 0.7736 GB, free: 258.1 MB / 0.5762 GB Notification: Performance of SimCode: time 2.474e-06/1.513, allocations: 0 / 0.7736 GB, free: 258.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1364/1.649, allocations: 98.75 MB / 0.8701 GB, free: 177.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.35/19, allocations: 19.84 kB / 0.8701 GB, free: 177.6 MB / 0.5762 GB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Fluid_Examples_HeatingSystem.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)