Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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: translateModel(Modelica.Fluid.Examples.HeatingSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heater.mediums.1..h|heater.mediums.1..p|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|radiator.mediums.1..h|radiator.mediums.1..p|tank.level|tank.medium.h",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.HeatingSystem") translateModel(Modelica.Fluid.Examples.HeatingSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heater.mediums.1..h|heater.mediums.1..p|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|radiator.mediums.1..h|radiator.mediums.1..p|tank.level|tank.medium.h",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001365/0.001365, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001346/0.001345, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.419/1.419, allocations: 227.7 MB / 247.7 MB, free: 10.29 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002502/0.002502, allocations: 66.36 kB / 307.9 MB, free: 0.5195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1125, allocations: 50.54 MB / 358.4 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.29/0.4026, allocations: 90.43 MB / 448.8 MB, free: 0.582 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.037/0.4396, allocations: 21.33 MB / 470.2 MB, free: 11.2 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003422/0.4431, allocations: 83.5 kB / 470.3 MB, free: 11.12 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003569/0.4468, allocations: 0.9512 MB / 471.2 MB, free: 10.16 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01179/0.4586, allocations: 3.736 MB / 475 MB, free: 6.406 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01525/0.4739, allocations: 5.671 MB / 480.6 MB, free: 0.7422 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01128/0.4852, allocations: 7.07 MB / 487.7 MB, free: 9.656 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004191/0.4894, allocations: 1.841 MB / 489.5 MB, free: 7.797 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.412/0.9014, allocations: 74.94 MB / 0.5512 GB, free: 49.04 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.07038/0.9718, allocations: 31.95 MB / 0.5824 GB, free: 38.62 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001538/0.9734, allocations: 248 kB / 0.5827 GB, free: 38.38 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01446/0.9879, allocations: 6.122 MB / 0.5887 GB, free: 33.71 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002169/0.9901, allocations: 1.091 MB / 0.5897 GB, free: 33.05 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003596/0.9937, allocations: 1.491 MB / 0.5912 GB, free: 32.3 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01083/1.005, allocations: 5.476 MB / 0.5965 GB, free: 28.21 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/1.005, allocations: 0 / 0.5965 GB, free: 28.21 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.455e-06/1.005, allocations: 0 / 0.5965 GB, free: 28.21 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001657/1.005, allocations: 0 / 0.5965 GB, free: 28.21 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.009691/1.014, allocations: 3.501 MB / 0.5999 GB, free: 25.13 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/1.015, allocations: 8.031 kB / 0.6 GB, free: 25.12 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009737/1.016, allocations: 316.5 kB / 0.6003 GB, free: 24.81 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002334/1.018, allocations: 1.573 MB / 0.6018 GB, free: 23.57 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000145/1.018, allocations: 221.3 kB / 0.602 GB, free: 23.42 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002903/1.018, allocations: 202.8 kB / 0.6022 GB, free: 23.29 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004762/1.023, allocations: 3.291 MB / 0.6054 GB, free: 20.86 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.515e-05/1.023, allocations: 5.156 kB / 0.6054 GB, free: 20.86 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002281/1.023, allocations: 82.69 kB / 0.6055 GB, free: 20.84 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00025/1.024, allocations: 260.3 kB / 0.6057 GB, free: 20.62 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004643/1.028, allocations: 3.106 MB / 0.6088 GB, free: 18.55 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.01646/1.045, allocations: 13.84 MB / 0.6223 GB, free: 5.348 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00357/1.048, allocations: 2.205 MB / 0.6244 GB, free: 3.156 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001803/1.05, allocations: 1.359 MB / 0.6258 GB, free: 1.809 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009198/1.059, allocations: 5.854 MB / 0.6315 GB, free: 11.48 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.276e-05/1.06, allocations: 60.02 kB / 0.6315 GB, free: 11.41 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007873/1.06, allocations: 169.9 kB / 0.6317 GB, free: 11.25 MB / 462.1 MB Notification: Performance of pre-optimization done (n=171): time 5.1e-06/1.06, allocations: 4 kB / 0.6317 GB, free: 11.24 MB / 462.1 MB Notification: Performance of matching and sorting (n=197): time 0.0261/1.086, allocations: 9.156 MB / 0.6406 GB, free: 2.016 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.698e-05/1.087, allocations: 77.41 kB / 0.6407 GB, free: 1.926 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00322/1.09, allocations: 1.841 MB / 0.6425 GB, free: 44 kB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005344/1.09, allocations: 61.64 kB / 0.6426 GB, free: 15.98 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001098/1.092, allocations: 1.058 MB / 0.6436 GB, free: 14.92 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001194/1.093, allocations: 0.687 MB / 0.6443 GB, free: 14.24 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008304/1.094, allocations: 448.4 kB / 0.6447 GB, free: 13.79 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001397/1.094, allocations: 309.1 kB / 0.645 GB, free: 13.49 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002433/1.096, allocations: 1.24 MB / 0.6462 GB, free: 12.24 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002893/1.099, allocations: 1.8 MB / 0.648 GB, free: 10.21 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005378/1.104, allocations: 3.161 MB / 0.6511 GB, free: 6.875 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.484e-05/1.105, allocations: 4 kB / 0.6511 GB, free: 6.871 MB / 478.1 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.008674/1.113, allocations: 4.294 MB / 0.6553 GB, free: 2.668 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.067e-05/1.113, allocations: 12 kB / 0.6553 GB, free: 2.656 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.598e-05/1.113, allocations: 20.88 kB / 0.6553 GB, free: 2.637 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01484/1.128, allocations: 3.646 MB / 0.6588 GB, free: 15 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001518/1.13, allocations: 333 kB / 0.6592 GB, free: 14.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007531/1.137, allocations: 3.94 MB / 0.663 GB, free: 10.76 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00229/1.14, allocations: 103.9 kB / 0.6631 GB, free: 10.66 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003197/1.14, allocations: 112 kB / 0.6632 GB, free: 10.55 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003346/1.143, allocations: 1.679 MB / 0.6649 GB, free: 8.863 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002662/1.146, allocations: 1.752 MB / 0.6666 GB, free: 6.867 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004922/1.151, allocations: 3.047 MB / 0.6695 GB, free: 3.648 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.213e-05/1.151, allocations: 8 kB / 0.6696 GB, free: 3.641 MB / 494.1 MB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.007905/1.159, allocations: 4.025 MB / 0.6735 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.496e-05/1.159, allocations: 12 kB / 0.6735 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.958e-05/1.159, allocations: 17.12 kB / 0.6735 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01013/1.169, allocations: 2.765 MB / 0.6762 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00175/1.171, allocations: 375.9 kB / 0.6766 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006128/1.177, allocations: 3.471 MB / 0.68 GB, free: 9.125 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002059/1.179, allocations: 95.95 kB / 0.6801 GB, free: 9.031 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002565/1.179, allocations: 108 kB / 0.6802 GB, free: 8.926 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.0006482/1.18, allocations: 318.3 kB / 0.6805 GB, free: 8.629 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005069/1.181, allocations: 225.3 kB / 0.6807 GB, free: 8.406 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00822/1.189, allocations: 3.959 MB / 0.6845 GB, free: 4.449 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.87e-05/1.189, allocations: 24 kB / 0.6846 GB, free: 4.426 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.275e-05/1.189, allocations: 0 / 0.6846 GB, free: 4.426 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006159/1.195, allocations: 3.373 MB / 0.6879 GB, free: 0.9805 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01166/1.207, allocations: 6.298 MB / 0.694 GB, free: 10.65 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.028e-05/1.207, allocations: 0 / 0.694 GB, free: 10.65 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001448/1.208, allocations: 320 kB / 0.6943 GB, free: 10.36 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004159/1.212, allocations: 1.165 MB / 0.6954 GB, free: 9.172 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000332/1.213, allocations: 71.95 kB / 0.6955 GB, free: 9.102 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01154/1.224, allocations: 11.07 MB / 0.7063 GB, free: 13.32 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/1.224, allocations: 0 / 0.7063 GB, free: 13.32 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01033/1.235, allocations: 5.186 MB / 0.7114 GB, free: 8.109 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001612/1.236, allocations: 0.5954 MB / 0.712 GB, free: 7.492 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004581/1.237, allocations: 51.98 kB / 0.712 GB, free: 7.441 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001391/1.238, allocations: 75.94 kB / 0.7121 GB, free: 7.367 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004707/1.239, allocations: 165.8 kB / 0.7123 GB, free: 7.203 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002199/1.239, allocations: 87.89 kB / 0.7123 GB, free: 7.117 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002086/1.241, allocations: 1.257 MB / 0.7136 GB, free: 5.84 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.71e-07/1.241, allocations: 0 / 0.7136 GB, free: 5.84 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005179/1.246, allocations: 1.738 MB / 0.7153 GB, free: 4.102 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.00258/1.249, allocations: 1.003 MB / 0.7162 GB, free: 3.172 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.1785/1.427, allocations: 6.854 MB / 0.7229 GB, free: 242.2 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.606e-06/1.427, allocations: 0 / 0.7229 GB, free: 242.2 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004163/1.432, allocations: 2.228 MB / 0.7251 GB, free: 241.6 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005008/1.437, allocations: 1.07 MB / 0.7262 GB, free: 241.4 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01073/1.447, allocations: 5.788 MB / 0.7318 GB, free: 239.1 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001668/1.449, allocations: 1.847 MB / 0.7336 GB, free: 238.3 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009638/1.45, allocations: 206.2 kB / 0.7338 GB, free: 238.2 MB / 0.5294 GB Notification: Performance of SimCode: time 1.122e-06/1.45, allocations: 1.438 kB / 0.7338 GB, free: 238.2 MB / 0.5294 GB Notification: Performance of Templates: time 0.08453/1.535, allocations: 89.05 MB / 0.8208 GB, free: 160.5 MB / 0.5294 GB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.HeatingSystem.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.HeatingSystem.sim & ./Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.HeatingSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)