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.001886/0.001885, allocations: 102.9 kB / 17.58 MB, free: 5.418 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.001887/0.001888, allocations: 191.9 kB / 18.5 MB, free: 4.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.1/3.1, allocations: 205.1 MB / 224.4 MB, free: 12.29 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.00166/0.00166, allocations: 52.16 kB / 280.7 MB, free: 3.098 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1405/0.1422, allocations: 46.63 MB / 327.4 MB, free: 4.395 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.4693/0.6115, allocations: 90.12 MB / 417.5 MB, free: 5.66 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.06054/0.6722, allocations: 21.3 MB / 438.8 MB, free: 6.305 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006004/0.6783, allocations: 91.66 kB / 438.9 MB, free: 6.266 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006186/0.6846, allocations: 0.9359 MB / 439.8 MB, free: 5.453 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02295/0.7076, allocations: 3.715 MB / 443.5 MB, free: 2.246 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02961/0.7373, allocations: 5.638 MB / 449.2 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01842/0.7557, allocations: 7.042 MB / 456.2 MB, free: 5.539 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006942/0.7627, allocations: 1.848 MB / 458.1 MB, free: 3.676 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3403/1.103, allocations: 74.84 MB / 0.5204 GB, free: 7.973 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.5147/1.618, allocations: 31.91 MB / 0.5516 GB, free: 94.86 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002284/1.62, allocations: 249.7 kB / 0.5518 GB, free: 94.86 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03155/1.652, allocations: 6.076 MB / 0.5577 GB, free: 93.89 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004256/1.656, allocations: 1.087 MB / 0.5588 GB, free: 93.89 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007876/1.664, allocations: 1.502 MB / 0.5603 GB, free: 93.89 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02534/1.689, allocations: 5.452 MB / 0.5656 GB, free: 93.6 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.297e-05/1.69, allocations: 0 / 0.5656 GB, free: 93.6 MB / 446.1 MB Notification: Performance of FrontEnd: time 4.048e-06/1.69, allocations: 0 / 0.5656 GB, free: 93.6 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002676/1.69, allocations: 0 / 0.5656 GB, free: 93.6 MB / 446.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.02305/1.713, allocations: 3.494 MB / 0.569 GB, free: 92.13 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.55e-05/1.713, allocations: 11.44 kB / 0.569 GB, free: 92.13 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002659/1.716, allocations: 340.6 kB / 0.5693 GB, free: 92.07 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00367/1.719, allocations: 311.9 kB / 0.5696 GB, free: 91.93 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007245/1.727, allocations: 1.584 MB / 0.5712 GB, free: 91.45 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005556/1.727, allocations: 218.4 kB / 0.5714 GB, free: 91.38 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001573/1.729, allocations: 204 kB / 0.5716 GB, free: 91.38 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01309/1.742, allocations: 3.3 MB / 0.5748 GB, free: 91.02 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001939/1.742, allocations: 8.875 kB / 0.5748 GB, free: 91.01 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00109/1.743, allocations: 79.06 kB / 0.5749 GB, free: 91.01 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006871/1.744, allocations: 254.4 kB / 0.5751 GB, free: 91.01 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01244/1.757, allocations: 3.111 MB / 0.5782 GB, free: 90.99 MB / 446.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.04242/1.799, allocations: 13.86 MB / 0.5917 GB, free: 79.92 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008422/1.808, allocations: 2.218 MB / 0.5939 GB, free: 78.5 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003663/1.812, allocations: 1.347 MB / 0.5952 GB, free: 77.41 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01436/1.826, allocations: 5.857 MB / 0.6009 GB, free: 71.08 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.624e-05/1.826, allocations: 48.56 kB / 0.601 GB, free: 71.03 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001669/1.828, allocations: 185.9 kB / 0.6011 GB, free: 70.85 MB / 446.1 MB Notification: Performance of pre-optimization done (n=171): time 1.501e-05/1.828, allocations: 0 / 0.6011 GB, free: 70.85 MB / 446.1 MB Notification: Performance of matching and sorting (n=197): time 0.03759/1.865, allocations: 9.16 MB / 0.6101 GB, free: 61.62 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.29e-05/1.866, allocations: 69.41 kB / 0.6101 GB, free: 61.54 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005226/1.871, allocations: 1.837 MB / 0.6119 GB, free: 59.66 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008082/1.872, allocations: 61.7 kB / 0.612 GB, free: 59.59 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001141/1.873, allocations: 1.07 MB / 0.613 GB, free: 58.52 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001485/1.874, allocations: 0.6833 MB / 0.6137 GB, free: 57.84 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002349/1.877, allocations: 460.4 kB / 0.6141 GB, free: 57.39 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.191e-05/1.877, allocations: 309.1 kB / 0.6144 GB, free: 57.08 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003743/1.881, allocations: 1.229 MB / 0.6156 GB, free: 55.84 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004264/1.885, allocations: 1.808 MB / 0.6174 GB, free: 53.8 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008112/1.893, allocations: 3.156 MB / 0.6205 GB, free: 50.48 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.555e-05/1.893, allocations: 4 kB / 0.6205 GB, free: 50.48 MB / 446.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01456/1.908, allocations: 4.289 MB / 0.6247 GB, free: 46.28 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.229e-05/1.908, allocations: 12 kB / 0.6247 GB, free: 46.27 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.979e-05/1.908, allocations: 27.28 kB / 0.6247 GB, free: 46.24 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01806/1.926, allocations: 3.65 MB / 0.6283 GB, free: 42.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001561/1.928, allocations: 330.9 kB / 0.6286 GB, free: 42.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007799/1.935, allocations: 3.95 MB / 0.6325 GB, free: 38.35 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002866/1.938, allocations: 95.94 kB / 0.6325 GB, free: 38.26 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005416/1.939, allocations: 112 kB / 0.6327 GB, free: 38.15 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0037/1.943, allocations: 1.668 MB / 0.6343 GB, free: 36.47 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002669/1.945, allocations: 1.76 MB / 0.636 GB, free: 34.47 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006104/1.952, allocations: 3.044 MB / 0.639 GB, free: 31.25 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.044e-05/1.952, allocations: 8 kB / 0.639 GB, free: 31.24 MB / 446.1 MB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.008306/1.96, allocations: 4.036 MB / 0.6429 GB, free: 27.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.017e-05/1.96, allocations: 12 kB / 0.6429 GB, free: 27.29 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.852e-05/1.96, allocations: 16 kB / 0.6429 GB, free: 27.27 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009863/1.97, allocations: 2.757 MB / 0.6456 GB, free: 24.53 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001961/1.972, allocations: 377.9 kB / 0.646 GB, free: 24.18 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005922/1.978, allocations: 3.464 MB / 0.6494 GB, free: 20.72 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003162/1.981, allocations: 92.09 kB / 0.6495 GB, free: 20.63 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005158/1.982, allocations: 112 kB / 0.6496 GB, free: 20.52 MB / 446.1 MB 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.0009862/1.983, allocations: 317.4 kB / 0.6499 GB, free: 20.23 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008812/1.984, allocations: 229.2 kB / 0.6501 GB, free: 20 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008619/1.992, allocations: 3.957 MB / 0.654 GB, free: 16.05 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.368e-05/1.992, allocations: 27.98 kB / 0.654 GB, free: 16.02 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.439e-05/1.992, allocations: 0 / 0.654 GB, free: 16.02 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005829/1.998, allocations: 3.373 MB / 0.6573 GB, free: 12.57 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01555/2.014, allocations: 6.305 MB / 0.6634 GB, free: 6.238 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.381e-05/2.014, allocations: 4 kB / 0.6634 GB, free: 6.234 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002627/2.016, allocations: 315.9 kB / 0.6637 GB, free: 5.941 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006857/2.023, allocations: 1.165 MB / 0.6649 GB, free: 4.754 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007055/2.024, allocations: 75.95 kB / 0.665 GB, free: 4.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01601/2.04, allocations: 11.07 MB / 0.6758 GB, free: 8.887 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/2.04, allocations: 0 / 0.6758 GB, free: 8.887 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01972/2.06, allocations: 5.182 MB / 0.6808 GB, free: 3.684 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003407/2.063, allocations: 0.5954 MB / 0.6814 GB, free: 3.066 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001528/2.065, allocations: 59.92 kB / 0.6815 GB, free: 3.008 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003392/2.068, allocations: 79.41 kB / 0.6815 GB, free: 2.934 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001044/2.069, allocations: 165.8 kB / 0.6817 GB, free: 2.77 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006865/2.07, allocations: 83.95 kB / 0.6818 GB, free: 2.688 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00405/2.074, allocations: 1.253 MB / 0.683 GB, free: 1.414 MB / 462.1 MB Notification: Performance of sort global known variables: time 6.12e-07/2.074, allocations: 3.938 kB / 0.683 GB, free: 1.41 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01196/2.086, allocations: 1.738 MB / 0.6847 GB, free: 15.67 MB / 478.1 MB 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.02423/2.111, allocations: 6.633 MB / 0.6912 GB, free: 9.082 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.03103/2.142, allocations: 6.855 MB / 0.6979 GB, free: 2.352 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.357e-05/2.142, allocations: 0 / 0.6979 GB, free: 2.352 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007798/2.15, allocations: 2.239 MB / 0.7001 GB, free: 84 kB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008709/2.158, allocations: 1.048 MB / 0.7011 GB, free: 15.04 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09642/2.255, allocations: 26.73 MB / 0.7272 GB, free: 2.414 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004076/2.259, allocations: 1.883 MB / 0.729 GB, free: 0.4922 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.304/2.563, allocations: 0.9486 MB / 0.73 GB, free: 226.3 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004375/2.567, allocations: 1.008 MB / 0.7309 GB, free: 226.3 MB / 0.4981 GB Notification: Performance of SimCode: time 3.337e-06/2.567, allocations: 2.562 kB / 0.7309 GB, free: 226.3 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.266/2.833, allocations: 97.69 MB / 0.8263 GB, free: 150 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.93/26.76, allocations: 8 kB / 0.8263 GB, free: 150 MB / 0.4981 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)