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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002871/0.002871, allocations: 192.1 kB / 8.533 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.523/1.523, allocations: 225.5 MB / 234.4 MB, free: 3.309 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009754/0.0009751, allocations: 89.78 kB / 286.3 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.091e-05/1.1e-05, allocations: 0 / 343.1 MB, free: 8.73 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1691/0.1691, allocations: 51.48 MB / 394.6 MB, free: 5.191 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.829/8.998, allocations: 3.16 GB / 3.546 GB, free: 116.2 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002461/8.998, allocations: 80.28 kB / 3.546 GB, free: 116.2 MB / 458.7 MB Notification: Performance of FrontEnd: time 9.906/18.9, allocations: 3.106 GB / 6.652 GB, free: 26.55 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.000303/18.9, allocations: 70.3 kB / 6.652 GB, free: 26.48 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.01508/18.92, allocations: 3.606 MB / 6.656 GB, free: 23.21 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/18.92, allocations: 8.031 kB / 6.656 GB, free: 23.21 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002498/18.92, allocations: 315.3 kB / 6.656 GB, free: 22.9 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007358/18.93, allocations: 2.034 MB / 6.658 GB, free: 21.12 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002552/18.93, allocations: 155.1 kB / 6.658 GB, free: 20.96 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001141/18.93, allocations: 127.9 kB / 6.658 GB, free: 20.84 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006408/18.94, allocations: 2.936 MB / 6.661 GB, free: 17.89 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007338/18.94, allocations: 3.094 MB / 6.664 GB, free: 14.62 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.402e-05/18.94, allocations: 4 kB / 6.664 GB, free: 14.62 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006971/18.95, allocations: 11.91 kB / 6.664 GB, free: 14.61 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002143/18.95, allocations: 223.6 kB / 6.665 GB, free: 14.39 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02309/18.97, allocations: 12.04 MB / 6.676 GB, free: 1.953 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002427/18.97, allocations: 1.361 MB / 6.678 GB, free: 0.5859 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2231/19.19, allocations: 1.349 MB / 6.679 GB, free: 63.76 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009292/19.2, allocations: 6.012 MB / 6.685 GB, free: 60.93 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.609e-05/19.2, allocations: 50.69 kB / 6.685 GB, free: 60.89 MB / 490.7 MB Notification: Performance of pre-optimization done (n=173): time 3.857e-06/19.2, allocations: 0 / 6.685 GB, free: 60.89 MB / 490.7 MB Notification: Performance of matching and sorting (n=199): time 0.02743/19.23, allocations: 8.821 MB / 6.694 GB, free: 60.24 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.209e-05/19.23, allocations: 124.5 kB / 6.694 GB, free: 60.11 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002442/19.23, allocations: 1.215 MB / 6.695 GB, free: 59.95 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004981/19.23, allocations: 25.7 kB / 6.695 GB, free: 59.92 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005151/19.24, allocations: 0.805 MB / 6.696 GB, free: 59.5 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008028/19.24, allocations: 0.6571 MB / 6.696 GB, free: 59.07 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001562/19.24, allocations: 0 / 6.696 GB, free: 59.07 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001613/19.24, allocations: 396.3 kB / 6.697 GB, free: 58.76 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001736/19.24, allocations: 1.216 MB / 6.698 GB, free: 58.75 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001845/19.24, allocations: 1.713 MB / 6.7 GB, free: 58.21 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008282/19.25, allocations: 2.722 MB / 6.702 GB, free: 58.19 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-05/19.25, allocations: 11.47 kB / 6.702 GB, free: 58.19 MB / 490.7 MB Notification: Performance of matching and sorting (n=294) (initialization): time 0.01364/19.26, allocations: 5.341 MB / 6.707 GB, free: 58 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009789/19.26, allocations: 5.769 MB / 6.713 GB, free: 52.11 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.75e-05/19.26, allocations: 15.53 kB / 6.713 GB, free: 52.11 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00907/19.27, allocations: 2.619 MB / 6.716 GB, free: 52.07 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001457/19.27, allocations: 319.4 kB / 6.716 GB, free: 52.07 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00879/19.28, allocations: 4.754 MB / 6.721 GB, free: 51.48 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00281/19.29, allocations: 143.2 kB / 6.721 GB, free: 51.46 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003194/19.29, allocations: 121.5 kB / 6.721 GB, free: 51.46 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.213e-05/19.29, allocations: 0 / 6.721 GB, free: 51.46 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01178/19.3, allocations: 4.734 MB / 6.725 GB, free: 51.41 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-05/19.3, allocations: 15.97 kB / 6.725 GB, free: 51.41 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007966/19.31, allocations: 2.32 MB / 6.728 GB, free: 51.38 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001949/19.31, allocations: 361.8 kB / 6.728 GB, free: 51.38 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006454/19.31, allocations: 4.029 MB / 6.732 GB, free: 50.79 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002719/19.32, allocations: 139.5 kB / 6.732 GB, free: 50.77 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003126/19.32, allocations: 104.6 kB / 6.732 GB, free: 50.77 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 (170): * Single equations (assignments): 169 * 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.0007067/19.32, allocations: 157.4 kB / 6.732 GB, free: 50.66 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004528/19.32, allocations: 202.7 kB / 6.733 GB, free: 50.55 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009447/19.33, allocations: 4.39 MB / 6.737 GB, free: 50.36 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.442e-05/19.33, allocations: 30.91 kB / 6.737 GB, free: 50.36 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.393e-05/19.33, allocations: 3.594 kB / 6.737 GB, free: 50.36 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006915/19.33, allocations: 3.664 MB / 6.74 GB, free: 49.9 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01258/19.35, allocations: 6.425 MB / 6.747 GB, free: 49.48 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.688e-06/19.35, allocations: 4.453 kB / 6.747 GB, free: 49.48 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001486/19.35, allocations: 318.2 kB / 6.747 GB, free: 49.48 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003155/19.35, allocations: 1.027 MB / 6.748 GB, free: 49.41 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002326/19.35, allocations: 48.3 kB / 6.748 GB, free: 49.41 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008887/19.36, allocations: 10.34 MB / 6.758 GB, free: 41.79 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/19.36, allocations: 0 / 6.758 GB, free: 41.79 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01163/19.37, allocations: 5.531 MB / 6.764 GB, free: 41.41 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001795/19.37, allocations: 0.5902 MB / 6.764 GB, free: 41.2 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005081/19.37, allocations: 22.05 kB / 6.764 GB, free: 41.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001737/19.38, allocations: 109.7 kB / 6.764 GB, free: 41.19 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003208/19.38, allocations: 144.5 kB / 6.764 GB, free: 41.19 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002028/19.38, allocations: 77.81 kB / 6.765 GB, free: 41.19 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.001251/19.38, allocations: 0.8983 MB / 6.765 GB, free: 41.08 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.00613/19.38, allocations: 1.82 MB / 6.767 GB, free: 41 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 (184): * Single equations (assignments): 170 * 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.003676/19.39, allocations: 1.356 MB / 6.769 GB, free: 40.81 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008917/19.4, allocations: 4.929 MB / 6.773 GB, free: 40.7 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/19.4, allocations: 2.906 kB / 6.773 GB, free: 40.7 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003396/19.4, allocations: 2.119 MB / 6.775 GB, free: 40.18 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004008/19.4, allocations: 0.8051 MB / 6.776 GB, free: 40.16 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009457/19.41, allocations: 4.749 MB / 6.781 GB, free: 39.33 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001975/19.42, allocations: 2.134 MB / 6.783 GB, free: 38.57 MB / 490.7 MB Notification: Performance of SimCode: time 1.112e-06/19.42, allocations: 2.906 kB / 6.783 GB, free: 38.57 MB / 490.7 MB Notification: Performance of Templates: time 0.1118/19.53, allocations: 75.38 MB / 6.857 GB, free: 30.5 MB / 490.7 MB 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)