Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) 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.0.0_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.0.0_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001349/0.00135, allocations: 166.6 kB / 17.39 MB, free: 4.301 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.404/1.404, allocations: 223.3 MB / 241.4 MB, free: 9.984 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007278/0.0007278, allocations: 100.1 kB / 292.6 MB, free: 10.56 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002874/0.0002875, allocations: 15.94 kB / 352.3 MB, free: 14.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2005/0.2008, allocations: 50.4 MB / 402.7 MB, free: 32.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.921/6.121, allocations: 3.161 GB / 3.554 GB, free: 111.6 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002283/6.122, allocations: 85.98 kB / 3.554 GB, free: 111.6 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.601/12.72, allocations: 2.322 GB / 5.876 GB, free: 38.74 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.404e-06/12.72, allocations: 1.062 kB / 5.876 GB, free: 38.74 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002172/12.72, allocations: 65.27 kB / 5.876 GB, free: 38.74 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.01402/12.74, allocations: 3.88 MB / 5.88 GB, free: 36.97 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/12.74, allocations: 12.41 kB / 5.88 GB, free: 36.97 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001827/12.74, allocations: 312.4 kB / 5.88 GB, free: 36.82 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005575/12.75, allocations: 2.171 MB / 5.882 GB, free: 36.3 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000182/12.75, allocations: 222.2 kB / 5.883 GB, free: 36.23 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005114/12.75, allocations: 203.9 kB / 5.883 GB, free: 36.23 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005031/12.75, allocations: 3.356 MB / 5.886 GB, free: 35.74 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.672e-05/12.75, allocations: 12.81 kB / 5.886 GB, free: 35.74 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002643/12.75, allocations: 89.19 kB / 5.886 GB, free: 35.74 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002017/12.75, allocations: 204 kB / 5.886 GB, free: 35.73 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004535/12.76, allocations: 3.101 MB / 5.889 GB, free: 35.72 MB / 490.7 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.01699/12.77, allocations: 12.29 MB / 5.901 GB, free: 30.71 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003441/12.78, allocations: 2.249 MB / 5.904 GB, free: 30.58 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001882/12.78, allocations: 1.37 MB / 5.905 GB, free: 30.57 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008147/12.79, allocations: 5.809 MB / 5.911 GB, free: 27.73 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.894e-05/12.79, allocations: 55.72 kB / 5.911 GB, free: 27.68 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00118/12.79, allocations: 190.6 kB / 5.911 GB, free: 27.59 MB / 490.7 MB Notification: Performance of pre-optimization done (n=172): time 4.388e-06/12.79, allocations: 3.75 kB / 5.911 GB, free: 27.59 MB / 490.7 MB Notification: Performance of matching and sorting (n=198): time 0.02015/12.81, allocations: 9.148 MB / 5.92 GB, free: 26.39 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.324e-05/12.81, allocations: 126.8 kB / 5.92 GB, free: 26.27 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00316/12.81, allocations: 1.876 MB / 5.922 GB, free: 26.03 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000196/12.81, allocations: 64.39 kB / 5.922 GB, free: 26 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000708/12.81, allocations: 1.039 MB / 5.923 GB, free: 25.59 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005151/12.81, allocations: 0.6869 MB / 5.923 GB, free: 25.15 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001944/12.81, allocations: 45.38 kB / 5.924 GB, free: 25.15 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001263/12.81, allocations: 396.6 kB / 5.924 GB, free: 24.85 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001726/12.81, allocations: 1.22 MB / 5.925 GB, free: 24.84 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001979/12.82, allocations: 1.746 MB / 5.927 GB, free: 24.28 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003997/12.82, allocations: 3.041 MB / 5.93 GB, free: 23.73 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.226e-05/12.82, allocations: 13.81 kB / 5.93 GB, free: 23.73 MB / 490.7 MB Notification: Performance of matching and sorting (n=293) (initialization): time 0.006421/12.83, allocations: 4.22 MB / 5.934 GB, free: 23.52 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002612/12.83, allocations: 0.5091 MB / 5.934 GB, free: 22.92 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.331e-05/12.83, allocations: 14.81 kB / 5.934 GB, free: 22.92 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01323/12.84, allocations: 3.684 MB / 5.938 GB, free: 22.88 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001441/12.84, allocations: 321.7 kB / 5.938 GB, free: 22.88 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00701/12.85, allocations: 3.972 MB / 5.942 GB, free: 22.29 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002883/12.85, allocations: 193.1 kB / 5.942 GB, free: 22.27 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004819/12.85, allocations: 111.7 kB / 5.943 GB, free: 22.27 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.15e-05/12.85, allocations: 3.406 kB / 5.943 GB, free: 22.27 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006945/12.86, allocations: 3.78 MB / 5.946 GB, free: 22.21 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.025e-05/12.86, allocations: 14.03 kB / 5.946 GB, free: 22.21 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009505/12.87, allocations: 2.913 MB / 5.949 GB, free: 22.18 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001687/12.87, allocations: 364.8 kB / 5.949 GB, free: 22.18 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005849/12.88, allocations: 3.46 MB / 5.953 GB, free: 21.59 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003546/12.88, allocations: 192.2 kB / 5.953 GB, free: 21.57 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005754/12.88, allocations: 107.6 kB / 5.953 GB, free: 21.57 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 () * Number of clocked 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.002317/12.88, allocations: 0.6991 MB / 5.954 GB, free: 21.38 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008435/12.88, allocations: 232 kB / 5.954 GB, free: 21.25 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008525/12.89, allocations: 3.963 MB / 5.958 GB, free: 21.05 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.584e-05/12.89, allocations: 24.72 kB / 5.958 GB, free: 21.04 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.784e-05/12.89, allocations: 3.25 kB / 5.958 GB, free: 21.04 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005954/12.9, allocations: 3.39 MB / 5.961 GB, free: 20.57 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01236/12.91, allocations: 6.367 MB / 5.967 GB, free: 20.08 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.189e-05/12.91, allocations: 4.031 kB / 5.967 GB, free: 20.08 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001371/12.91, allocations: 322.9 kB / 5.968 GB, free: 20.08 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004276/12.92, allocations: 1.238 MB / 5.969 GB, free: 20.01 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002786/12.92, allocations: 74.78 kB / 5.969 GB, free: 20.01 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00803/12.93, allocations: 10.46 MB / 5.979 GB, free: 11.36 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/12.93, allocations: 0 / 5.979 GB, free: 11.36 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01053/12.94, allocations: 5.225 MB / 5.984 GB, free: 9.297 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001965/12.94, allocations: 0.6154 MB / 5.985 GB, free: 8.945 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009717/12.94, allocations: 62.47 kB / 5.985 GB, free: 8.902 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002347/12.94, allocations: 154.5 kB / 5.985 GB, free: 8.863 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005266/12.94, allocations: 171.5 kB / 5.985 GB, free: 8.836 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003157/12.94, allocations: 79.33 kB / 5.985 GB, free: 8.82 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002564/12.94, allocations: 1.281 MB / 5.987 GB, free: 8.324 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.5e-07/12.94, allocations: 0.8438 kB / 5.987 GB, free: 8.324 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007633/12.95, allocations: 1.893 MB / 5.988 GB, free: 7.938 MB / 490.7 MB 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 (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,6 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.005045/12.96, allocations: 1.288 MB / 5.99 GB, free: 7.527 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01091/12.97, allocations: 5.007 MB / 5.995 GB, free: 6.012 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.187e-06/12.97, allocations: 0 / 5.995 GB, free: 6.012 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004024/12.97, allocations: 2.251 MB / 5.997 GB, free: 4.934 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005872/12.98, allocations: 0.9707 MB / 5.998 GB, free: 4.715 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0115/12.99, allocations: 6.611 MB / 6.004 GB, free: 1.754 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001991/12.99, allocations: 1.875 MB / 6.006 GB, free: 0.7305 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.003991/13, allocations: 0.9588 MB / 6.007 GB, free: 156 kB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00101/13, allocations: 210.4 kB / 6.007 GB, free: 0 / 490.7 MB Notification: Performance of SimCode: time 7.92e-07/13, allocations: 3.797 kB / 6.007 GB, free: 0 / 490.7 MB Notification: Performance of Templates: time 0.3852/13.38, allocations: 74.14 MB / 6.08 GB, free: 47.64 MB / 0.4948 GB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)