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.0009324/0.0009324, allocations: 196.8 kB / 18.1 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.254/1.254, allocations: 226.5 MB / 245.4 MB, free: 6.52 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000751/0.0007512, allocations: 96.09 kB / 297.5 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002196/0.0002196, allocations: 11.98 kB / 358.1 MB, free: 10.08 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2153/0.2156, allocations: 51.3 MB / 409.4 MB, free: 27.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.063/6.278, allocations: 3.162 GB / 3.562 GB, free: 101.3 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001992/6.278, allocations: 83.72 kB / 3.562 GB, free: 101.3 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.82/13.1, allocations: 2.325 GB / 5.887 GB, free: 39.76 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.395e-06/13.1, allocations: 0 / 5.887 GB, free: 39.76 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002947/13.1, allocations: 75.12 kB / 5.887 GB, free: 39.75 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.01437/13.11, allocations: 3.878 MB / 5.891 GB, free: 37.78 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/13.11, allocations: 11.53 kB / 5.891 GB, free: 37.78 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001934/13.11, allocations: 318.7 kB / 5.891 GB, free: 37.64 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006258/13.12, allocations: 2.17 MB / 5.893 GB, free: 37.11 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002389/13.12, allocations: 223.8 kB / 5.893 GB, free: 37.04 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009608/13.12, allocations: 199.8 kB / 5.894 GB, free: 37.04 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007383/13.13, allocations: 3.355 MB / 5.897 GB, free: 36.55 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.986e-05/13.13, allocations: 14.16 kB / 5.897 GB, free: 36.55 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005357/13.13, allocations: 91.2 kB / 5.897 GB, free: 36.55 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002396/13.13, allocations: 197.4 kB / 5.897 GB, free: 36.55 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005722/13.14, allocations: 3.108 MB / 5.9 GB, free: 36.53 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.02052/13.16, allocations: 12.28 MB / 5.912 GB, free: 31.52 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00365/13.16, allocations: 2.251 MB / 5.914 GB, free: 31.38 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001943/13.16, allocations: 1.37 MB / 5.916 GB, free: 31.37 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008252/13.17, allocations: 5.802 MB / 5.921 GB, free: 28.54 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.458e-05/13.17, allocations: 61.88 kB / 5.921 GB, free: 28.49 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001114/13.17, allocations: 193.6 kB / 5.922 GB, free: 28.39 MB / 490.7 MB Notification: Performance of pre-optimization done (n=172): time 9.899e-06/13.17, allocations: 0 / 5.922 GB, free: 28.39 MB / 490.7 MB Notification: Performance of matching and sorting (n=198): time 0.02176/13.19, allocations: 9.147 MB / 5.931 GB, free: 24.92 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.341e-05/13.19, allocations: 125.2 kB / 5.931 GB, free: 24.8 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00319/13.2, allocations: 1.871 MB / 5.932 GB, free: 24.08 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002734/13.2, allocations: 65.55 kB / 5.933 GB, free: 24.02 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007221/13.2, allocations: 1.041 MB / 5.934 GB, free: 23.2 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006304/13.2, allocations: 0.686 MB / 5.934 GB, free: 22.67 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002117/13.2, allocations: 46.16 kB / 5.934 GB, free: 22.64 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001544/13.2, allocations: 397 kB / 5.935 GB, free: 22.3 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001992/13.2, allocations: 1.22 MB / 5.936 GB, free: 21.88 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002202/13.2, allocations: 1.746 MB / 5.938 GB, free: 20.85 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004162/13.21, allocations: 3.044 MB / 5.94 GB, free: 19.28 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.551e-05/13.21, allocations: 3.344 kB / 5.941 GB, free: 19.28 MB / 490.7 MB Notification: Performance of matching and sorting (n=293) (initialization): time 0.007024/13.21, allocations: 4.227 MB / 5.945 GB, free: 17.67 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003044/13.22, allocations: 0.5076 MB / 5.945 GB, free: 17.02 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.892e-05/13.22, allocations: 15.06 kB / 5.945 GB, free: 17.02 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01327/13.23, allocations: 3.683 MB / 5.949 GB, free: 16.46 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001325/13.23, allocations: 312.7 kB / 5.949 GB, free: 16.19 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006272/13.24, allocations: 3.979 MB / 5.953 GB, free: 12.77 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002683/13.24, allocations: 192.8 kB / 5.953 GB, free: 12.62 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003795/13.24, allocations: 107.5 kB / 5.953 GB, free: 12.53 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.224e-05/13.24, allocations: 4 kB / 5.953 GB, free: 12.52 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006238/13.25, allocations: 3.781 MB / 5.957 GB, free: 9.266 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.305e-05/13.25, allocations: 16 kB / 5.957 GB, free: 9.25 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009143/13.25, allocations: 2.909 MB / 5.96 GB, free: 7.043 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001459/13.26, allocations: 363.8 kB / 5.96 GB, free: 6.738 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004695/13.26, allocations: 3.467 MB / 5.963 GB, free: 3.746 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002428/13.26, allocations: 190.6 kB / 5.964 GB, free: 3.605 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000307/13.26, allocations: 103 kB / 5.964 GB, free: 3.512 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.001605/13.27, allocations: 0.6974 MB / 5.964 GB, free: 2.875 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005925/13.27, allocations: 233.1 kB / 5.965 GB, free: 2.645 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007871/13.27, allocations: 3.994 MB / 5.969 GB, free: 15.44 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.49e-05/13.27, allocations: 27.94 kB / 5.969 GB, free: 15.41 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.04e-05/13.27, allocations: 7.25 kB / 5.969 GB, free: 15.41 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005809/13.28, allocations: 3.389 MB / 5.972 GB, free: 12.42 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01333/13.29, allocations: 6.361 MB / 5.978 GB, free: 7.293 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.886e-06/13.29, allocations: 0 / 5.978 GB, free: 7.293 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001434/13.29, allocations: 327.7 kB / 5.978 GB, free: 7.02 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004578/13.3, allocations: 1.25 MB / 5.98 GB, free: 6.109 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003082/13.3, allocations: 73.17 kB / 5.98 GB, free: 6.051 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.296/13.6, allocations: 10.44 MB / 5.99 GB, free: 48.35 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/13.6, allocations: 5.062 kB / 5.99 GB, free: 48.35 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008992/13.6, allocations: 5.22 MB / 5.995 GB, free: 48.09 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002001/13.61, allocations: 0.6138 MB / 5.996 GB, free: 48 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004145/13.61, allocations: 62.64 kB / 5.996 GB, free: 48 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001607/13.61, allocations: 153 kB / 5.996 GB, free: 48 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005029/13.61, allocations: 171.6 kB / 5.996 GB, free: 48 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002038/13.61, allocations: 79.38 kB / 5.996 GB, free: 48 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002169/13.61, allocations: 1.286 MB / 5.997 GB, free: 47.85 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.3e-07/13.61, allocations: 0 / 5.997 GB, free: 47.85 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005689/13.62, allocations: 1.901 MB / 5.999 GB, free: 47.85 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 (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.003441/13.62, allocations: 1.297 MB / 6 GB, free: 47.74 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01068/13.63, allocations: 5.014 MB / 6.005 GB, free: 47.61 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.874e-06/13.63, allocations: 0 / 6.005 GB, free: 47.61 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003651/13.63, allocations: 2.256 MB / 6.008 GB, free: 47.04 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004873/13.64, allocations: 0.9973 MB / 6.009 GB, free: 47.02 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009203/13.65, allocations: 6.604 MB / 6.015 GB, free: 44.77 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001275/13.65, allocations: 1.869 MB / 6.017 GB, free: 44.02 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.003348/13.65, allocations: 0.9583 MB / 6.018 GB, free: 43.98 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005622/13.65, allocations: 199.9 kB / 6.018 GB, free: 43.98 MB / 0.4948 GB Notification: Performance of SimCode: time 1.012e-06/13.65, allocations: 0 / 6.018 GB, free: 43.98 MB / 0.4948 GB Notification: Performance of Templates: time 0.103/13.76, allocations: 73.69 MB / 6.09 GB, free: 41.43 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)