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.0009733/0.0009735, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.454/1.454, allocations: 221.3 MB / 235.5 MB, free: 2.926 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.0009171/0.0009175, allocations: 101.7 kB / 286.5 MB, free: 224 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.217e-05/3.221e-05, allocations: 11.98 kB / 343.8 MB, free: 4.316 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1176/0.1177, allocations: 50.41 MB / 394.2 MB, free: 1.863 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.029/9.147, allocations: 3.16 GB / 3.545 GB, free: 105.9 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002273/9.147, allocations: 86.58 kB / 3.546 GB, free: 105.9 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.435/18.58, allocations: 3.108 GB / 6.654 GB, free: 44.14 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.623e-06/18.58, allocations: 0 / 6.654 GB, free: 44.14 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002151/18.58, allocations: 72.67 kB / 6.654 GB, free: 44.12 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.0126/18.59, allocations: 3.589 MB / 6.658 GB, free: 42.32 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/18.59, allocations: 7.812 kB / 6.658 GB, free: 42.32 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001879/18.6, allocations: 314 kB / 6.658 GB, free: 42.18 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00525/18.6, allocations: 2.024 MB / 6.66 GB, free: 41.66 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001978/18.6, allocations: 219.4 kB / 6.66 GB, free: 41.59 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006119/18.6, allocations: 200.4 kB / 6.66 GB, free: 41.59 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004843/18.61, allocations: 3.298 MB / 6.663 GB, free: 40.37 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.95e-05/18.61, allocations: 8.281 kB / 6.663 GB, free: 40.36 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002853/18.61, allocations: 88.64 kB / 6.663 GB, free: 40.34 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002151/18.61, allocations: 203.8 kB / 6.664 GB, free: 40.2 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004709/18.61, allocations: 3.018 MB / 6.667 GB, free: 37.72 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.01747/18.63, allocations: 12.41 MB / 6.679 GB, free: 26.89 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003301/18.63, allocations: 2.213 MB / 6.681 GB, free: 24.88 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001752/18.64, allocations: 1.349 MB / 6.682 GB, free: 23.68 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00832/18.64, allocations: 5.984 MB / 6.688 GB, free: 18.19 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.887e-05/18.64, allocations: 56.52 kB / 6.688 GB, free: 18.12 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001057/18.64, allocations: 195.7 kB / 6.688 GB, free: 17.94 MB / 490.7 MB Notification: Performance of pre-optimization done (n=172): time 3.857e-06/18.64, allocations: 0 / 6.688 GB, free: 17.94 MB / 490.7 MB Notification: Performance of matching and sorting (n=198): time 0.01438/18.66, allocations: 7.256 MB / 6.695 GB, free: 11.62 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.114e-05/18.66, allocations: 124.8 kB / 6.696 GB, free: 11.48 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002378/18.66, allocations: 1.656 MB / 6.697 GB, free: 9.777 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003302/18.66, allocations: 65.69 kB / 6.697 GB, free: 9.707 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005517/18.66, allocations: 1.043 MB / 6.698 GB, free: 8.656 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005915/18.66, allocations: 0.6767 MB / 6.699 GB, free: 7.984 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001524/18.66, allocations: 44 kB / 6.699 GB, free: 7.941 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001297/18.66, allocations: 398.5 kB / 6.699 GB, free: 7.547 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001644/18.67, allocations: 1.191 MB / 6.7 GB, free: 6.352 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001789/18.67, allocations: 1.696 MB / 6.702 GB, free: 4.445 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001846/18.67, allocations: 1.431 MB / 6.704 GB, free: 3.012 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.786e-06/18.67, allocations: 4 kB / 6.704 GB, free: 3.008 MB / 490.7 MB Notification: Performance of matching and sorting (n=293) (initialization): time 0.3014/18.97, allocations: 4.135 MB / 6.708 GB, free: 39.74 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009537/18.97, allocations: 5.897 MB / 6.713 GB, free: 33.61 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.769e-05/18.97, allocations: 15.19 kB / 6.713 GB, free: 33.61 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01463/18.99, allocations: 3.566 MB / 6.717 GB, free: 33.57 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002147/18.99, allocations: 326.1 kB / 6.717 GB, free: 33.57 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00756/19, allocations: 3.935 MB / 6.721 GB, free: 33.02 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002853/19, allocations: 195.2 kB / 6.721 GB, free: 33.02 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003029/19, allocations: 113.1 kB / 6.721 GB, free: 33.02 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/19, allocations: 3.844 kB / 6.721 GB, free: 33.02 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006534/19.01, allocations: 3.699 MB / 6.725 GB, free: 32.96 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.891e-05/19.01, allocations: 14.03 kB / 6.725 GB, free: 32.96 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01059/19.02, allocations: 2.901 MB / 6.728 GB, free: 32.93 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001895/19.02, allocations: 360.2 kB / 6.728 GB, free: 32.93 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005265/19.02, allocations: 3.437 MB / 6.731 GB, free: 32.38 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002664/19.03, allocations: 190.4 kB / 6.732 GB, free: 32.38 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003468/19.03, allocations: 105.4 kB / 6.732 GB, free: 32.38 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.0006381/19.03, allocations: 230.2 kB / 6.732 GB, free: 32.27 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005419/19.03, allocations: 224.9 kB / 6.732 GB, free: 32.27 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006939/19.03, allocations: 3.894 MB / 6.736 GB, free: 32.08 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.553e-05/19.03, allocations: 32.47 kB / 6.736 GB, free: 32.08 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.259e-05/19.03, allocations: 3.656 kB / 6.736 GB, free: 32.08 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004565/19.04, allocations: 3.271 MB / 6.739 GB, free: 31.62 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01033/19.05, allocations: 6.322 MB / 6.745 GB, free: 31.16 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.975e-06/19.05, allocations: 2.344 kB / 6.745 GB, free: 31.16 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001375/19.05, allocations: 320.6 kB / 6.746 GB, free: 31.16 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004121/19.06, allocations: 1.201 MB / 6.747 GB, free: 31.1 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000348/19.06, allocations: 76.59 kB / 6.747 GB, free: 31.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007371/19.06, allocations: 10.4 MB / 6.757 GB, free: 23.24 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/19.06, allocations: 0 / 6.757 GB, free: 23.24 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008029/19.07, allocations: 5.12 MB / 6.762 GB, free: 22.87 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00167/19.07, allocations: 0.6438 MB / 6.763 GB, free: 22.65 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004617/19.07, allocations: 52.47 kB / 6.763 GB, free: 22.65 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00163/19.08, allocations: 160.3 kB / 6.763 GB, free: 22.64 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003398/19.08, allocations: 168.2 kB / 6.763 GB, free: 22.64 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001849/19.08, allocations: 81.75 kB / 6.763 GB, free: 22.64 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001687/19.08, allocations: 1.273 MB / 6.764 GB, free: 22.48 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.6e-07/19.08, allocations: 0 / 6.764 GB, free: 22.48 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005957/19.08, allocations: 1.937 MB / 6.766 GB, free: 22.48 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,6 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.003109/19.09, allocations: 1.355 MB / 6.768 GB, free: 22.35 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.009373/19.1, allocations: 4.951 MB / 6.772 GB, free: 22.24 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.184e-06/19.1, allocations: 5.781 kB / 6.772 GB, free: 22.24 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003558/19.1, allocations: 2.211 MB / 6.775 GB, free: 21.66 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004677/19.1, allocations: 0.9659 MB / 6.776 GB, free: 21.64 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007698/19.11, allocations: 4.683 MB / 6.78 GB, free: 20.75 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001754/19.11, allocations: 1.927 MB / 6.782 GB, free: 35.99 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.003947/19.12, allocations: 1.189 MB / 6.783 GB, free: 35.93 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005225/19.12, allocations: 170.5 kB / 6.783 GB, free: 35.92 MB / 0.4948 GB Notification: Performance of SimCode: time 1.042e-06/19.12, allocations: 0 / 6.783 GB, free: 35.92 MB / 0.4948 GB Notification: Performance of Templates: time 0.1041/19.22, allocations: 77.06 MB / 6.859 GB, free: 24.99 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)