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.001311/0.001311, allocations: 113.4 kB / 17.05 MB, free: 6.086 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.001357/0.001358, allocations: 192 kB / 17.99 MB, free: 5.184 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.475/1.475, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001486/0.001486, allocations: 51.92 kB / 350.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.271/0.2725, allocations: 49.43 MB / 400.2 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.1144/0.387, allocations: 90.11 MB / 490.3 MB, free: 14.43 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03883/0.4258, allocations: 21.33 MB / 0.4997 GB, free: 9.047 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002793/0.4287, allocations: 87.44 kB / 0.4997 GB, free: 8.961 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003502/0.4322, allocations: 0.9395 MB / 0.5007 GB, free: 8.016 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01239/0.4447, allocations: 3.717 MB / 0.5043 GB, free: 4.281 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01585/0.4606, allocations: 5.661 MB / 0.5098 GB, free: 14.62 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.01/0.4706, allocations: 7.046 MB / 0.5167 GB, free: 7.555 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003804/0.4744, allocations: 1.833 MB / 0.5185 GB, free: 5.695 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4243/0.8988, allocations: 74.89 MB / 0.5916 GB, free: 7.633 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.07104/0.9698, allocations: 31.92 MB / 0.6228 GB, free: 14.01 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001377/0.9713, allocations: 248 kB / 0.623 GB, free: 13.77 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01492/0.9862, allocations: 6.089 MB / 0.629 GB, free: 8.996 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002011/0.9882, allocations: 1.083 MB / 0.63 GB, free: 8.344 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003183/0.9914, allocations: 1.502 MB / 0.6315 GB, free: 7.562 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01172/1.003, allocations: 5.549 MB / 0.6369 GB, free: 3.234 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.83e-06/1.003, allocations: 3.938 kB / 0.6369 GB, free: 3.23 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.703e-06/1.003, allocations: 0 / 0.6369 GB, free: 3.23 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.000108/1.003, allocations: 0 / 0.6369 GB, free: 3.23 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.01075/1.014, allocations: 3.596 MB / 0.6404 GB, free: 8 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.434e-05/1.014, allocations: 8.031 kB / 0.6404 GB, free: 0 / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008361/1.015, allocations: 339.4 kB / 0.6408 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001198/1.016, allocations: 325.5 kB / 0.6411 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003373/1.02, allocations: 1.689 MB / 0.6427 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002208/1.02, allocations: 224.1 kB / 0.6429 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004538/1.02, allocations: 194.1 kB / 0.6431 GB, free: 13.78 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006709/1.027, allocations: 3.314 MB / 0.6464 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.564e-05/1.027, allocations: 7.125 kB / 0.6464 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002679/1.027, allocations: 83.95 kB / 0.6464 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003423/1.028, allocations: 251.5 kB / 0.6467 GB, free: 10.06 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006908/1.035, allocations: 3.118 MB / 0.6497 GB, free: 6.969 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.02462/1.059, allocations: 13.83 MB / 0.6632 GB, free: 8.469 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004721/1.064, allocations: 2.226 MB / 0.6654 GB, free: 6.25 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002602/1.067, allocations: 1.367 MB / 0.6667 GB, free: 4.883 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01012/1.077, allocations: 5.86 MB / 0.6725 GB, free: 14.55 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.618e-05/1.077, allocations: 55.19 kB / 0.6725 GB, free: 14.49 MB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008485/1.078, allocations: 170.6 kB / 0.6727 GB, free: 14.32 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=171): time 5.571e-06/1.078, allocations: 0 / 0.6727 GB, free: 14.32 MB / 0.5294 GB Notification: Performance of matching and sorting (n=197): time 0.02472/1.103, allocations: 9.197 MB / 0.6817 GB, free: 5.07 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.654e-05/1.103, allocations: 73.41 kB / 0.6817 GB, free: 4.988 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002847/1.106, allocations: 1.845 MB / 0.6835 GB, free: 3.102 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0004091/1.106, allocations: 61.7 kB / 0.6836 GB, free: 3.035 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009533/1.107, allocations: 1.086 MB / 0.6846 GB, free: 1.945 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001011/1.108, allocations: 0.7165 MB / 0.6853 GB, free: 1.238 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008592/1.109, allocations: 464.5 kB / 0.6858 GB, free: 0.7773 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001268/1.109, allocations: 301.1 kB / 0.6861 GB, free: 492 kB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002335/1.111, allocations: 1.235 MB / 0.6873 GB, free: 15.24 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002826/1.114, allocations: 1.806 MB / 0.689 GB, free: 13.2 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005346/1.12, allocations: 3.159 MB / 0.6921 GB, free: 9.871 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.471e-05/1.12, allocations: 7.844 kB / 0.6921 GB, free: 9.867 MB / 0.545 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.008697/1.128, allocations: 4.304 MB / 0.6963 GB, free: 5.656 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.625e-05/1.128, allocations: 12 kB / 0.6964 GB, free: 5.645 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.1e-05/1.128, allocations: 20.12 kB / 0.6964 GB, free: 5.625 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01456/1.143, allocations: 3.634 MB / 0.6999 GB, free: 1.996 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00141/1.144, allocations: 335.8 kB / 0.7002 GB, free: 1.691 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007876/1.152, allocations: 3.95 MB / 0.7041 GB, free: 13.75 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002256/1.155, allocations: 87.95 kB / 0.7042 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004317/1.155, allocations: 116 kB / 0.7043 GB, free: 13.55 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003405/1.158, allocations: 1.676 MB / 0.7059 GB, free: 11.87 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002874/1.161, allocations: 1.749 MB / 0.7076 GB, free: 9.875 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.005282/1.167, allocations: 3.05 MB / 0.7106 GB, free: 6.648 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.759e-05/1.167, allocations: 7.938 kB / 0.7106 GB, free: 6.641 MB / 0.5606 GB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.008322/1.175, allocations: 4.042 MB / 0.7146 GB, free: 2.695 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.342e-05/1.175, allocations: 16.94 kB / 0.7146 GB, free: 2.68 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.167e-05/1.175, allocations: 20 kB / 0.7146 GB, free: 2.66 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01018/1.185, allocations: 2.74 MB / 0.7173 GB, free: 15.93 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001676/1.187, allocations: 379.3 kB / 0.7176 GB, free: 15.58 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006753/1.194, allocations: 3.476 MB / 0.721 GB, free: 12.11 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002282/1.196, allocations: 91.94 kB / 0.7211 GB, free: 12.02 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004538/1.197, allocations: 108 kB / 0.7212 GB, free: 11.92 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.000804/1.197, allocations: 311.5 kB / 0.7215 GB, free: 11.63 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000743/1.198, allocations: 238.5 kB / 0.7218 GB, free: 11.39 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009238/1.207, allocations: 3.947 MB / 0.7256 GB, free: 7.453 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.876e-05/1.208, allocations: 27.98 kB / 0.7256 GB, free: 7.426 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.597e-05/1.208, allocations: 4 kB / 0.7256 GB, free: 7.422 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007345/1.215, allocations: 3.374 MB / 0.7289 GB, free: 3.969 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01373/1.229, allocations: 6.295 MB / 0.7351 GB, free: 13.65 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.437e-05/1.229, allocations: 0 / 0.7351 GB, free: 13.65 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001566/1.23, allocations: 323.7 kB / 0.7354 GB, free: 13.35 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004515/1.235, allocations: 1.166 MB / 0.7365 GB, free: 12.17 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004017/1.235, allocations: 75.95 kB / 0.7366 GB, free: 12.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01144/1.247, allocations: 11.07 MB / 0.7474 GB, free: 324 kB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/1.247, allocations: 0 / 0.7474 GB, free: 324 kB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2147/1.462, allocations: 5.19 MB / 0.7525 GB, free: 273.8 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001233/1.463, allocations: 0.614 MB / 0.7531 GB, free: 273.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004281/1.463, allocations: 50.19 kB / 0.7531 GB, free: 273.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001336/1.465, allocations: 73.62 kB / 0.7532 GB, free: 273.5 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003693/1.465, allocations: 174.6 kB / 0.7534 GB, free: 273.5 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001942/1.465, allocations: 77.48 kB / 0.7534 GB, free: 273.5 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001502/1.467, allocations: 1.261 MB / 0.7547 GB, free: 273 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.5e-07/1.467, allocations: 0 / 0.7547 GB, free: 273 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.004074/1.471, allocations: 1.745 MB / 0.7564 GB, free: 272.9 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.00979/1.481, allocations: 6.684 MB / 0.7629 GB, free: 270.4 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01008/1.491, allocations: 5.121 MB / 0.7679 GB, free: 267.1 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 6.973e-06/1.491, allocations: 0 / 0.7679 GB, free: 267.1 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.003703/1.494, allocations: 2.242 MB / 0.7701 GB, free: 264.8 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004959/1.499, allocations: 1.055 MB / 0.7711 GB, free: 263.8 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03411/1.534, allocations: 24.26 MB / 0.7948 GB, free: 239.4 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001042/1.535, allocations: 1.883 MB / 0.7966 GB, free: 237.5 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.002535/1.537, allocations: 0.9526 MB / 0.7976 GB, free: 236.5 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001188/1.538, allocations: 1.003 MB / 0.7986 GB, free: 235.5 MB / 0.5919 GB Notification: Performance of SimCode: time 8.12e-07/1.538, allocations: 0 / 0.7986 GB, free: 235.5 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1396/1.678, allocations: 98.83 MB / 0.8951 GB, free: 137.1 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.07/19.75, allocations: 6.5 kB / 0.8951 GB, free: 137.1 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)