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") [: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 4.0.0+maint.om/package.mo): time 0.001088/0.001088, allocations: 184 kB / 8.138 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.335/1.335, allocations: 221.4 MB / 229.9 MB, free: 3.008 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.001098/0.001098, allocations: 96.8 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.286e-05/1.289e-05, allocations: 4 kB / 336.5 MB, free: 9.512 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.338/0.338, allocations: 50.39 MB / 386.9 MB, free: 38.04 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.412/7.75, allocations: 3.16 GB / 3.538 GB, free: 114.7 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002758/7.751, allocations: 87.12 kB / 3.538 GB, free: 114.7 MB / 442.7 MB Notification: Performance of FrontEnd: time 8.567/16.32, allocations: 3.1 GB / 6.638 GB, free: 0.5898 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002513/16.32, allocations: 67.22 kB / 6.638 GB, free: 0.5273 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.19/16.51, allocations: 3.592 MB / 6.641 GB, free: 76.93 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.357e-05/16.51, allocations: 10.09 kB / 6.641 GB, free: 76.93 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001349/16.51, allocations: 322.1 kB / 6.641 GB, free: 76.79 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004639/16.51, allocations: 2.036 MB / 6.643 GB, free: 76.34 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001304/16.51, allocations: 152.1 kB / 6.644 GB, free: 76.27 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003903/16.51, allocations: 112.7 kB / 6.644 GB, free: 76.27 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004297/16.52, allocations: 2.939 MB / 6.647 GB, free: 76.25 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00421/16.52, allocations: 3.097 MB / 6.65 GB, free: 75.78 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.111e-05/16.52, allocations: 7.219 kB / 6.65 GB, free: 75.78 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002639/16.52, allocations: 11.41 kB / 6.65 GB, free: 75.77 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001608/16.52, allocations: 218.6 kB / 6.65 GB, free: 75.77 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01666/16.54, allocations: 12.05 MB / 6.662 GB, free: 70.91 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001735/16.54, allocations: 1.356 MB / 6.663 GB, free: 70.88 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001596/16.54, allocations: 1.349 MB / 6.664 GB, free: 70.87 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007526/16.55, allocations: 6.002 MB / 6.67 GB, free: 67.96 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.386e-05/16.55, allocations: 55.89 kB / 6.67 GB, free: 67.92 MB / 490.7 MB Notification: Performance of pre-optimization done (n=173): time 3.236e-06/16.55, allocations: 0 / 6.67 GB, free: 67.92 MB / 490.7 MB Notification: Performance of matching and sorting (n=199): time 0.02476/16.58, allocations: 8.843 MB / 6.679 GB, free: 67 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.052e-05/16.58, allocations: 127.9 kB / 6.679 GB, free: 66.88 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001648/16.58, allocations: 1.219 MB / 6.68 GB, free: 66.7 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002171/16.58, allocations: 25.7 kB / 6.68 GB, free: 66.67 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003388/16.58, allocations: 0.801 MB / 6.681 GB, free: 66.19 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000514/16.58, allocations: 0.6558 MB / 6.682 GB, free: 65.75 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001577/16.58, allocations: 0 / 6.682 GB, free: 65.75 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001147/16.58, allocations: 400.8 kB / 6.682 GB, free: 65.45 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00151/16.58, allocations: 1.213 MB / 6.683 GB, free: 65.44 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001711/16.58, allocations: 1.714 MB / 6.685 GB, free: 64.89 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00642/16.59, allocations: 2.503 MB / 6.687 GB, free: 64.87 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-05/16.59, allocations: 3.469 kB / 6.687 GB, free: 64.87 MB / 490.7 MB Notification: Performance of matching and sorting (n=294) (initialization): time 0.0111/16.6, allocations: 5.11 MB / 6.692 GB, free: 64.68 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001247/16.6, allocations: 5.777 MB / 6.698 GB, free: 58.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.557e-05/16.6, allocations: 14.66 kB / 6.698 GB, free: 58.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009131/16.61, allocations: 2.62 MB / 6.7 GB, free: 58.76 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001481/16.61, allocations: 320.1 kB / 6.701 GB, free: 58.76 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009603/16.62, allocations: 4.754 MB / 6.705 GB, free: 58.17 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002935/16.62, allocations: 139.3 kB / 6.706 GB, free: 58.15 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004841/16.63, allocations: 114.3 kB / 6.706 GB, free: 58.15 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.178e-05/16.63, allocations: 3.344 kB / 6.706 GB, free: 58.15 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01133/16.64, allocations: 4.513 MB / 6.71 GB, free: 58.09 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.031e-05/16.64, allocations: 14.41 kB / 6.71 GB, free: 58.09 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008254/16.65, allocations: 2.308 MB / 6.712 GB, free: 58.06 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001851/16.65, allocations: 370.8 kB / 6.713 GB, free: 58.06 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006909/16.65, allocations: 4.021 MB / 6.717 GB, free: 57.48 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002616/16.66, allocations: 136.4 kB / 6.717 GB, free: 57.46 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004477/16.66, allocations: 110.6 kB / 6.717 GB, free: 57.46 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.000767/16.66, allocations: 149.8 kB / 6.717 GB, free: 57.35 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006497/16.66, allocations: 204 kB / 6.717 GB, free: 57.25 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01016/16.67, allocations: 4.387 MB / 6.721 GB, free: 57.05 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.684e-05/16.67, allocations: 22.28 kB / 6.721 GB, free: 57.05 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.023e-05/16.67, allocations: 3.875 kB / 6.721 GB, free: 57.05 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007524/16.68, allocations: 3.664 MB / 6.725 GB, free: 56.59 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01428/16.69, allocations: 6.441 MB / 6.731 GB, free: 56.16 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.135e-05/16.69, allocations: 3.594 kB / 6.731 GB, free: 56.16 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001557/16.69, allocations: 320.6 kB / 6.732 GB, free: 56.16 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003327/16.7, allocations: 1.024 MB / 6.733 GB, free: 56.1 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003084/16.7, allocations: 52.38 kB / 6.733 GB, free: 56.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009275/16.71, allocations: 10.33 MB / 6.743 GB, free: 48.47 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.127e-06/16.71, allocations: 0 / 6.743 GB, free: 48.47 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01158/16.72, allocations: 5.544 MB / 6.748 GB, free: 48.08 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001591/16.72, allocations: 0.5959 MB / 6.749 GB, free: 47.88 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007125/16.72, allocations: 18.23 kB / 6.749 GB, free: 47.88 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00208/16.72, allocations: 105.4 kB / 6.749 GB, free: 47.87 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003381/16.72, allocations: 146.3 kB / 6.749 GB, free: 47.87 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002483/16.72, allocations: 77.66 kB / 6.749 GB, free: 47.87 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.001651/16.72, allocations: 0.8961 MB / 6.75 GB, free: 47.75 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007238/16.73, allocations: 1.81 MB / 6.752 GB, free: 47.61 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.003898/16.73, allocations: 1.351 MB / 6.753 GB, free: 47.25 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.009422/16.74, allocations: 4.927 MB / 6.758 GB, free: 47.12 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.286e-06/16.74, allocations: 7.531 kB / 6.758 GB, free: 47.12 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003617/16.75, allocations: 2.109 MB / 6.76 GB, free: 46.61 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004334/16.75, allocations: 0.7906 MB / 6.761 GB, free: 46.6 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01058/16.76, allocations: 4.738 MB / 6.765 GB, free: 45.78 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002018/16.76, allocations: 2.145 MB / 6.767 GB, free: 45.01 MB / 490.7 MB Notification: Performance of SimCode: time 8.52e-07/16.76, allocations: 0 / 6.767 GB, free: 45.01 MB / 490.7 MB Notification: Performance of Templates: time 0.1058/16.87, allocations: 75.36 MB / 6.841 GB, free: 16.29 MB / 490.7 MB 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)