Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002145/0.002145, allocations: 199.7 kB / 18.07 MB, free: 3.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.91/2.91, allocations: 226.5 MB / 245.4 MB, free: 8.203 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001234/0.001234, allocations: 99.02 kB / 297.4 MB, free: 6.875 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004708/0.0004713, allocations: 4 kB / 357.4 MB, free: 10.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6193/0.6198, allocations: 51.3 MB / 408.7 MB, free: 27.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 15.11/15.73, allocations: 3.162 GB / 3.561 GB, free: 100.1 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004335/15.73, allocations: 88.2 kB / 3.561 GB, free: 100.1 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 18.07/33.8, allocations: 2.325 GB / 5.886 GB, free: 37.52 MB / 490.7 MB Notification: Performance of FrontEnd: time 5.751e-06/33.8, allocations: 3.594 kB / 5.886 GB, free: 37.52 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0006357/33.81, allocations: 71.12 kB / 5.886 GB, free: 37.5 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.02751/33.83, allocations: 3.885 MB / 5.89 GB, free: 35.53 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.423e-05/33.83, allocations: 10.09 kB / 5.89 GB, free: 35.53 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004019/33.84, allocations: 308.5 kB / 5.89 GB, free: 35.39 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0115/33.85, allocations: 2.166 MB / 5.892 GB, free: 34.86 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005986/33.85, allocations: 216.9 kB / 5.893 GB, free: 34.8 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001707/33.85, allocations: 199.8 kB / 5.893 GB, free: 34.79 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01391/33.86, allocations: 3.366 MB / 5.896 GB, free: 34.31 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001566/33.86, allocations: 13.72 kB / 5.896 GB, free: 34.3 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008974/33.87, allocations: 89.02 kB / 5.896 GB, free: 34.3 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004166/33.87, allocations: 201.8 kB / 5.896 GB, free: 34.3 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0125/33.88, allocations: 3.101 MB / 5.899 GB, free: 34.29 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.04623/33.93, allocations: 12.29 MB / 5.911 GB, free: 29.27 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008703/33.93, allocations: 2.254 MB / 5.914 GB, free: 29.12 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004974/33.94, allocations: 1.377 MB / 5.915 GB, free: 29.11 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02253/33.96, allocations: 5.807 MB / 5.921 GB, free: 26.28 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.679e-05/33.96, allocations: 60 kB / 5.921 GB, free: 26.23 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002662/33.96, allocations: 193.7 kB / 5.921 GB, free: 26.14 MB / 490.7 MB Notification: Performance of pre-optimization done (n=172): time 1.822e-05/33.96, allocations: 0 / 5.921 GB, free: 26.14 MB / 490.7 MB Notification: Performance of matching and sorting (n=198): time 0.04912/34.01, allocations: 9.127 MB / 5.93 GB, free: 22.62 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001207/34.01, allocations: 122.8 kB / 5.93 GB, free: 22.5 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007444/34.02, allocations: 1.885 MB / 5.932 GB, free: 21.77 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001398/34.02, allocations: 64.89 kB / 5.932 GB, free: 21.71 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001931/34.02, allocations: 1.04 MB / 5.933 GB, free: 20.9 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001692/34.03, allocations: 0.681 MB / 5.934 GB, free: 20.38 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003631/34.03, allocations: 43.69 kB / 5.934 GB, free: 20.34 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002573/34.03, allocations: 398.8 kB / 5.934 GB, free: 20 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003604/34.03, allocations: 1.22 MB / 5.935 GB, free: 19.57 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00482/34.04, allocations: 1.742 MB / 5.937 GB, free: 18.55 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009606/34.05, allocations: 3.051 MB / 5.94 GB, free: 16.96 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-05/34.05, allocations: 3.656 kB / 5.94 GB, free: 16.96 MB / 490.7 MB Notification: Performance of matching and sorting (n=293) (initialization): time 0.01529/34.06, allocations: 4.221 MB / 5.944 GB, free: 15.35 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006357/34.06, allocations: 0.5089 MB / 5.944 GB, free: 14.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.501e-05/34.06, allocations: 15.5 kB / 5.944 GB, free: 14.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02311/34.08, allocations: 3.681 MB / 5.948 GB, free: 13.86 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002508/34.09, allocations: 323.7 kB / 5.948 GB, free: 13.59 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01135/34.1, allocations: 3.973 MB / 5.952 GB, free: 10.16 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005301/34.1, allocations: 198.9 kB / 5.952 GB, free: 10.02 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001054/34.11, allocations: 114.4 kB / 5.953 GB, free: 9.918 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.177e-05/34.11, allocations: 6.188 kB / 5.953 GB, free: 9.914 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01682/34.12, allocations: 3.783 MB / 5.956 GB, free: 6.652 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.549e-05/34.12, allocations: 12 kB / 5.956 GB, free: 6.641 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0161/34.14, allocations: 2.911 MB / 5.959 GB, free: 4.426 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002884/34.14, allocations: 363.6 kB / 5.959 GB, free: 4.125 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008346/34.15, allocations: 3.458 MB / 5.963 GB, free: 1.141 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005132/34.16, allocations: 193.9 kB / 5.963 GB, free: 0.9961 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008483/34.16, allocations: 107.4 kB / 5.963 GB, free: 0.9023 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.003164/34.16, allocations: 0.6956 MB / 5.964 GB, free: 276 kB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001092/34.16, allocations: 230.4 kB / 5.964 GB, free: 44 kB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01658/34.18, allocations: 4.032 MB / 5.968 GB, free: 12.91 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.588e-05/34.18, allocations: 23.94 kB / 5.968 GB, free: 12.89 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.103e-05/34.18, allocations: 4 kB / 5.968 GB, free: 12.88 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01303/34.19, allocations: 3.386 MB / 5.971 GB, free: 9.895 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05091/34.24, allocations: 6.363 MB / 5.977 GB, free: 4.77 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-05/34.24, allocations: 0 / 5.977 GB, free: 4.77 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003279/34.24, allocations: 319.9 kB / 5.978 GB, free: 4.5 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007054/34.25, allocations: 1.241 MB / 5.979 GB, free: 3.598 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001056/34.25, allocations: 73.41 kB / 5.979 GB, free: 3.539 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.7262/34.98, allocations: 10.46 MB / 5.989 GB, free: 45.31 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.047e-05/34.98, allocations: 3.219 kB / 5.989 GB, free: 45.31 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02652/35.01, allocations: 5.221 MB / 5.994 GB, free: 45.05 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004098/35.01, allocations: 0.6146 MB / 5.995 GB, free: 44.96 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002019/35.01, allocations: 58.81 kB / 5.995 GB, free: 44.96 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005024/35.02, allocations: 155.2 kB / 5.995 GB, free: 44.96 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00132/35.02, allocations: 171.5 kB / 5.995 GB, free: 44.95 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009143/35.02, allocations: 80.56 kB / 5.995 GB, free: 44.95 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.00491/35.02, allocations: 1.289 MB / 5.997 GB, free: 44.81 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.603e-06/35.02, allocations: 0 / 5.997 GB, free: 44.81 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01545/35.04, allocations: 1.896 MB / 5.999 GB, free: 44.81 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.007552/35.05, allocations: 1.309 MB / 6 GB, free: 44.7 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0231/35.07, allocations: 5.002 MB / 6.005 GB, free: 44.57 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.84e-05/35.07, allocations: 3.562 kB / 6.005 GB, free: 44.57 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.008913/35.08, allocations: 2.245 MB / 6.007 GB, free: 44 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.013/35.09, allocations: 0.9976 MB / 6.008 GB, free: 43.98 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03311/35.13, allocations: 6.675 MB / 6.014 GB, free: 41.72 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00326/35.13, allocations: 1.853 MB / 6.016 GB, free: 40.96 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001918/35.13, allocations: 211.4 kB / 6.016 GB, free: 40.96 MB / 0.4948 GB Notification: Performance of SimCode: time 3.436e-06/35.13, allocations: 0 / 6.016 GB, free: 40.96 MB / 0.4948 GB Notification: Performance of Templates: time 0.2401/35.37, allocations: 90.2 MB / 6.104 GB, free: 34.42 MB / 0.4948 GB make -j1 -f Modelica_trunk_cpp_Modelica.Fluid.Examples.HeatingSystem.makefile (rm -f Modelica_trunk_cpp_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.HeatingSystem.sim & ./Modelica_trunk_cpp_Modelica.Fluid.Examples.HeatingSystem --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)