Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_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_3.2.3_cpp_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 3.2.3+maint.om/package.mo): time 0.002377/0.002377, allocations: 175.9 kB / 8.152 MB, free: 2.195 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.832/1.832, allocations: 205.2 MB / 213.8 MB, free: 13.86 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.001252/0.001251, allocations: 80.73 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.295e-05/1.297e-05, allocations: 0 / 314.3 MB, free: 9.051 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2391/0.2391, allocations: 47.55 MB / 361.8 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.713/6.952, allocations: 3.153 GB / 3.507 GB, free: 50.92 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000279/6.952, allocations: 76.16 kB / 3.507 GB, free: 50.89 MB / 426.7 MB Notification: Performance of FrontEnd: time 12.28/19.23, allocations: 3.089 GB / 6.596 GB, free: 31.37 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003566/19.23, allocations: 69.02 kB / 6.596 GB, free: 31.36 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.01815/19.25, allocations: 3.601 MB / 6.6 GB, free: 29.6 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/19.25, allocations: 7.812 kB / 6.6 GB, free: 29.6 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002586/19.25, allocations: 315.7 kB / 6.6 GB, free: 29.46 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008862/19.26, allocations: 2.024 MB / 6.602 GB, free: 29 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002896/19.26, allocations: 150.3 kB / 6.602 GB, free: 28.93 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001175/19.27, allocations: 124.5 kB / 6.602 GB, free: 28.93 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009224/19.27, allocations: 2.939 MB / 6.605 GB, free: 28.92 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01049/19.28, allocations: 3.094 MB / 6.608 GB, free: 28.44 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001028/19.29, allocations: 11.12 kB / 6.608 GB, free: 28.44 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006497/19.29, allocations: 5.125 kB / 6.608 GB, free: 28.44 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002823/19.29, allocations: 214.6 kB / 6.608 GB, free: 28.44 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03381/19.32, allocations: 12.05 MB / 6.62 GB, free: 23.52 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00386/19.32, allocations: 1.36 MB / 6.621 GB, free: 23.5 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003908/19.33, allocations: 1.356 MB / 6.623 GB, free: 23.48 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01657/19.34, allocations: 6.003 MB / 6.629 GB, free: 20.54 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.724e-05/19.34, allocations: 54.75 kB / 6.629 GB, free: 20.5 MB / 458.7 MB Notification: Performance of pre-optimization done (n=173): time 4.859e-06/19.34, allocations: 0 / 6.629 GB, free: 20.5 MB / 458.7 MB Notification: Performance of matching and sorting (n=199): time 0.04711/19.39, allocations: 8.831 MB / 6.637 GB, free: 19.59 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.803e-05/19.39, allocations: 123.7 kB / 6.637 GB, free: 19.46 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003196/19.39, allocations: 1.214 MB / 6.638 GB, free: 19.29 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006889/19.4, allocations: 25.7 kB / 6.639 GB, free: 19.26 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005007/19.4, allocations: 0.75 MB / 6.639 GB, free: 18.72 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001304/19.4, allocations: 0.6697 MB / 6.64 GB, free: 18.28 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003419/19.4, allocations: 2.281 kB / 6.64 GB, free: 18.28 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002213/19.4, allocations: 407.8 kB / 6.64 GB, free: 17.96 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003594/19.4, allocations: 1.211 MB / 6.641 GB, free: 17.95 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004261/19.41, allocations: 1.715 MB / 6.643 GB, free: 17.4 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02789/19.43, allocations: 3.933 MB / 6.647 GB, free: 17.38 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.103e-05/19.43, allocations: 7.281 kB / 6.647 GB, free: 17.38 MB / 458.7 MB Notification: Performance of matching and sorting (n=294) (initialization): time 0.03614/19.47, allocations: 6.447 MB / 6.653 GB, free: 17.25 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001906/19.47, allocations: 5.652 MB / 6.659 GB, free: 27.36 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001157/19.47, allocations: 16.78 kB / 6.659 GB, free: 27.36 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01611/19.49, allocations: 2.501 MB / 6.661 GB, free: 27.32 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002622/19.49, allocations: 320.8 kB / 6.662 GB, free: 27.32 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01835/19.51, allocations: 4.727 MB / 6.666 GB, free: 26.73 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00375/19.51, allocations: 145.2 kB / 6.666 GB, free: 26.71 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000858/19.51, allocations: 112.7 kB / 6.666 GB, free: 26.71 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/19.51, allocations: 1.219 kB / 6.666 GB, free: 26.71 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0363/19.55, allocations: 5.949 MB / 6.672 GB, free: 26.66 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-05/19.55, allocations: 14.56 kB / 6.672 GB, free: 26.66 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01481/19.57, allocations: 2.215 MB / 6.674 GB, free: 26.62 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003249/19.57, allocations: 366 kB / 6.675 GB, free: 26.62 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01189/19.58, allocations: 4.019 MB / 6.679 GB, free: 25.75 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003391/19.58, allocations: 138.8 kB / 6.679 GB, free: 25.73 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005676/19.58, allocations: 104.2 kB / 6.679 GB, free: 25.72 MB / 474.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pump.dp_pump:VARIABLE(unit = "Pa" ) "Pressure change" type: Real $DER.tank.V:DUMMY_DER(fixed = false ) "Actual tank volume" type: Real 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.0008932/19.59, allocations: 82.95 kB / 6.679 GB, free: 25.67 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007446/19.59, allocations: 198.1 kB / 6.679 GB, free: 25.57 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01827/19.6, allocations: 4.397 MB / 6.684 GB, free: 24.23 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.01e-05/19.6, allocations: 23 kB / 6.684 GB, free: 24.23 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.136e-05/19.6, allocations: 3.25 kB / 6.684 GB, free: 24.23 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01414/19.62, allocations: 3.663 MB / 6.687 GB, free: 22.9 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02401/19.64, allocations: 6.437 MB / 6.693 GB, free: 20.73 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.043e-05/19.64, allocations: 0 / 6.693 GB, free: 20.73 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003318/19.65, allocations: 324.1 kB / 6.694 GB, free: 20.71 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005985/19.65, allocations: 1.024 MB / 6.695 GB, free: 20.47 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000666/19.65, allocations: 49.53 kB / 6.695 GB, free: 20.46 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01571/19.67, allocations: 10.33 MB / 6.705 GB, free: 11.82 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.721e-06/19.67, allocations: 1.906 kB / 6.705 GB, free: 11.82 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01903/19.69, allocations: 5.54 MB / 6.71 GB, free: 8.684 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002396/19.69, allocations: 0.5952 MB / 6.711 GB, free: 8.168 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008831/19.69, allocations: 15.7 kB / 6.711 GB, free: 8.156 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003719/19.7, allocations: 106.1 kB / 6.711 GB, free: 8.086 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008875/19.7, allocations: 151.4 kB / 6.711 GB, free: 8.004 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003748/19.7, allocations: 82.81 kB / 6.711 GB, free: 7.938 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.002025/19.7, allocations: 0.8904 MB / 6.712 GB, free: 7.137 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009279/19.71, allocations: 1.809 MB / 6.714 GB, free: 5.363 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 (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.005085/19.71, allocations: 1.341 MB / 6.715 GB, free: 4.309 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.225/19.94, allocations: 4.863 MB / 6.72 GB, free: 79.47 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.008e-05/19.94, allocations: 2.031 kB / 6.72 GB, free: 79.47 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007032/19.95, allocations: 2.104 MB / 6.722 GB, free: 78.97 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007963/19.95, allocations: 0.7906 MB / 6.723 GB, free: 78.96 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01757/19.97, allocations: 4.769 MB / 6.727 GB, free: 78.16 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003803/19.97, allocations: 2.121 MB / 6.729 GB, free: 77.4 MB / 474.7 MB Notification: Performance of SimCode: time 1.743e-06/19.97, allocations: 3.812 kB / 6.729 GB, free: 77.4 MB / 474.7 MB Notification: Performance of Templates: time 0.1393/20.11, allocations: 85.82 MB / 6.813 GB, free: 71.49 MB / 474.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)