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: "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) [: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.001133/0.001136, allocations: 183.5 kB / 8.138 MB, free: 2.223 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.164/1.164, allocations: 221.4 MB / 229.9 MB, free: 3 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.0009035/0.0009032, allocations: 107.3 kB / 280.8 MB, free: 1.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09165/0.09258, allocations: 55.8 MB / 336.6 MB, free: 9.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1811/0.2737, allocations: 50.39 MB / 387 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.316/4.589, allocations: 3.16 GB / 3.538 GB, free: 7.719 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002262/4.59, allocations: 89.02 kB / 3.538 GB, free: 7.633 MB / 442.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 7.318/11.91, allocations: 3.103 GB / 6.641 GB, free: 22.68 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.271e-05/11.91, allocations: 8 kB / 6.641 GB, free: 22.68 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001653/11.91, allocations: 312.5 kB / 6.641 GB, free: 22.37 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005346/11.91, allocations: 2.034 MB / 6.643 GB, free: 20.32 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001682/11.91, allocations: 151.2 kB / 6.644 GB, free: 20.16 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000716/11.92, allocations: 115.9 kB / 6.644 GB, free: 20.04 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00457/11.92, allocations: 2.94 MB / 6.646 GB, free: 17.09 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004421/11.92, allocations: 3.102 MB / 6.65 GB, free: 13.81 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.13e-05/11.92, allocations: 7.938 kB / 6.65 GB, free: 13.8 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000294/11.92, allocations: 11.98 kB / 6.65 GB, free: 13.79 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001629/11.93, allocations: 207.8 kB / 6.65 GB, free: 13.59 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01684/11.94, allocations: 12.06 MB / 6.662 GB, free: 1.121 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1617/12.1, allocations: 1.366 MB / 6.663 GB, free: 74.43 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001847/12.11, allocations: 1.346 MB / 6.664 GB, free: 74.42 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007121/12.11, allocations: 5.999 MB / 6.67 GB, free: 71.6 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.585e-05/12.11, allocations: 54.19 kB / 6.67 GB, free: 71.56 MB / 490.7 MB Notification: Performance of pre-optimization done (n=173): time 2.976e-06/12.11, allocations: 0 / 6.67 GB, free: 71.56 MB / 490.7 MB Notification: Performance of matching and sorting (n=199): time 0.02235/12.14, allocations: 8.823 MB / 6.679 GB, free: 70.91 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.554e-05/12.14, allocations: 127 kB / 6.679 GB, free: 70.79 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001531/12.14, allocations: 1.218 MB / 6.68 GB, free: 70.62 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001468/12.14, allocations: 29.42 kB / 6.68 GB, free: 70.59 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003272/12.14, allocations: 0.7977 MB / 6.681 GB, free: 70.21 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004506/12.14, allocations: 0.6585 MB / 6.681 GB, free: 69.78 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001479/12.14, allocations: 0 / 6.681 GB, free: 69.78 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001095/12.14, allocations: 402.5 kB / 6.682 GB, free: 69.47 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00147/12.14, allocations: 1.21 MB / 6.683 GB, free: 69.46 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001656/12.14, allocations: 1.719 MB / 6.685 GB, free: 68.92 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006019/12.15, allocations: 2.5 MB / 6.687 GB, free: 68.9 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.904e-06/12.15, allocations: 3.562 kB / 6.687 GB, free: 68.9 MB / 490.7 MB Notification: Performance of matching and sorting (n=294) (initialization): time 0.009524/12.16, allocations: 5.107 MB / 6.692 GB, free: 68.71 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007806/12.16, allocations: 5.775 MB / 6.698 GB, free: 62.82 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.994e-05/12.16, allocations: 17.06 kB / 6.698 GB, free: 62.82 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008348/12.17, allocations: 2.615 MB / 6.7 GB, free: 62.79 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001136/12.17, allocations: 323.6 kB / 6.701 GB, free: 62.79 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00781/12.17, allocations: 4.759 MB / 6.705 GB, free: 62.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002667/12.18, allocations: 137.8 kB / 6.705 GB, free: 62.18 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003297/12.18, allocations: 114.3 kB / 6.706 GB, free: 62.18 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.047e-06/12.18, allocations: 3.469 kB / 6.706 GB, free: 62.18 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008888/12.19, allocations: 4.51 MB / 6.71 GB, free: 62.12 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.808e-05/12.19, allocations: 14.66 kB / 6.71 GB, free: 62.12 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00767/12.19, allocations: 2.31 MB / 6.712 GB, free: 62.09 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001459/12.2, allocations: 362.8 kB / 6.713 GB, free: 62.09 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005903/12.2, allocations: 4.027 MB / 6.716 GB, free: 61.51 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002113/12.2, allocations: 140.5 kB / 6.717 GB, free: 61.49 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002449/12.2, allocations: 103.4 kB / 6.717 GB, free: 61.49 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.0005059/12.2, allocations: 150.1 kB / 6.717 GB, free: 61.38 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004381/12.21, allocations: 205.7 kB / 6.717 GB, free: 61.28 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009268/12.21, allocations: 4.401 MB / 6.721 GB, free: 61.09 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.631e-05/12.21, allocations: 25.84 kB / 6.721 GB, free: 61.08 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.601e-05/12.21, allocations: 2.719 kB / 6.721 GB, free: 61.08 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006946/12.22, allocations: 3.662 MB / 6.725 GB, free: 60.62 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01191/12.23, allocations: 6.432 MB / 6.731 GB, free: 60.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.153e-06/12.23, allocations: 3.219 kB / 6.731 GB, free: 60.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001433/12.23, allocations: 320.6 kB / 6.732 GB, free: 60.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003033/12.24, allocations: 1.023 MB / 6.733 GB, free: 60.13 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001996/12.24, allocations: 49.59 kB / 6.733 GB, free: 60.13 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008215/12.25, allocations: 10.35 MB / 6.743 GB, free: 52.5 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/12.25, allocations: 0 / 6.743 GB, free: 52.5 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01022/12.26, allocations: 5.53 MB / 6.748 GB, free: 52.12 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01581/12.27, allocations: 11.4 MB / 6.759 GB, free: 51.32 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00142/12.27, allocations: 0.594 MB / 6.76 GB, free: 51.12 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006115/12.27, allocations: 20.38 kB / 6.76 GB, free: 51.12 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001774/12.28, allocations: 101.8 kB / 6.76 GB, free: 51.11 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002858/12.28, allocations: 147.3 kB / 6.76 GB, free: 51.11 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000196/12.28, allocations: 87.25 kB / 6.76 GB, free: 51.11 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.001213/12.28, allocations: 0.8887 MB / 6.761 GB, free: 51 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007062/12.29, allocations: 2.109 MB / 6.763 GB, free: 50.92 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.003241/12.29, allocations: 1.338 MB / 6.764 GB, free: 50.73 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008589/12.3, allocations: 4.929 MB / 6.769 GB, free: 50.61 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/12.3, allocations: 0 / 6.769 GB, free: 50.61 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003255/12.3, allocations: 2.121 MB / 6.771 GB, free: 50.09 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003583/12.3, allocations: 0.7935 MB / 6.772 GB, free: 50.09 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008704/12.31, allocations: 4.796 MB / 6.777 GB, free: 49.27 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002147/12.31, allocations: 2.177 MB / 6.779 GB, free: 48.5 MB / 490.7 MB Notification: Performance of SimCode: time 5.21e-07/12.31, allocations: 5.812 kB / 6.779 GB, free: 48.5 MB / 490.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_HeatingSystem_fmu --startTime=0 --stopTime=6000 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_HeatingSystem.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)