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.001274/0.001274, 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.001361/0.001361, allocations: 179.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.428/1.428, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001342/0.001342, allocations: 47.94 kB / 328 MB, free: 3.828 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0917/0.09305, allocations: 46.62 MB / 374.6 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.2942/0.3873, allocations: 90.13 MB / 464.8 MB, free: 5.758 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03117/0.4186, allocations: 21.3 MB / 486.1 MB, free: 408 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003308/0.4219, allocations: 83.5 kB / 486.1 MB, free: 324 kB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003317/0.4253, allocations: 0.9435 MB / 487.1 MB, free: 15.36 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01259/0.4379, allocations: 3.764 MB / 490.9 MB, free: 11.58 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01362/0.4516, allocations: 5.633 MB / 496.5 MB, free: 5.941 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.009104/0.4607, allocations: 7.042 MB / 0.4917 GB, free: 14.88 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003314/0.4641, allocations: 1.844 MB / 0.4935 GB, free: 13.02 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4341/0.8982, allocations: 74.92 MB / 0.5667 GB, free: 55.84 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0675/0.9658, allocations: 31.91 MB / 0.5978 GB, free: 46.13 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001376/0.9672, allocations: 246.5 kB / 0.5981 GB, free: 46.13 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0163/0.9835, allocations: 6.093 MB / 0.604 GB, free: 44.69 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002349/0.9859, allocations: 1.09 MB / 0.6051 GB, free: 44.34 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003401/0.9894, allocations: 1.497 MB / 0.6066 GB, free: 43.73 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01095/1, allocations: 5.543 MB / 0.612 GB, free: 39.46 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.294e-06/1, allocations: 3.938 kB / 0.612 GB, free: 39.46 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.934e-06/1, allocations: 0 / 0.612 GB, free: 39.46 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0001394/1.001, allocations: 0 / 0.612 GB, free: 39.46 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.009565/1.01, allocations: 3.6 MB / 0.6155 GB, free: 36.24 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.893e-05/1.01, allocations: 12.03 kB / 0.6155 GB, free: 36.23 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009288/1.011, allocations: 338.1 kB / 0.6158 GB, free: 36.01 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001446/1.013, allocations: 323.5 kB / 0.6161 GB, free: 35.7 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003343/1.016, allocations: 1.686 MB / 0.6178 GB, free: 34.34 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000207/1.016, allocations: 222.9 kB / 0.618 GB, free: 34.18 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005432/1.017, allocations: 198 kB / 0.6182 GB, free: 34.05 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005039/1.022, allocations: 3.303 MB / 0.6214 GB, free: 31.62 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.055e-05/1.022, allocations: 11.12 kB / 0.6214 GB, free: 31.61 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002599/1.022, allocations: 85.45 kB / 0.6215 GB, free: 31.59 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002753/1.022, allocations: 254.7 kB / 0.6217 GB, free: 31.38 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0053/1.028, allocations: 3.119 MB / 0.6248 GB, free: 29.3 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.0197/1.048, allocations: 13.82 MB / 0.6383 GB, free: 17.19 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003906/1.051, allocations: 2.225 MB / 0.6405 GB, free: 15.31 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001925/1.053, allocations: 1.365 MB / 0.6418 GB, free: 13.95 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007301/1.061, allocations: 5.865 MB / 0.6475 GB, free: 7.609 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.996e-05/1.061, allocations: 48.56 kB / 0.6476 GB, free: 7.555 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007733/1.062, allocations: 182.5 kB / 0.6477 GB, free: 7.375 MB / 478.1 MB Notification: Performance of pre-optimization done (n=171): time 7.013e-06/1.062, allocations: 0 / 0.6477 GB, free: 7.375 MB / 478.1 MB Notification: Performance of matching and sorting (n=197): time 0.02095/1.083, allocations: 9.201 MB / 0.6567 GB, free: 14.12 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.187e-05/1.083, allocations: 73.41 kB / 0.6568 GB, free: 14.04 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002862/1.086, allocations: 1.837 MB / 0.6586 GB, free: 12.16 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004608/1.086, allocations: 69.17 kB / 0.6587 GB, free: 12.09 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000837/1.087, allocations: 1.093 MB / 0.6597 GB, free: 10.99 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009516/1.088, allocations: 0.7057 MB / 0.6604 GB, free: 10.29 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009492/1.089, allocations: 463.2 kB / 0.6609 GB, free: 9.836 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001217/1.089, allocations: 309.1 kB / 0.6612 GB, free: 9.531 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002257/1.091, allocations: 1.233 MB / 0.6624 GB, free: 8.289 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002697/1.094, allocations: 1.802 MB / 0.6641 GB, free: 6.246 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005303/1.099, allocations: 3.162 MB / 0.6672 GB, free: 2.918 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-05/1.099, allocations: 4 kB / 0.6672 GB, free: 2.914 MB / 494.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01013/1.11, allocations: 4.296 MB / 0.6714 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.517e-05/1.11, allocations: 12.97 kB / 0.6714 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.788e-05/1.11, allocations: 16 kB / 0.6714 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01465/1.124, allocations: 3.638 MB / 0.675 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00156/1.126, allocations: 332.2 kB / 0.6753 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008879/1.135, allocations: 3.949 MB / 0.6792 GB, free: 6.805 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002507/1.137, allocations: 99.88 kB / 0.6793 GB, free: 6.707 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00063/1.138, allocations: 112 kB / 0.6794 GB, free: 6.598 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003947/1.142, allocations: 1.676 MB / 0.681 GB, free: 4.914 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003068/1.145, allocations: 1.751 MB / 0.6827 GB, free: 2.922 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.005702/1.151, allocations: 3.05 MB / 0.6857 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.993e-05/1.151, allocations: 11.94 kB / 0.6857 GB, free: 15.69 MB / 0.5137 GB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.009426/1.16, allocations: 4.039 MB / 0.6896 GB, free: 11.74 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.702e-05/1.16, allocations: 12 kB / 0.6897 GB, free: 11.73 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.384e-05/1.161, allocations: 16 kB / 0.6897 GB, free: 11.71 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009831/1.17, allocations: 2.753 MB / 0.6924 GB, free: 8.977 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001786/1.172, allocations: 372.8 kB / 0.6927 GB, free: 8.637 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006639/1.179, allocations: 3.471 MB / 0.6961 GB, free: 5.168 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002283/1.181, allocations: 98 kB / 0.6962 GB, free: 5.074 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005296/1.182, allocations: 111.9 kB / 0.6963 GB, free: 4.965 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.001002/1.183, allocations: 306.7 kB / 0.6966 GB, free: 4.68 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009043/1.184, allocations: 242.5 kB / 0.6968 GB, free: 4.441 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01007/1.194, allocations: 3.946 MB / 0.7007 GB, free: 0.5039 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.385e-05/1.194, allocations: 31.98 kB / 0.7007 GB, free: 484 kB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.942e-05/1.194, allocations: 8 kB / 0.7007 GB, free: 476 kB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00791/1.202, allocations: 3.37 MB / 0.704 GB, free: 13.02 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01547/1.217, allocations: 6.297 MB / 0.7102 GB, free: 6.699 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.131e-05/1.217, allocations: 0 / 0.7102 GB, free: 6.699 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001689/1.219, allocations: 319.6 kB / 0.7105 GB, free: 6.402 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004408/1.224, allocations: 1.164 MB / 0.7116 GB, free: 5.219 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005481/1.224, allocations: 71.95 kB / 0.7117 GB, free: 5.148 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01049/1.235, allocations: 11.06 MB / 0.7225 GB, free: 9.367 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/1.235, allocations: 0 / 0.7225 GB, free: 9.367 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01081/1.246, allocations: 5.201 MB / 0.7275 GB, free: 4.145 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001854/1.247, allocations: 0.6084 MB / 0.7281 GB, free: 3.516 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001063/1.249, allocations: 55.98 kB / 0.7282 GB, free: 3.461 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00201/1.251, allocations: 75.94 kB / 0.7283 GB, free: 3.387 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006508/1.251, allocations: 168.8 kB / 0.7284 GB, free: 3.223 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004251/1.252, allocations: 87.95 kB / 0.7285 GB, free: 3.137 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002507/1.254, allocations: 1.253 MB / 0.7297 GB, free: 1.863 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.9e-07/1.254, allocations: 0 / 0.7297 GB, free: 1.863 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006506/1.261, allocations: 1.747 MB / 0.7314 GB, free: 116 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.01452/1.275, allocations: 6.674 MB / 0.738 GB, free: 9.48 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01235/1.288, allocations: 5.119 MB / 0.743 GB, free: 4.477 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.477e-06/1.288, allocations: 8.25 kB / 0.743 GB, free: 4.469 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.004573/1.292, allocations: 2.252 MB / 0.7452 GB, free: 2.184 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005684/1.298, allocations: 1.036 MB / 0.7462 GB, free: 1.148 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2436/1.542, allocations: 24.26 MB / 0.7699 GB, free: 259.5 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002026/1.544, allocations: 1.881 MB / 0.7717 GB, free: 258.7 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003305/1.547, allocations: 0.9517 MB / 0.7726 GB, free: 258.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001272/1.548, allocations: 1.005 MB / 0.7736 GB, free: 258 MB / 0.5762 GB Notification: Performance of SimCode: time 1.753e-06/1.548, allocations: 0 / 0.7736 GB, free: 258 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1514/1.7, allocations: 98.75 MB / 0.87 GB, free: 177.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.66/19.36, allocations: 19.78 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)