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.0009891/0.0009892, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.477/1.477, allocations: 221.5 MB / 230.3 MB, free: 7.582 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009049/0.000905, allocations: 97.64 kB / 281.2 MB, free: 5.34 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.722e-05/1.707e-05, allocations: 4 kB / 337 MB, free: 10.05 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1327/0.1327, allocations: 50.41 MB / 387.4 MB, free: 7.602 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.51/9.643, allocations: 3.16 GB / 3.538 GB, free: 12.73 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002665/9.643, allocations: 84.58 kB / 3.538 GB, free: 12.69 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 10.44/20.09, allocations: 3.077 GB / 6.616 GB, free: 60.15 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.603e-06/20.09, allocations: 0 / 6.616 GB, free: 60.15 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003197/20.09, allocations: 66.3 kB / 6.616 GB, free: 60.14 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.01439/20.1, allocations: 3.6 MB / 6.619 GB, free: 58.34 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/20.1, allocations: 10.95 kB / 6.619 GB, free: 58.33 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002321/20.1, allocations: 309.7 kB / 6.62 GB, free: 58.19 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006106/20.11, allocations: 2.022 MB / 6.622 GB, free: 57.67 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002446/20.11, allocations: 155.1 kB / 6.622 GB, free: 57.6 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001197/20.11, allocations: 111.6 kB / 6.622 GB, free: 57.6 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006646/20.12, allocations: 2.85 MB / 6.625 GB, free: 57.14 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007348/20.13, allocations: 3.028 MB / 6.628 GB, free: 55.82 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.984e-05/20.13, allocations: 7 kB / 6.628 GB, free: 55.82 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006173/20.13, allocations: 9.891 kB / 6.628 GB, free: 55.81 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002495/20.13, allocations: 208.6 kB / 6.628 GB, free: 55.77 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.01871/20.15, allocations: 11.94 MB / 6.639 GB, free: 45.4 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003266/20.15, allocations: 2.159 MB / 6.642 GB, free: 43.45 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001706/20.15, allocations: 1.298 MB / 6.643 GB, free: 42.31 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008141/20.16, allocations: 5.851 MB / 6.649 GB, free: 36.92 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.435e-05/20.16, allocations: 52.56 kB / 6.649 GB, free: 36.86 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001153/20.16, allocations: 131.5 kB / 6.649 GB, free: 36.75 MB / 490.7 MB Notification: Performance of pre-optimization done (n=172): time 6.602e-06/20.16, allocations: 0 / 6.649 GB, free: 36.75 MB / 490.7 MB Notification: Performance of matching and sorting (n=198): time 0.02422/20.18, allocations: 8.574 MB / 6.657 GB, free: 29.06 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.3e-05/20.18, allocations: 124.8 kB / 6.657 GB, free: 28.91 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002126/20.19, allocations: 1.204 MB / 6.658 GB, free: 27.7 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002748/20.19, allocations: 25.7 kB / 6.658 GB, free: 27.67 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005558/20.19, allocations: 1.046 MB / 6.659 GB, free: 26.61 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005713/20.19, allocations: 0.6582 MB / 6.66 GB, free: 25.95 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002089/20.19, allocations: 0 / 6.66 GB, free: 25.95 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001307/20.19, allocations: 398.5 kB / 6.66 GB, free: 25.55 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001556/20.19, allocations: 1.16 MB / 6.662 GB, free: 24.39 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001736/20.19, allocations: 1.669 MB / 6.663 GB, free: 22.53 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006193/20.2, allocations: 2.35 MB / 6.665 GB, free: 20.21 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.092e-05/20.2, allocations: 11.75 kB / 6.666 GB, free: 20.2 MB / 490.7 MB Notification: Performance of matching and sorting (n=293) (initialization): time 0.01092/20.21, allocations: 4.869 MB / 6.67 GB, free: 15.32 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001067/20.21, allocations: 5.785 MB / 6.676 GB, free: 9.211 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.07e-05/20.21, allocations: 16 kB / 6.676 GB, free: 9.195 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008039/20.22, allocations: 2.577 MB / 6.678 GB, free: 6.621 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001323/20.22, allocations: 327.5 kB / 6.679 GB, free: 6.301 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008557/20.23, allocations: 4.545 MB / 6.683 GB, free: 1.727 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002755/20.23, allocations: 147.8 kB / 6.683 GB, free: 1.582 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004326/20.23, allocations: 114.6 kB / 6.683 GB, free: 1.473 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.314e-05/20.23, allocations: 4 kB / 6.683 GB, free: 1.469 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.3521/20.58, allocations: 4.29 MB / 6.688 GB, free: 55.12 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.94e-05/20.58, allocations: 14.91 kB / 6.688 GB, free: 55.12 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007752/20.59, allocations: 2.28 MB / 6.69 GB, free: 55.08 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0016/20.59, allocations: 361.9 kB / 6.69 GB, free: 55.08 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006251/20.6, allocations: 3.825 MB / 6.694 GB, free: 54.53 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002259/20.6, allocations: 145.1 kB / 6.694 GB, free: 54.53 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002595/20.6, allocations: 108.6 kB / 6.694 GB, free: 54.53 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.0005474/20.6, allocations: 149.1 kB / 6.694 GB, free: 54.43 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003963/20.6, allocations: 201.4 kB / 6.695 GB, free: 54.43 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00934/20.61, allocations: 4.083 MB / 6.699 GB, free: 54.25 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.1e-05/20.61, allocations: 23.84 kB / 6.699 GB, free: 54.25 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.261e-05/20.61, allocations: 2.5 kB / 6.699 GB, free: 54.25 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006984/20.62, allocations: 3.542 MB / 6.702 GB, free: 53.79 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01152/20.63, allocations: 6.243 MB / 6.708 GB, free: 53.38 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.418e-06/20.63, allocations: 0 / 6.708 GB, free: 53.38 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001342/20.63, allocations: 325.2 kB / 6.708 GB, free: 53.38 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0028/20.63, allocations: 1.019 MB / 6.709 GB, free: 53.32 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001909/20.63, allocations: 43.27 kB / 6.709 GB, free: 53.32 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007788/20.64, allocations: 10.34 MB / 6.72 GB, free: 45.76 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/20.64, allocations: 4.062 kB / 6.72 GB, free: 45.76 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009572/20.65, allocations: 5.289 MB / 6.725 GB, free: 45.45 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001297/20.65, allocations: 0.5945 MB / 6.725 GB, free: 45.24 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003795/20.65, allocations: 15.45 kB / 6.725 GB, free: 45.24 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001494/20.66, allocations: 119.7 kB / 6.725 GB, free: 45.23 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003037/20.66, allocations: 165.3 kB / 6.726 GB, free: 45.23 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001763/20.66, allocations: 80.62 kB / 6.726 GB, free: 45.23 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001108/20.66, allocations: 0.8808 MB / 6.727 GB, free: 45.12 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.172e-06/20.66, allocations: 0 / 6.727 GB, free: 45.12 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005216/20.66, allocations: 1.811 MB / 6.728 GB, free: 45.12 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 () * 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.002846/20.67, allocations: 1.36 MB / 6.73 GB, free: 44.99 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008517/20.67, allocations: 4.736 MB / 6.734 GB, free: 44.89 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.382e-06/20.67, allocations: 0 / 6.734 GB, free: 44.89 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003055/20.68, allocations: 2.121 MB / 6.736 GB, free: 44.36 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004253/20.68, allocations: 0.8125 MB / 6.737 GB, free: 44.34 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007172/20.69, allocations: 4.519 MB / 6.742 GB, free: 43.46 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00115/20.69, allocations: 1.925 MB / 6.743 GB, free: 42.7 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.003353/20.69, allocations: 1.038 MB / 6.744 GB, free: 42.63 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004838/20.69, allocations: 156.8 kB / 6.745 GB, free: 42.62 MB / 490.7 MB Notification: Performance of SimCode: time 8.52e-07/20.69, allocations: 0 / 6.745 GB, free: 42.62 MB / 490.7 MB Notification: Performance of Templates: time 0.08967/20.78, allocations: 68.12 MB / 6.811 GB, free: 34.52 MB / 490.7 MB 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)