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.001644/0.001644, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002047/0.002047, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.419/1.419, allocations: 227.4 MB / 246.8 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001436/0.001437, allocations: 60.02 kB / 307 MB, free: 0.5352 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1039, allocations: 50.53 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.2811/0.3851, allocations: 90.43 MB / 448 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.04553/0.4306, allocations: 21.33 MB / 469.3 MB, free: 11.34 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00553/0.4362, allocations: 91.44 kB / 469.4 MB, free: 11.25 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004715/0.441, allocations: 0.9395 MB / 470.4 MB, free: 10.3 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01503/0.4561, allocations: 3.736 MB / 474.1 MB, free: 6.551 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02175/0.4779, allocations: 5.672 MB / 479.8 MB, free: 0.8828 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01138/0.4893, allocations: 7.077 MB / 486.8 MB, free: 9.793 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004172/0.4935, allocations: 1.851 MB / 488.7 MB, free: 7.922 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4367/0.9303, allocations: 74.94 MB / 0.5504 GB, free: 49.29 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0655/0.9959, allocations: 31.95 MB / 0.5816 GB, free: 38.91 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008424/0.9967, allocations: 252 kB / 0.5819 GB, free: 38.66 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01221/1.009, allocations: 6.114 MB / 0.5878 GB, free: 33.97 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001453/1.01, allocations: 1.09 MB / 0.5889 GB, free: 33.32 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002156/1.013, allocations: 1.492 MB / 0.5903 GB, free: 32.56 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008852/1.021, allocations: 5.479 MB / 0.5957 GB, free: 28.47 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/1.022, allocations: 0 / 0.5957 GB, free: 28.47 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.322e-06/1.022, allocations: 0 / 0.5957 GB, free: 28.47 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.283e-05/1.022, allocations: 0 / 0.5957 GB, free: 28.47 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.008199/1.03, allocations: 3.5 MB / 0.5991 GB, free: 25.39 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.728e-05/1.03, allocations: 8.031 kB / 0.5991 GB, free: 25.38 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004866/1.03, allocations: 352.7 kB / 0.5995 GB, free: 25.16 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009846/1.031, allocations: 308.5 kB / 0.5998 GB, free: 24.86 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003422/1.035, allocations: 1.574 MB / 0.6013 GB, free: 23.62 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002327/1.035, allocations: 219.2 kB / 0.6015 GB, free: 23.46 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005263/1.036, allocations: 198.8 kB / 0.6017 GB, free: 23.33 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005347/1.041, allocations: 3.31 MB / 0.6049 GB, free: 20.89 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.91e-05/1.041, allocations: 7.281 kB / 0.6049 GB, free: 20.89 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002394/1.041, allocations: 79.34 kB / 0.605 GB, free: 20.87 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000255/1.042, allocations: 254.1 kB / 0.6052 GB, free: 20.66 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004567/1.046, allocations: 3.117 MB / 0.6083 GB, free: 18.58 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.01561/1.062, allocations: 13.85 MB / 0.6218 GB, free: 5.234 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003529/1.065, allocations: 2.226 MB / 0.624 GB, free: 3.023 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001759/1.067, allocations: 1.35 MB / 0.6253 GB, free: 1.68 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008503/1.076, allocations: 5.851 MB / 0.631 GB, free: 11.36 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.15e-05/1.076, allocations: 56.56 kB / 0.6311 GB, free: 11.29 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007853/1.076, allocations: 169.9 kB / 0.6312 GB, free: 11.12 MB / 462.1 MB Notification: Performance of pre-optimization done (n=171): time 4.248e-06/1.076, allocations: 0 / 0.6312 GB, free: 11.12 MB / 462.1 MB Notification: Performance of matching and sorting (n=197): time 0.02372/1.1, allocations: 9.161 MB / 0.6402 GB, free: 1.895 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.245e-05/1.1, allocations: 73.41 kB / 0.6403 GB, free: 1.809 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002687/1.103, allocations: 1.845 MB / 0.6421 GB, free: 15.92 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003181/1.103, allocations: 61.7 kB / 0.6421 GB, free: 15.86 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000784/1.104, allocations: 1.063 MB / 0.6432 GB, free: 14.79 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007403/1.105, allocations: 0.6792 MB / 0.6438 GB, free: 14.11 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007875/1.106, allocations: 463.1 kB / 0.6443 GB, free: 13.66 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001222/1.106, allocations: 301.1 kB / 0.6445 GB, free: 13.36 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001975/1.108, allocations: 1.237 MB / 0.6458 GB, free: 12.11 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002267/1.11, allocations: 1.8 MB / 0.6475 GB, free: 10.08 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004341/1.114, allocations: 3.161 MB / 0.6506 GB, free: 6.746 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-05/1.114, allocations: 4.688 kB / 0.6506 GB, free: 6.742 MB / 478.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.007472/1.122, allocations: 4.296 MB / 0.6548 GB, free: 2.539 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.644e-05/1.122, allocations: 12 kB / 0.6548 GB, free: 2.527 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.83e-05/1.122, allocations: 20.12 kB / 0.6548 GB, free: 2.508 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01386/1.136, allocations: 3.646 MB / 0.6584 GB, free: 14.87 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001428/1.137, allocations: 326.3 kB / 0.6587 GB, free: 14.57 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006978/1.144, allocations: 3.952 MB / 0.6626 GB, free: 10.62 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002456/1.147, allocations: 97.08 kB / 0.6627 GB, free: 10.53 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003241/1.147, allocations: 122.8 kB / 0.6628 GB, free: 10.41 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003477/1.151, allocations: 1.672 MB / 0.6644 GB, free: 8.734 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00225/1.153, allocations: 1.754 MB / 0.6661 GB, free: 6.738 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00422/1.157, allocations: 3.046 MB / 0.6691 GB, free: 3.52 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.555e-05/1.157, allocations: 8 kB / 0.6691 GB, free: 3.512 MB / 494.1 MB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.006496/1.164, allocations: 4.028 MB / 0.673 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.333e-05/1.164, allocations: 16.94 kB / 0.673 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.651e-05/1.164, allocations: 16 kB / 0.6731 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009513/1.173, allocations: 2.76 MB / 0.6758 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001519/1.175, allocations: 382.6 kB / 0.6761 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005422/1.18, allocations: 3.461 MB / 0.6795 GB, free: 8.992 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001972/1.182, allocations: 91.94 kB / 0.6796 GB, free: 8.902 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003189/1.183, allocations: 118.5 kB / 0.6797 GB, free: 8.789 MB / 0.4981 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.0007348/1.183, allocations: 322.2 kB / 0.68 GB, free: 8.488 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000663/1.184, allocations: 221.4 kB / 0.6802 GB, free: 8.27 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00798/1.192, allocations: 3.947 MB / 0.6841 GB, free: 4.32 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.425e-05/1.192, allocations: 27.98 kB / 0.6841 GB, free: 4.293 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.133e-05/1.192, allocations: 3.938 kB / 0.6841 GB, free: 4.289 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006107/1.198, allocations: 3.381 MB / 0.6874 GB, free: 0.8359 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01195/1.21, allocations: 6.301 MB / 0.6936 GB, free: 10.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.457e-06/1.21, allocations: 0 / 0.6936 GB, free: 10.5 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001404/1.212, allocations: 314.1 kB / 0.6939 GB, free: 10.21 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004043/1.216, allocations: 1.165 MB / 0.695 GB, free: 9.027 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003527/1.216, allocations: 75.89 kB / 0.6951 GB, free: 8.953 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0107/1.227, allocations: 11.07 MB / 0.7059 GB, free: 13.17 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/1.227, allocations: 0 / 0.7059 GB, free: 13.17 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009753/1.237, allocations: 5.183 MB / 0.7109 GB, free: 7.969 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001424/1.238, allocations: 0.5956 MB / 0.7115 GB, free: 7.352 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006011/1.239, allocations: 51.98 kB / 0.7116 GB, free: 7.301 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001685/1.24, allocations: 79.88 kB / 0.7117 GB, free: 7.223 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004326/1.241, allocations: 173.7 kB / 0.7118 GB, free: 7.051 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002119/1.241, allocations: 75.95 kB / 0.7119 GB, free: 6.977 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002019/1.243, allocations: 1.257 MB / 0.7131 GB, free: 5.699 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.1e-07/1.243, allocations: 0 / 0.7131 GB, free: 5.699 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005343/1.248, allocations: 1.745 MB / 0.7148 GB, free: 3.953 MB / 0.5294 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.1854/1.434, allocations: 6.637 MB / 0.7213 GB, free: 241.2 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01659/1.45, allocations: 6.859 MB / 0.728 GB, free: 240.5 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/1.451, allocations: 0 / 0.728 GB, free: 240.5 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004407/1.455, allocations: 2.236 MB / 0.7302 GB, free: 239.4 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005034/1.46, allocations: 1.062 MB / 0.7312 GB, free: 239.1 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03298/1.493, allocations: 26.75 MB / 0.7573 GB, free: 222.7 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00108/1.494, allocations: 1.871 MB / 0.7592 GB, free: 220.8 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003101/1.497, allocations: 0.9487 MB / 0.7601 GB, free: 219.8 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001044/1.498, allocations: 1.011 MB / 0.7611 GB, free: 218.8 MB / 0.5294 GB Notification: Performance of SimCode: time 8.52e-07/1.498, allocations: 0 / 0.7611 GB, free: 218.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1727/1.671, allocations: 97.82 MB / 0.8566 GB, free: 121.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.6/16.27, allocations: 6.797 kB / 0.8566 GB, free: 121.3 MB / 0.5294 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)