Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001137/0.001137, allocations: 172.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.604/1.604, allocations: 205.2 MB / 219.8 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009474/0.0009478, allocations: 78.72 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.748e-05/2.751e-05, allocations: 4 kB / 322.4 MB, free: 17.36 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09656/0.0966, allocations: 47.58 MB / 370 MB, free: 1.715 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.796/8.893, allocations: 3.154 GB / 3.515 GB, free: 87.51 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000299/8.893, allocations: 77.22 kB / 3.515 GB, free: 87.48 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.724/18.62, allocations: 3.097 GB / 6.613 GB, free: 27.66 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.222e-06/18.62, allocations: 0 / 6.613 GB, free: 27.66 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002061/18.62, allocations: 68.83 kB / 6.613 GB, free: 27.64 MB / 458.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.01441/18.63, allocations: 3.592 MB / 6.616 GB, free: 25.78 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.97e-05/18.63, allocations: 8.031 kB / 6.616 GB, free: 25.77 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001989/18.63, allocations: 316.1 kB / 6.617 GB, free: 25.46 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006344/18.64, allocations: 2.021 MB / 6.619 GB, free: 24.22 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002264/18.64, allocations: 217.5 kB / 6.619 GB, free: 24.06 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006819/18.64, allocations: 201.5 kB / 6.619 GB, free: 23.93 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005203/18.65, allocations: 3.303 MB / 6.622 GB, free: 21.6 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.648e-05/18.65, allocations: 7.938 kB / 6.622 GB, free: 21.59 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002587/18.65, allocations: 80.36 kB / 6.622 GB, free: 21.52 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002127/18.65, allocations: 209.8 kB / 6.623 GB, free: 21.35 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004311/18.65, allocations: 3.02 MB / 6.626 GB, free: 18.67 MB / 458.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.01701/18.67, allocations: 12.41 MB / 6.638 GB, free: 7.816 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00306/18.67, allocations: 2.206 MB / 6.64 GB, free: 5.793 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00161/18.67, allocations: 1.343 MB / 6.641 GB, free: 4.605 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007794/18.68, allocations: 5.973 MB / 6.647 GB, free: 14.46 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.757e-05/18.68, allocations: 65.19 kB / 6.647 GB, free: 14.39 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001002/18.68, allocations: 195.8 kB / 6.647 GB, free: 14.2 MB / 474.7 MB Notification: Performance of pre-optimization done (n=172): time 3.236e-06/18.68, allocations: 0 / 6.647 GB, free: 14.2 MB / 474.7 MB Notification: Performance of matching and sorting (n=198): time 0.01529/18.7, allocations: 7.25 MB / 6.654 GB, free: 6.914 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.56e-05/18.7, allocations: 128.8 kB / 6.654 GB, free: 6.762 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002426/18.7, allocations: 1.656 MB / 6.656 GB, free: 5.062 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001906/18.7, allocations: 61.7 kB / 6.656 GB, free: 4.996 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007257/18.7, allocations: 1.044 MB / 6.657 GB, free: 3.949 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005724/18.7, allocations: 0.688 MB / 6.658 GB, free: 3.27 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001525/18.7, allocations: 44 kB / 6.658 GB, free: 3.227 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001667/18.7, allocations: 394.5 kB / 6.658 GB, free: 2.836 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001807/18.7, allocations: 1.188 MB / 6.659 GB, free: 1.645 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3042/19.01, allocations: 1.694 MB / 6.661 GB, free: 39.32 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003686/19.01, allocations: 1.436 MB / 6.662 GB, free: 39.3 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.465e-05/19.01, allocations: 7.672 kB / 6.662 GB, free: 39.3 MB / 474.7 MB Notification: Performance of matching and sorting (n=293) (initialization): time 0.01137/19.02, allocations: 4.129 MB / 6.667 GB, free: 39.21 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001427/19.02, allocations: 5.9 MB / 6.672 GB, free: 33.06 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-05/19.02, allocations: 15.31 kB / 6.672 GB, free: 33.06 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01439/19.04, allocations: 3.562 MB / 6.676 GB, free: 33.02 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001478/19.04, allocations: 322.3 kB / 6.676 GB, free: 33.02 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006888/19.05, allocations: 3.941 MB / 6.68 GB, free: 32.47 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002848/19.05, allocations: 197.1 kB / 6.68 GB, free: 32.47 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002955/19.05, allocations: 109 kB / 6.68 GB, free: 32.47 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.969e-05/19.05, allocations: 3.312 kB / 6.68 GB, free: 32.47 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007021/19.06, allocations: 3.704 MB / 6.684 GB, free: 32.41 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-05/19.06, allocations: 14.56 kB / 6.684 GB, free: 32.41 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01129/19.07, allocations: 2.892 MB / 6.687 GB, free: 32.38 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002022/19.07, allocations: 365 kB / 6.687 GB, free: 32.38 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005101/19.08, allocations: 3.43 MB / 6.69 GB, free: 31.83 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002813/19.08, allocations: 189 kB / 6.691 GB, free: 31.83 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002598/19.08, allocations: 105.9 kB / 6.691 GB, free: 31.83 MB / 474.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.0007334/19.08, allocations: 234.3 kB / 6.691 GB, free: 31.72 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004426/19.08, allocations: 228.7 kB / 6.691 GB, free: 31.72 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006947/19.09, allocations: 3.885 MB / 6.695 GB, free: 31.54 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.676e-05/19.09, allocations: 22.94 kB / 6.695 GB, free: 31.54 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.322e-05/19.09, allocations: 3.656 kB / 6.695 GB, free: 31.54 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004586/19.09, allocations: 3.281 MB / 6.698 GB, free: 31.07 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01105/19.1, allocations: 6.336 MB / 6.704 GB, free: 30.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.078e-05/19.1, allocations: 0 / 6.704 GB, free: 30.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001407/19.1, allocations: 319.7 kB / 6.705 GB, free: 30.6 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004085/19.11, allocations: 1.199 MB / 6.706 GB, free: 30.53 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003632/19.11, allocations: 73.83 kB / 6.706 GB, free: 30.53 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00722/19.12, allocations: 10.4 MB / 6.716 GB, free: 22.61 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/19.12, allocations: 3.938 kB / 6.716 GB, free: 22.61 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009655/19.13, allocations: 5.116 MB / 6.721 GB, free: 22.2 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002005/19.13, allocations: 0.6404 MB / 6.722 GB, free: 21.99 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009156/19.13, allocations: 57.42 kB / 6.722 GB, free: 21.99 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002376/19.13, allocations: 153.3 kB / 6.722 GB, free: 21.98 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004703/19.13, allocations: 168.6 kB / 6.722 GB, free: 21.98 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002849/19.13, allocations: 87.8 kB / 6.722 GB, free: 21.98 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002574/19.13, allocations: 1.271 MB / 6.723 GB, free: 21.82 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.11e-07/19.13, allocations: 0 / 6.723 GB, free: 21.82 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01014/19.14, allocations: 1.938 MB / 6.725 GB, free: 21.82 MB / 474.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.005028/19.15, allocations: 1.363 MB / 6.727 GB, free: 21.68 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01371/19.16, allocations: 4.962 MB / 6.731 GB, free: 21.57 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.394e-05/19.16, allocations: 0 / 6.731 GB, free: 21.57 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004973/19.17, allocations: 2.212 MB / 6.734 GB, free: 21 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005951/19.17, allocations: 0.954 MB / 6.735 GB, free: 20.95 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01171/19.19, allocations: 4.693 MB / 6.739 GB, free: 20.06 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002362/19.19, allocations: 1.919 MB / 6.741 GB, free: 19.3 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.005448/19.19, allocations: 1.198 MB / 6.742 GB, free: 19.23 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008924/19.2, allocations: 169.6 kB / 6.742 GB, free: 19.23 MB / 474.7 MB Notification: Performance of SimCode: time 1.533e-06/19.2, allocations: 3.5 kB / 6.742 GB, free: 19.23 MB / 474.7 MB Notification: Performance of Templates: time 0.1616/19.36, allocations: 76.99 MB / 6.817 GB, free: 5.082 MB / 474.7 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)