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.001197/0.001197, allocations: 197.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.211/1.211, allocations: 227.2 MB / 245 MB, free: 7.594 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008387/0.0008385, allocations: 102.4 kB / 297.3 MB, free: 6.184 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002351/0.0002352, allocations: 4 kB / 357.9 MB, free: 9.551 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2169/0.2171, allocations: 51.48 MB / 409.4 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.221/6.438, allocations: 3.161 GB / 3.561 GB, free: 66.43 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002319/6.438, allocations: 87.11 kB / 3.561 GB, free: 66.43 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.341/14.78, allocations: 3.117 GB / 6.678 GB, free: 51.72 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.685e-06/14.78, allocations: 2.625 kB / 6.678 GB, free: 51.72 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003722/14.78, allocations: 72.44 kB / 6.678 GB, free: 51.71 MB / 0.4948 GB 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.01839/14.8, allocations: 3.921 MB / 6.682 GB, free: 49.74 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/14.8, allocations: 7.156 kB / 6.682 GB, free: 49.74 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002282/14.8, allocations: 307.4 kB / 6.682 GB, free: 49.6 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007874/14.81, allocations: 2.033 MB / 6.684 GB, free: 49.14 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003887/14.81, allocations: 230.4 kB / 6.684 GB, free: 49.07 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001441/14.81, allocations: 197.8 kB / 6.684 GB, free: 49.07 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01009/14.82, allocations: 3.352 MB / 6.688 GB, free: 48.58 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001515/14.82, allocations: 10.22 kB / 6.688 GB, free: 48.57 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009573/14.82, allocations: 85.78 kB / 6.688 GB, free: 48.57 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003996/14.82, allocations: 201.4 kB / 6.688 GB, free: 48.57 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009676/14.83, allocations: 3.102 MB / 6.691 GB, free: 48.55 MB / 0.4948 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.02568/14.86, allocations: 12.42 MB / 6.703 GB, free: 43.52 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003897/14.86, allocations: 2.248 MB / 6.705 GB, free: 43.37 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01001/14.87, allocations: 5.878 MB / 6.711 GB, free: 40.54 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.793e-05/14.87, allocations: 57.28 kB / 6.711 GB, free: 40.5 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001431/14.87, allocations: 195.3 kB / 6.711 GB, free: 40.4 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=174): time 1.178e-05/14.87, allocations: 0 / 6.711 GB, free: 40.4 MB / 0.4948 GB Notification: Performance of matching and sorting (n=200): time 0.02435/14.9, allocations: 9.117 MB / 6.72 GB, free: 36.93 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.929e-05/14.9, allocations: 127.4 kB / 6.72 GB, free: 36.8 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003324/14.9, allocations: 1.667 MB / 6.722 GB, free: 36.16 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002974/14.9, allocations: 61.58 kB / 6.722 GB, free: 36.1 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007636/14.9, allocations: 1.037 MB / 6.723 GB, free: 35.29 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.000686/14.9, allocations: 0.6902 MB / 6.724 GB, free: 34.75 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000245/14.9, allocations: 45.94 kB / 6.724 GB, free: 34.72 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001682/14.9, allocations: 397.5 kB / 6.724 GB, free: 34.38 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002149/14.9, allocations: 1.233 MB / 6.725 GB, free: 33.95 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002371/14.91, allocations: 1.735 MB / 6.727 GB, free: 32.94 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002404/14.91, allocations: 1.484 MB / 6.729 GB, free: 32.35 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-05/14.91, allocations: 3.469 kB / 6.729 GB, free: 32.35 MB / 0.4948 GB Notification: Performance of matching and sorting (n=294) (initialization): time 0.007219/14.92, allocations: 4.264 MB / 6.733 GB, free: 30.73 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001783/14.92, allocations: 5.804 MB / 6.738 GB, free: 24.57 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.232e-05/14.92, allocations: 22.47 kB / 6.738 GB, free: 24.57 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01372/14.93, allocations: 3.588 MB / 6.742 GB, free: 23.72 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001395/14.93, allocations: 323.8 kB / 6.742 GB, free: 23.45 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007112/14.94, allocations: 4.034 MB / 6.746 GB, free: 19.98 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003472/14.94, allocations: 205.6 kB / 6.746 GB, free: 19.83 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005221/14.95, allocations: 107.3 kB / 6.746 GB, free: 19.74 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/14.95, allocations: 10.09 kB / 6.746 GB, free: 19.73 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006766/14.95, allocations: 3.825 MB / 6.75 GB, free: 16.45 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.209e-05/14.95, allocations: 16 kB / 6.75 GB, free: 16.43 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01036/14.96, allocations: 2.94 MB / 6.753 GB, free: 14.2 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0018/14.96, allocations: 359.5 kB / 6.753 GB, free: 13.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005691/14.97, allocations: 3.512 MB / 6.757 GB, free: 10.88 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003098/14.97, allocations: 191 kB / 6.757 GB, free: 10.74 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002602/14.97, allocations: 103.8 kB / 6.757 GB, free: 10.64 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (168): * Single equations (assignments): 167 * 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 {19 108} Notification: Performance of prepare postOptimizeDAE: time 0.002161/14.98, allocations: 0.7016 MB / 6.758 GB, free: 10.01 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004751/14.98, allocations: 225.2 kB / 6.758 GB, free: 9.785 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007694/14.98, allocations: 4.08 MB / 6.762 GB, free: 6.457 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.868e-05/14.98, allocations: 31.28 kB / 6.762 GB, free: 6.43 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.255e-05/14.98, allocations: 8 kB / 6.762 GB, free: 6.422 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006271/14.99, allocations: 3.457 MB / 6.765 GB, free: 3.391 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3134/15.3, allocations: 6.431 MB / 6.772 GB, free: 48.53 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-05/15.3, allocations: 0 / 6.772 GB, free: 48.53 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001445/15.3, allocations: 323.2 kB / 6.772 GB, free: 48.53 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004341/15.31, allocations: 1.276 MB / 6.773 GB, free: 48.47 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001846/15.31, allocations: 75.84 kB / 6.773 GB, free: 48.47 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008202/15.32, allocations: 10.59 MB / 6.784 GB, free: 40.62 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/15.32, allocations: 3.625 kB / 6.784 GB, free: 40.62 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009138/15.33, allocations: 5.279 MB / 6.789 GB, free: 40.34 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001946/15.33, allocations: 0.6391 MB / 6.789 GB, free: 40.25 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003654/15.33, allocations: 56.61 kB / 6.789 GB, free: 40.25 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001542/15.33, allocations: 156.4 kB / 6.79 GB, free: 40.25 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003437/15.33, allocations: 175.4 kB / 6.79 GB, free: 40.25 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002027/15.33, allocations: 84.17 kB / 6.79 GB, free: 40.25 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001632/15.33, allocations: 1.265 MB / 6.791 GB, free: 40.1 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.21e-07/15.33, allocations: 2.953 kB / 6.791 GB, free: 40.1 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005673/15.34, allocations: 1.943 MB / 6.793 GB, free: 40.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (184): * Single equations (assignments): 170 * 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%) 2,(1,100.0%) 6,(1,100.0%) 2} * Non-linear torn systems: 3 {1 9,2 8,6 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.003352/15.34, allocations: 1.371 MB / 6.794 GB, free: 39.99 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.009037/15.35, allocations: 5.07 MB / 6.799 GB, free: 39.87 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.224e-06/15.35, allocations: 3.875 kB / 6.799 GB, free: 39.87 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003617/15.35, allocations: 2.267 MB / 6.802 GB, free: 39.29 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004496/15.36, allocations: 0.9394 MB / 6.802 GB, free: 39.28 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008824/15.37, allocations: 6.675 MB / 6.809 GB, free: 36.96 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001164/15.37, allocations: 1.928 MB / 6.811 GB, free: 36.21 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.003304/15.37, allocations: 0.9545 MB / 6.812 GB, free: 36.16 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000587/15.37, allocations: 199.5 kB / 6.812 GB, free: 36.15 MB / 0.4948 GB Notification: Performance of SimCode: time 1.823e-06/15.37, allocations: 3.5 kB / 6.812 GB, free: 36.15 MB / 0.4948 GB Notification: Performance of Templates: time 0.1006/15.47, allocations: 72.81 MB / 6.883 GB, free: 32.11 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)