Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.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.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",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.001429/0.001429, allocations: 194.1 kB / 8.537 MB, free: 1.742 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.137/1.137, allocations: 225.5 MB / 234.4 MB, free: 3.434 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000909/0.000909, allocations: 93.98 kB / 286.3 MB, free: 5.219 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09969/0.1006, allocations: 56.9 MB / 343.2 MB, free: 8.535 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08761/0.1883, allocations: 51.46 MB / 394.7 MB, free: 5.008 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7252/0.9135, allocations: 412.1 MB / 0.7879 GB, free: 124.9 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002195/0.9138, allocations: 84.45 kB / 0.788 GB, free: 124.9 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.564/1.478, allocations: 217.6 MB / 1.001 GB, free: 62.7 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.332e-05/1.478, allocations: 11.12 kB / 1.001 GB, free: 62.7 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000477/1.478, allocations: 167.5 kB / 1.001 GB, free: 62.62 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001711/1.48, allocations: 0.9914 MB / 1.002 GB, free: 61.92 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001198/1.48, allocations: 201.5 kB / 1.002 GB, free: 61.75 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001659/1.48, allocations: 64.53 kB / 1.002 GB, free: 61.74 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002196/1.483, allocations: 1.658 MB / 1.004 GB, free: 61 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002123/1.485, allocations: 1.675 MB / 1.005 GB, free: 60.04 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.744e-05/1.485, allocations: 3.938 kB / 1.005 GB, free: 60.03 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001399/1.485, allocations: 2.75 kB / 1.005 GB, free: 60.03 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.397e-05/1.485, allocations: 106.7 kB / 1.005 GB, free: 60 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009567/1.495, allocations: 6.625 MB / 1.012 GB, free: 55.3 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00114/1.496, allocations: 0.9721 MB / 1.013 GB, free: 54.82 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009414/1.497, allocations: 0.8309 MB / 1.014 GB, free: 54.42 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004663/1.501, allocations: 3.904 MB / 1.017 GB, free: 51.37 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.998e-05/1.501, allocations: 47.06 kB / 1.017 GB, free: 51.32 MB / 442.7 MB Notification: Performance of pre-optimization done (n=110): time 2.685e-06/1.501, allocations: 0 / 1.017 GB, free: 51.32 MB / 442.7 MB Notification: Performance of matching and sorting (n=122): time 0.01771/1.519, allocations: 6.449 MB / 1.024 GB, free: 48.07 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.805e-05/1.519, allocations: 172.2 kB / 1.024 GB, free: 47.88 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007969/1.52, allocations: 0.6593 MB / 1.024 GB, free: 47.51 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001102/1.52, allocations: 28.89 kB / 1.025 GB, free: 47.48 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002222/1.52, allocations: 425.9 kB / 1.025 GB, free: 47.11 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00027/1.521, allocations: 394.9 kB / 1.025 GB, free: 46.78 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.142e-05/1.521, allocations: 0 / 1.025 GB, free: 46.78 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.083e-05/1.521, allocations: 359.1 kB / 1.026 GB, free: 46.43 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009724/1.522, allocations: 0.7505 MB / 1.026 GB, free: 46.07 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001049/1.523, allocations: 0.9929 MB / 1.027 GB, free: 45.43 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005999/1.529, allocations: 1.851 MB / 1.029 GB, free: 44.38 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.071e-06/1.529, allocations: 4 kB / 1.029 GB, free: 44.38 MB / 442.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.008326/1.537, allocations: 3.389 MB / 1.032 GB, free: 40.97 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002851/1.537, allocations: 2.174 MB / 1.035 GB, free: 38.62 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.131e-05/1.538, allocations: 12 kB / 1.035 GB, free: 38.61 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002063/1.54, allocations: 0.9832 MB / 1.036 GB, free: 37.64 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009441/1.541, allocations: 215.7 kB / 1.036 GB, free: 37.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007042/1.548, allocations: 6.643 MB / 1.042 GB, free: 30.49 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001461/1.549, allocations: 64.05 kB / 1.042 GB, free: 30.43 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001694/1.549, allocations: 75.95 kB / 1.042 GB, free: 30.35 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.142e-06/1.549, allocations: 4 kB / 1.042 GB, free: 30.35 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007937/1.557, allocations: 3.135 MB / 1.045 GB, free: 27.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/1.557, allocations: 8 kB / 1.045 GB, free: 27.19 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001945/1.559, allocations: 0.9242 MB / 1.046 GB, free: 26.25 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009597/1.56, allocations: 223.6 kB / 1.047 GB, free: 26.03 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006352/1.567, allocations: 6.409 MB / 1.053 GB, free: 19.32 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00125/1.568, allocations: 71.84 kB / 1.053 GB, free: 19.25 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001556/1.568, allocations: 55.97 kB / 1.053 GB, free: 19.2 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 12 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],$PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (128): * Single equations (assignments): 123 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {4 9,2 3,4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0003339/1.568, allocations: 143.6 kB / 1.053 GB, free: 19.05 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002041/1.569, allocations: 118.8 kB / 1.053 GB, free: 18.94 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007279/1.576, allocations: 3.266 MB / 1.056 GB, free: 15.68 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.505e-05/1.576, allocations: 15.98 kB / 1.056 GB, free: 15.67 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/1.576, allocations: 8 kB / 1.056 GB, free: 15.66 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.333e-05/1.576, allocations: 7.969 kB / 1.056 GB, free: 15.65 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008533/1.584, allocations: 4.668 MB / 1.061 GB, free: 10.96 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/1.584, allocations: 0 / 1.061 GB, free: 10.96 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007676/1.585, allocations: 155.8 kB / 1.061 GB, free: 10.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00215/1.587, allocations: 1.01 MB / 1.062 GB, free: 9.781 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001231/1.587, allocations: 19.97 kB / 1.062 GB, free: 9.762 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00684/1.594, allocations: 6.666 MB / 1.069 GB, free: 2.805 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/1.594, allocations: 0 / 1.069 GB, free: 2.805 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1289/1.723, allocations: 4.206 MB / 1.073 GB, free: 106.7 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009242/1.733, allocations: 5.868 MB / 1.078 GB, free: 106.2 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006962/1.733, allocations: 400.5 kB / 1.079 GB, free: 106.1 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002351/1.734, allocations: 3.719 kB / 1.079 GB, free: 106.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00106/1.735, allocations: 75.75 kB / 1.079 GB, free: 106.1 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002658/1.735, allocations: 123.9 kB / 1.079 GB, free: 106.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001453/1.735, allocations: 56.19 kB / 1.079 GB, free: 106.1 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0005351/1.736, allocations: 499.1 kB / 1.08 GB, free: 106 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004233/1.74, allocations: 1.181 MB / 1.081 GB, free: 106 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (upperTank.medium.T,upperTank.level,lowerTank.medium.T,lowerTank.level) * Number of discrete variables: 11 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {4 12,2 4,4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001602/1.741, allocations: 0.8107 MB / 1.082 GB, free: 105.9 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005569/1.747, allocations: 3.437 MB / 1.085 GB, free: 105.5 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/1.747, allocations: 0 / 1.085 GB, free: 105.5 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002207/1.749, allocations: 1.263 MB / 1.086 GB, free: 105.2 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002125/1.751, allocations: 475.2 kB / 1.087 GB, free: 105.2 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00636/1.758, allocations: 2.591 MB / 1.089 GB, free: 104.8 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001026/1.759, allocations: 1.442 MB / 1.091 GB, free: 104.1 MB / 442.7 MB Notification: Performance of SimCode: time 6.21e-07/1.759, allocations: 0 / 1.091 GB, free: 104.1 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_Tanks_TanksWithOverflow_fmu --startTime=0 --stopTime=25000 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_Tanks_TanksWithOverflow.fmu > Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1)