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: "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_HeatingSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.HeatingSystem,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.0009867/0.0009867, allocations: 206.7 kB / 8.544 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.115/1.115, allocations: 225.5 MB / 234.4 MB, free: 3.324 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008485/0.0008486, allocations: 92.8 kB / 286.3 MB, free: 5.301 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09245/0.09333, allocations: 56.89 MB / 343.2 MB, free: 8.621 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08065/0.174, allocations: 51.47 MB / 394.7 MB, free: 5.098 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.315/4.489, allocations: 3.16 GB / 3.546 GB, free: 115.4 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001792/4.489, allocations: 74.89 kB / 3.546 GB, free: 115.4 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 6.582/11.07, allocations: 3.11 GB / 6.656 GB, free: 21.07 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.932e-05/11.07, allocations: 8 kB / 6.656 GB, free: 21.07 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009084/11.07, allocations: 320.5 kB / 6.656 GB, free: 20.75 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004167/11.08, allocations: 2.033 MB / 6.658 GB, free: 18.7 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000113/11.08, allocations: 159 kB / 6.658 GB, free: 18.53 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002833/11.08, allocations: 116 kB / 6.658 GB, free: 18.42 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003755/11.08, allocations: 2.94 MB / 6.661 GB, free: 15.47 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003652/11.08, allocations: 3.094 MB / 6.664 GB, free: 12.2 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.568e-05/11.08, allocations: 4 kB / 6.664 GB, free: 12.2 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002294/11.08, allocations: 7.906 kB / 6.664 GB, free: 12.19 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001347/11.08, allocations: 223.7 kB / 6.664 GB, free: 11.97 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1629/11.25, allocations: 12.05 MB / 6.676 GB, free: 64.45 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001989/11.25, allocations: 1.365 MB / 6.678 GB, free: 64.43 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001527/11.25, allocations: 1.34 MB / 6.679 GB, free: 64.42 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006876/11.26, allocations: 6.002 MB / 6.685 GB, free: 61.59 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.017e-05/11.26, allocations: 66.22 kB / 6.685 GB, free: 61.55 MB / 490.7 MB Notification: Performance of pre-optimization done (n=173): time 2.965e-06/11.26, allocations: 0 / 6.685 GB, free: 61.55 MB / 490.7 MB Notification: Performance of matching and sorting (n=199): time 0.02222/11.28, allocations: 8.825 MB / 6.693 GB, free: 60.9 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.011e-05/11.28, allocations: 124.3 kB / 6.693 GB, free: 60.77 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001517/11.28, allocations: 1.222 MB / 6.695 GB, free: 60.61 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001594/11.28, allocations: 25.7 kB / 6.695 GB, free: 60.58 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003015/11.28, allocations: 0.7975 MB / 6.695 GB, free: 60.2 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004424/11.28, allocations: 0.6609 MB / 6.696 GB, free: 59.76 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001465/11.28, allocations: 0 / 6.696 GB, free: 59.76 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001014/11.28, allocations: 400.8 kB / 6.696 GB, free: 59.45 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001524/11.28, allocations: 1.209 MB / 6.698 GB, free: 59.45 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001689/11.29, allocations: 1.712 MB / 6.699 GB, free: 58.9 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007714/11.29, allocations: 2.726 MB / 6.702 GB, free: 58.88 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.237e-06/11.29, allocations: 5.25 kB / 6.702 GB, free: 58.88 MB / 490.7 MB Notification: Performance of matching and sorting (n=294) (initialization): time 0.01143/11.31, allocations: 5.336 MB / 6.707 GB, free: 58.69 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007078/11.31, allocations: 5.775 MB / 6.713 GB, free: 52.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.935e-05/11.31, allocations: 16.25 kB / 6.713 GB, free: 52.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008619/11.31, allocations: 2.617 MB / 6.715 GB, free: 52.76 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001137/11.32, allocations: 325.8 kB / 6.716 GB, free: 52.76 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007695/11.32, allocations: 4.748 MB / 6.72 GB, free: 52.17 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002185/11.33, allocations: 140.7 kB / 6.721 GB, free: 52.16 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002491/11.33, allocations: 116.2 kB / 6.721 GB, free: 52.16 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.883e-06/11.33, allocations: 3.719 kB / 6.721 GB, free: 52.16 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0102/11.34, allocations: 4.736 MB / 6.725 GB, free: 52.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.616e-05/11.34, allocations: 15.66 kB / 6.725 GB, free: 52.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007732/11.34, allocations: 2.312 MB / 6.728 GB, free: 52.07 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001399/11.35, allocations: 365.8 kB / 6.728 GB, free: 52.07 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005739/11.35, allocations: 4.021 MB / 6.732 GB, free: 51.48 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002016/11.35, allocations: 137.4 kB / 6.732 GB, free: 51.47 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002354/11.35, allocations: 106.9 kB / 6.732 GB, free: 51.47 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.0005128/11.35, allocations: 159.9 kB / 6.732 GB, free: 51.35 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003296/11.35, allocations: 205.8 kB / 6.732 GB, free: 51.25 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008775/11.36, allocations: 4.391 MB / 6.737 GB, free: 51.05 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.279e-05/11.36, allocations: 26.73 kB / 6.737 GB, free: 51.05 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-05/11.36, allocations: 7.234 kB / 6.737 GB, free: 51.05 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006707/11.37, allocations: 3.659 MB / 6.74 GB, free: 50.59 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01175/11.38, allocations: 6.433 MB / 6.747 GB, free: 50.18 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.003e-06/11.38, allocations: 0.8438 kB / 6.747 GB, free: 50.18 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001463/11.38, allocations: 319 kB / 6.747 GB, free: 50.18 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003114/11.39, allocations: 1.027 MB / 6.748 GB, free: 50.11 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001928/11.39, allocations: 48.14 kB / 6.748 GB, free: 50.11 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008021/11.39, allocations: 10.33 MB / 6.758 GB, free: 42.49 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/11.39, allocations: 3.906 kB / 6.758 GB, free: 42.49 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009511/11.4, allocations: 5.529 MB / 6.763 GB, free: 42.1 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01518/11.42, allocations: 11.4 MB / 6.775 GB, free: 41.3 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00124/11.42, allocations: 0.5895 MB / 6.775 GB, free: 41.1 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003985/11.42, allocations: 16.94 kB / 6.775 GB, free: 41.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001603/11.42, allocations: 114.3 kB / 6.775 GB, free: 41.09 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002813/11.42, allocations: 149.9 kB / 6.775 GB, free: 41.09 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002108/11.42, allocations: 80.67 kB / 6.775 GB, free: 41.09 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.001081/11.42, allocations: 0.8897 MB / 6.776 GB, free: 40.98 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.006405/11.43, allocations: 2.131 MB / 6.778 GB, free: 40.9 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.002241/11.43, allocations: 1.351 MB / 6.78 GB, free: 40.71 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008083/11.44, allocations: 4.93 MB / 6.785 GB, free: 40.59 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/11.44, allocations: 3.719 kB / 6.785 GB, free: 40.59 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003146/11.44, allocations: 2.108 MB / 6.787 GB, free: 40.08 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003441/11.45, allocations: 0.804 MB / 6.787 GB, free: 40.07 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007871/11.46, allocations: 4.794 MB / 6.792 GB, free: 39.23 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001777/11.46, allocations: 2.194 MB / 6.794 GB, free: 38.47 MB / 490.7 MB Notification: Performance of SimCode: time 4.21e-07/11.46, allocations: 0 / 6.794 GB, free: 38.47 MB / 490.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_HeatingSystem_fmu --startTime=0 --stopTime=6000 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_HeatingSystem.fmu > Modelica_trunk_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)