Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001314/0.001314, allocations: 179.1 kB / 8.477 MB, free: 1.883 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.13/1.13, allocations: 205.2 MB / 214.1 MB, free: 5.105 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008286/0.0008286, allocations: 85.94 kB / 262.1 MB, free: 5.152 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1499/0.1508, allocations: 52.96 MB / 315 MB, free: 41.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06432/0.2151, allocations: 47.58 MB / 362.6 MB, free: 9.875 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.668/0.8831, allocations: 409.1 MB / 0.7537 GB, free: 162 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001695/0.8833, allocations: 80.59 kB / 0.7537 GB, free: 162 MB / 426.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.5538/1.437, allocations: 213.9 MB / 0.9627 GB, free: 81.8 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.006e-05/1.437, allocations: 14.75 kB / 0.9627 GB, free: 81.8 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007419/1.438, allocations: 162 kB / 0.9628 GB, free: 81.72 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002163/1.44, allocations: 0.9979 MB / 0.9638 GB, free: 81.41 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000133/1.44, allocations: 198.9 kB / 0.964 GB, free: 81.25 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002575/1.441, allocations: 68.12 kB / 0.9641 GB, free: 81.25 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002385/1.443, allocations: 1.653 MB / 0.9657 GB, free: 81.24 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002298/1.445, allocations: 1.682 MB / 0.9673 GB, free: 81.03 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.724e-05/1.445, allocations: 3.938 kB / 0.9673 GB, free: 81.03 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001487/1.445, allocations: 3.969 kB / 0.9673 GB, free: 81.03 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.829e-05/1.446, allocations: 112.5 kB / 0.9674 GB, free: 81.02 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01006/1.456, allocations: 6.606 MB / 0.9739 GB, free: 79 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001189/1.457, allocations: 0.9748 MB / 0.9748 GB, free: 78.97 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009643/1.458, allocations: 0.8296 MB / 0.9756 GB, free: 78.96 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004738/1.463, allocations: 3.9 MB / 0.9795 GB, free: 77.36 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.326e-05/1.463, allocations: 49.19 kB / 0.9795 GB, free: 77.32 MB / 426.7 MB Notification: Performance of pre-optimization done (n=110): time 2.114e-06/1.463, allocations: 3.625 kB / 0.9795 GB, free: 77.32 MB / 426.7 MB Notification: Performance of matching and sorting (n=122): time 0.01725/1.48, allocations: 6.449 MB / 0.9858 GB, free: 76.2 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.607e-05/1.48, allocations: 166.8 kB / 0.986 GB, free: 76.02 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007606/1.481, allocations: 0.6593 MB / 0.9866 GB, free: 75.71 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001082/1.481, allocations: 25.7 kB / 0.9866 GB, free: 75.68 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002244/1.481, allocations: 428.2 kB / 0.987 GB, free: 75.37 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002888/1.481, allocations: 401.7 kB / 0.9874 GB, free: 75.06 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.954e-05/1.481, allocations: 0 / 0.9874 GB, free: 75.06 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.111e-05/1.481, allocations: 360.9 kB / 0.9878 GB, free: 74.73 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009531/1.482, allocations: 0.7554 MB / 0.9885 GB, free: 74.45 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001053/1.483, allocations: 0.9948 MB / 0.9895 GB, free: 73.91 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00925/1.493, allocations: 2.432 MB / 0.9918 GB, free: 73.46 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.1e-06/1.493, allocations: 1.188 kB / 0.9918 GB, free: 73.46 MB / 426.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.01223/1.505, allocations: 3.954 MB / 0.9957 GB, free: 72.49 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000292/1.505, allocations: 2.182 MB / 0.9978 GB, free: 70.18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.153e-05/1.505, allocations: 5.469 kB / 0.9978 GB, free: 70.18 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002145/1.507, allocations: 0.9771 MB / 0.9988 GB, free: 69.94 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009717/1.508, allocations: 219.9 kB / 0.999 GB, free: 69.93 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00713/1.516, allocations: 6.632 MB / 1.005 GB, free: 64.97 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001276/1.517, allocations: 67.7 kB / 1.006 GB, free: 64.96 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001652/1.517, allocations: 65.08 kB / 1.006 GB, free: 64.95 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.722e-06/1.517, allocations: 3.219 kB / 1.006 GB, free: 64.95 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01129/1.528, allocations: 3.707 MB / 1.009 GB, free: 63.74 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/1.528, allocations: 8 kB / 1.009 GB, free: 63.73 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001945/1.53, allocations: 0.9307 MB / 1.01 GB, free: 63.01 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009474/1.531, allocations: 226.1 kB / 1.01 GB, free: 62.84 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00614/1.537, allocations: 6.406 MB / 1.017 GB, free: 56.62 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001171/1.539, allocations: 73.28 kB / 1.017 GB, free: 56.57 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001659/1.539, allocations: 59.73 kB / 1.017 GB, free: 56.52 MB / 426.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.000332/1.539, allocations: 134.2 kB / 1.017 GB, free: 56.4 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002042/1.539, allocations: 118.3 kB / 1.017 GB, free: 56.29 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007495/1.547, allocations: 3.267 MB / 1.02 GB, free: 53.75 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.544e-05/1.547, allocations: 13.31 kB / 1.02 GB, free: 53.73 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/1.547, allocations: 4 kB / 1.02 GB, free: 53.73 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.667e-05/1.547, allocations: 9.781 kB / 1.02 GB, free: 53.73 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008639/1.556, allocations: 4.67 MB / 1.025 GB, free: 49.77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/1.556, allocations: 4 kB / 1.025 GB, free: 49.77 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007628/1.556, allocations: 150.1 kB / 1.025 GB, free: 49.62 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002096/1.558, allocations: 1.008 MB / 1.026 GB, free: 48.65 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001175/1.559, allocations: 23.97 kB / 1.026 GB, free: 48.62 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006758/1.565, allocations: 6.671 MB / 1.032 GB, free: 41.7 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/1.565, allocations: 10.08 kB / 1.032 GB, free: 41.69 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007476/1.573, allocations: 4.212 MB / 1.037 GB, free: 37.48 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008741/1.582, allocations: 5.866 MB / 1.042 GB, free: 31.61 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000689/1.582, allocations: 403.4 kB / 1.043 GB, free: 31.2 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002385/1.583, allocations: 7.156 kB / 1.043 GB, free: 31.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001075/1.584, allocations: 75.14 kB / 1.043 GB, free: 31.13 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002571/1.584, allocations: 129.1 kB / 1.043 GB, free: 31 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001293/1.584, allocations: 47.97 kB / 1.043 GB, free: 30.96 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.000522/1.585, allocations: 499.1 kB / 1.043 GB, free: 30.47 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004422/1.589, allocations: 1.163 MB / 1.045 GB, free: 29.31 MB / 426.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.001589/1.591, allocations: 0.8018 MB / 1.045 GB, free: 28.6 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005507/1.596, allocations: 3.438 MB / 1.049 GB, free: 25.16 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/1.596, allocations: 0 / 1.049 GB, free: 25.16 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002151/1.598, allocations: 1.264 MB / 1.05 GB, free: 23.88 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001971/1.6, allocations: 465.6 kB / 1.05 GB, free: 23.45 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006163/1.606, allocations: 2.588 MB / 1.053 GB, free: 21 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001012/1.607, allocations: 1.448 MB / 1.054 GB, free: 19.54 MB / 426.7 MB Notification: Performance of SimCode: time 3.31e-07/1.608, allocations: 0 / 1.054 GB, free: 19.54 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_TanksWithOverflow_fmu --startTime=0 --stopTime=25000 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_TanksWithOverflow.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1)