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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_trunk_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_trunk_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00196/0.00196, allocations: 198.3 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.52/1.52, allocations: 225.6 MB / 234.8 MB, free: 3.289 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001012/0.001013, allocations: 98.39 kB / 286.7 MB, free: 5.289 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.097e-05/2.075e-05, allocations: 4 kB / 343.7 MB, free: 8.297 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1463/0.1464, allocations: 51.47 MB / 395.1 MB, free: 4.781 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.986/10.13, allocations: 3.161 GB / 3.546 GB, free: 52.03 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002171/10.13, allocations: 75.03 kB / 3.547 GB, free: 52 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 10.65/20.78, allocations: 3.084 GB / 6.63 GB, free: 34.3 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.255e-06/20.78, allocations: 3.875 kB / 6.63 GB, free: 34.3 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003634/20.78, allocations: 71.62 kB / 6.631 GB, free: 34.29 MB / 490.7 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.01541/20.8, allocations: 3.598 MB / 6.634 GB, free: 32.53 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/20.8, allocations: 14.78 kB / 6.634 GB, free: 32.53 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002717/20.8, allocations: 308.2 kB / 6.634 GB, free: 32.39 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007231/20.81, allocations: 2.02 MB / 6.636 GB, free: 31.92 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002708/20.81, allocations: 147.9 kB / 6.636 GB, free: 31.86 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001122/20.81, allocations: 116.5 kB / 6.637 GB, free: 31.86 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007411/20.82, allocations: 2.846 MB / 6.639 GB, free: 31.84 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009833/20.83, allocations: 3.029 MB / 6.642 GB, free: 31.36 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001163/20.83, allocations: 7.781 kB / 6.642 GB, free: 31.36 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009572/20.83, allocations: 5.281 kB / 6.642 GB, free: 31.36 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004032/20.83, allocations: 204.2 kB / 6.643 GB, free: 31.36 MB / 490.7 MB Warning: The model contains alias variables with conflicting start and/or 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.02442/20.85, allocations: 11.94 MB / 6.654 GB, free: 26.46 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004152/20.86, allocations: 2.16 MB / 6.656 GB, free: 26.31 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002207/20.86, allocations: 1.304 MB / 6.658 GB, free: 26.3 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009872/20.87, allocations: 5.859 MB / 6.663 GB, free: 23.48 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.466e-05/20.87, allocations: 60.3 kB / 6.663 GB, free: 23.44 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001315/20.87, allocations: 120.4 kB / 6.663 GB, free: 23.38 MB / 490.7 MB Notification: Performance of pre-optimization done (n=172): time 7.494e-06/20.87, allocations: 5.094 kB / 6.663 GB, free: 23.38 MB / 490.7 MB Notification: Performance of matching and sorting (n=198): time 0.02724/20.9, allocations: 8.565 MB / 6.672 GB, free: 22.49 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.241e-05/20.9, allocations: 125.3 kB / 6.672 GB, free: 22.36 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002401/20.9, allocations: 1.206 MB / 6.673 GB, free: 22.19 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002837/20.9, allocations: 25.7 kB / 6.673 GB, free: 22.16 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006939/20.9, allocations: 1.045 MB / 6.674 GB, free: 21.68 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006257/20.9, allocations: 0.6496 MB / 6.675 GB, free: 21.25 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000223/20.9, allocations: 1.406 kB / 6.675 GB, free: 21.25 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001555/20.9, allocations: 405 kB / 6.675 GB, free: 20.94 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001662/20.9, allocations: 1.154 MB / 6.676 GB, free: 20.93 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001855/20.9, allocations: 1.668 MB / 6.678 GB, free: 20.38 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007682/20.91, allocations: 2.597 MB / 6.68 GB, free: 20.36 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.08e-05/20.91, allocations: 3.781 kB / 6.68 GB, free: 20.36 MB / 490.7 MB Notification: Performance of matching and sorting (n=293) (initialization): time 0.01347/20.93, allocations: 5.114 MB / 6.685 GB, free: 20.16 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001124/20.93, allocations: 5.791 MB / 6.691 GB, free: 14.27 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.74e-05/20.93, allocations: 13.59 kB / 6.691 GB, free: 14.27 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008363/20.93, allocations: 2.577 MB / 6.694 GB, free: 14.22 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001433/20.94, allocations: 317.6 kB / 6.694 GB, free: 14.22 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008329/20.94, allocations: 4.55 MB / 6.698 GB, free: 13.62 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002758/20.95, allocations: 150.8 kB / 6.699 GB, free: 13.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004658/20.95, allocations: 110.7 kB / 6.699 GB, free: 13.6 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.303e-05/20.95, allocations: 3.875 kB / 6.699 GB, free: 13.6 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01113/20.96, allocations: 4.531 MB / 6.703 GB, free: 13.54 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.216e-05/20.96, allocations: 19.06 kB / 6.703 GB, free: 13.54 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007097/20.97, allocations: 2.28 MB / 6.705 GB, free: 13.5 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001595/20.97, allocations: 365.5 kB / 6.706 GB, free: 13.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006201/20.97, allocations: 3.82 MB / 6.709 GB, free: 12.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002452/20.98, allocations: 143.6 kB / 6.71 GB, free: 12.89 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004354/20.98, allocations: 111.3 kB / 6.71 GB, free: 12.89 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * Number of states: 0 () * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 168 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {18 107} Notification: Performance of prepare postOptimizeDAE: time 0.0007882/20.98, allocations: 146.5 kB / 6.71 GB, free: 12.77 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006481/20.98, allocations: 205.1 kB / 6.71 GB, free: 12.67 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009665/20.99, allocations: 4.075 MB / 6.714 GB, free: 12.44 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.657e-05/20.99, allocations: 28.52 kB / 6.714 GB, free: 12.44 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.767e-05/20.99, allocations: 5.531 kB / 6.714 GB, free: 12.44 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007272/21, allocations: 3.541 MB / 6.717 GB, free: 11.97 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01314/21.01, allocations: 6.241 MB / 6.724 GB, free: 11.54 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.165e-05/21.01, allocations: 1.062 kB / 6.724 GB, free: 11.54 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001456/21.01, allocations: 325.2 kB / 6.724 GB, free: 11.54 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002909/21.01, allocations: 1.013 MB / 6.725 GB, free: 11.46 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002424/21.01, allocations: 46.73 kB / 6.725 GB, free: 11.46 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009506/21.02, allocations: 10.35 MB / 6.735 GB, free: 19.83 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/21.02, allocations: 0 / 6.735 GB, free: 19.83 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01226/21.04, allocations: 5.287 MB / 6.74 GB, free: 18 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001823/21.04, allocations: 0.5911 MB / 6.741 GB, free: 17.67 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008278/21.04, allocations: 14.91 kB / 6.741 GB, free: 17.66 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002249/21.04, allocations: 118.2 kB / 6.741 GB, free: 17.65 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004317/21.04, allocations: 176.2 kB / 6.741 GB, free: 17.62 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002897/21.04, allocations: 81.11 kB / 6.741 GB, free: 17.61 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001701/21.04, allocations: 0.8799 MB / 6.742 GB, free: 17.23 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.6e-07/21.04, allocations: 3.719 kB / 6.742 GB, free: 17.23 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.009114/21.05, allocations: 1.811 MB / 6.744 GB, free: 16.93 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (tank.medium.T,tank.level,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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (183): * Single equations (assignments): 169 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 6,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 3 {1 9,2 8,5 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.004817/21.06, allocations: 1.374 MB / 6.745 GB, free: 16.53 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.00985/21.07, allocations: 4.739 MB / 6.75 GB, free: 15.02 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.072e-05/21.07, allocations: 3.844 kB / 6.75 GB, free: 15.02 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004036/21.07, allocations: 2.108 MB / 6.752 GB, free: 14 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005232/21.08, allocations: 0.8265 MB / 6.753 GB, free: 13.86 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01026/21.09, allocations: 4.517 MB / 6.757 GB, free: 12.36 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002272/21.09, allocations: 1.929 MB / 6.759 GB, free: 11.5 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.004896/21.09, allocations: 1.025 MB / 6.76 GB, free: 11.44 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008347/21.09, allocations: 157.8 kB / 6.76 GB, free: 11.42 MB / 0.4948 GB Notification: Performance of SimCode: time 6.11e-07/21.09, allocations: 0 / 6.76 GB, free: 11.42 MB / 0.4948 GB Notification: Performance of Templates: time 0.3914/21.49, allocations: 68.14 MB / 6.827 GB, free: 42.69 MB / 0.4948 GB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.makefile (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 & ./Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)