Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.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.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001119/0.001119, allocations: 185.6 kB / 8.132 MB, free: 2.211 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.153/1.153, allocations: 221.4 MB / 229.9 MB, free: 3.07 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.0009504/0.0009504, allocations: 110.2 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1034/0.1044, allocations: 55.8 MB / 336.6 MB, free: 9.434 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1925/0.2969, allocations: 50.4 MB / 387 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6137/0.9107, allocations: 411.3 MB / 0.7796 GB, free: 41.82 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001664/0.9109, allocations: 82.58 kB / 0.7797 GB, free: 41.79 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.6114/1.522, allocations: 218.1 MB / 0.9927 GB, free: 7.055 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.618e-05/1.522, allocations: 11.94 kB / 0.9927 GB, free: 7.043 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009323/1.523, allocations: 170.2 kB / 0.9929 GB, free: 6.875 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002823/1.526, allocations: 0.9881 MB / 0.9939 GB, free: 5.844 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001538/1.526, allocations: 202.5 kB / 0.994 GB, free: 5.613 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003946/1.527, allocations: 67.84 kB / 0.9941 GB, free: 5.547 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00284/1.53, allocations: 1.652 MB / 0.9957 GB, free: 3.895 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003001/1.533, allocations: 1.682 MB / 0.9974 GB, free: 2.141 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.459e-05/1.533, allocations: 0 / 0.9974 GB, free: 2.141 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000191/1.533, allocations: 0 / 0.9974 GB, free: 2.141 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.001e-05/1.533, allocations: 106 kB / 0.9975 GB, free: 2.035 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.137/1.67, allocations: 6.603 MB / 1.004 GB, free: 104.9 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001312/1.671, allocations: 0.9677 MB / 1.005 GB, free: 104.9 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001029/1.672, allocations: 0.8332 MB / 1.006 GB, free: 104.9 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005161/1.678, allocations: 3.894 MB / 1.009 GB, free: 103.3 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.475e-05/1.678, allocations: 48.56 kB / 1.01 GB, free: 103.3 MB / 442.7 MB Notification: Performance of pre-optimization done (n=110): time 2.696e-06/1.678, allocations: 0 / 1.01 GB, free: 103.3 MB / 442.7 MB Notification: Performance of matching and sorting (n=122): time 0.0188/1.696, allocations: 6.451 MB / 1.016 GB, free: 102.8 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.083e-05/1.697, allocations: 170.6 kB / 1.016 GB, free: 102.6 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008191/1.697, allocations: 0.6521 MB / 1.017 GB, free: 102.4 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001468/1.698, allocations: 32.23 kB / 1.017 GB, free: 102.4 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002532/1.698, allocations: 422.8 kB / 1.017 GB, free: 102.2 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003415/1.698, allocations: 395.8 kB / 1.017 GB, free: 102 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.728e-05/1.698, allocations: 0 / 1.017 GB, free: 102 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.761e-05/1.698, allocations: 358.3 kB / 1.018 GB, free: 101.7 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000965/1.699, allocations: 0.749 MB / 1.019 GB, free: 101.7 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001041/1.7, allocations: 0.9952 MB / 1.019 GB, free: 101.5 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005085/1.705, allocations: 1.747 MB / 1.021 GB, free: 101.4 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.484e-06/1.706, allocations: 7.156 kB / 1.021 GB, free: 101.4 MB / 442.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.007939/1.713, allocations: 3.283 MB / 1.024 GB, free: 101.3 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004092/1.714, allocations: 2.184 MB / 1.027 GB, free: 99.02 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.339e-05/1.714, allocations: 7.188 kB / 1.027 GB, free: 99.02 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002135/1.716, allocations: 0.9852 MB / 1.028 GB, free: 98.98 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001044/1.717, allocations: 218.7 kB / 1.028 GB, free: 98.98 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007378/1.725, allocations: 6.637 MB / 1.034 GB, free: 94.86 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001597/1.726, allocations: 74.55 kB / 1.034 GB, free: 94.86 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001748/1.726, allocations: 56.84 kB / 1.034 GB, free: 94.86 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.992e-06/1.726, allocations: 3.938 kB / 1.034 GB, free: 94.86 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007257/1.734, allocations: 3.032 MB / 1.037 GB, free: 94.78 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.239e-05/1.734, allocations: 6.656 kB / 1.037 GB, free: 94.78 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001994/1.736, allocations: 0.933 MB / 1.038 GB, free: 94.74 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001014/1.737, allocations: 226.3 kB / 1.038 GB, free: 94.74 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006602/1.743, allocations: 6.405 MB / 1.045 GB, free: 90.62 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001438/1.745, allocations: 72.14 kB / 1.045 GB, free: 90.61 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001798/1.745, allocations: 57.66 kB / 1.045 GB, free: 90.61 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.0003917/1.745, allocations: 139.8 kB / 1.045 GB, free: 90.5 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002536/1.746, allocations: 113.5 kB / 1.045 GB, free: 90.45 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007872/1.753, allocations: 3.26 MB / 1.048 GB, free: 90.32 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.017e-05/1.754, allocations: 14.5 kB / 1.048 GB, free: 90.32 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.04e-05/1.754, allocations: 5.406 kB / 1.048 GB, free: 90.32 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.638e-05/1.754, allocations: 14.67 kB / 1.048 GB, free: 90.32 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009412/1.763, allocations: 4.672 MB / 1.053 GB, free: 89.95 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.705e-06/1.763, allocations: 0 / 1.053 GB, free: 89.95 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008197/1.764, allocations: 153.7 kB / 1.053 GB, free: 89.95 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002324/1.766, allocations: 1.02 MB / 1.054 GB, free: 89.91 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001644/1.766, allocations: 17.72 kB / 1.054 GB, free: 89.91 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007223/1.774, allocations: 6.655 MB / 1.06 GB, free: 85.79 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/1.774, allocations: 0 / 1.06 GB, free: 85.79 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008082/1.782, allocations: 4.214 MB / 1.065 GB, free: 85.5 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009619/1.791, allocations: 5.868 MB / 1.07 GB, free: 84.85 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008791/1.792, allocations: 408.2 kB / 1.071 GB, free: 84.69 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002494/1.793, allocations: 0 / 1.071 GB, free: 84.69 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00113/1.794, allocations: 74.77 kB / 1.071 GB, free: 84.69 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002821/1.794, allocations: 128 kB / 1.071 GB, free: 84.69 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001358/1.794, allocations: 50.55 kB / 1.071 GB, free: 84.69 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0005372/1.795, allocations: 0.4933 MB / 1.071 GB, free: 84.59 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004441/1.799, allocations: 1.169 MB / 1.073 GB, free: 84.59 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.001718/1.801, allocations: 0.7942 MB / 1.073 GB, free: 84.49 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005849/1.807, allocations: 3.437 MB / 1.077 GB, free: 84.04 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/1.807, allocations: 0 / 1.077 GB, free: 84.04 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002274/1.809, allocations: 1.27 MB / 1.078 GB, free: 83.82 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002247/1.811, allocations: 475 kB / 1.078 GB, free: 83.82 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006709/1.818, allocations: 2.587 MB / 1.081 GB, free: 83.38 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001049/1.819, allocations: 1.439 MB / 1.082 GB, free: 82.66 MB / 442.7 MB Notification: Performance of SimCode: time 6.41e-07/1.819, allocations: 0 / 1.082 GB, free: 82.66 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_TanksWithOverflow_fmu --startTime=0 --stopTime=25000 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_TanksWithOverflow.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1)