Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.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.ThreeTanks,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Tanks_ThreeTanks",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.001081/0.001081, allocations: 199.8 kB / 8.535 MB, free: 460 kB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.114/1.114, allocations: 225.5 MB / 234.4 MB, free: 9.48 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008674/0.0008674, allocations: 91.58 kB / 286.3 MB, free: 5.91 MB / 226.8 MB Notification: Performance of FrontEnd - loaded program: time 0.09458/0.09548, allocations: 56.89 MB / 343.2 MB, free: 13.02 MB / 290.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1889/0.2844, allocations: 51.45 MB / 394.7 MB, free: 47.63 MB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3815/0.6659, allocations: 321.7 MB / 0.6996 GB, free: 4.375 MB / 450.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002067/0.6662, allocations: 79.47 kB / 0.6997 GB, free: 4.34 MB / 450.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.7923/1.458, allocations: 275.2 MB / 0.9684 GB, free: 77.73 MB / 450.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.183e-05/1.459, allocations: 10 kB / 0.9685 GB, free: 77.73 MB / 450.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005012/1.459, allocations: 174.8 kB / 0.9686 GB, free: 77.65 MB / 450.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001972/1.461, allocations: 1.13 MB / 0.9697 GB, free: 77.32 MB / 450.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001061/1.461, allocations: 140.1 kB / 0.9699 GB, free: 77.22 MB / 450.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001623/1.461, allocations: 54.97 kB / 0.9699 GB, free: 77.22 MB / 450.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002184/1.464, allocations: 1.635 MB / 0.9715 GB, free: 77.21 MB / 450.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002163/1.466, allocations: 1.63 MB / 0.9731 GB, free: 77.04 MB / 450.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.947e-05/1.466, allocations: 9.594 kB / 0.9731 GB, free: 77.04 MB / 450.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001392/1.466, allocations: 7.594 kB / 0.9731 GB, free: 77.04 MB / 450.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.365e-05/1.466, allocations: 117.7 kB / 0.9732 GB, free: 77.04 MB / 450.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008954/1.475, allocations: 6.169 MB / 0.9793 GB, free: 73.04 MB / 450.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000981/1.476, allocations: 0.8873 MB / 0.9801 GB, free: 72.61 MB / 450.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007524/1.477, allocations: 0.6937 MB / 0.9808 GB, free: 72.27 MB / 450.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00431/1.481, allocations: 4.174 MB / 0.9849 GB, free: 68.66 MB / 450.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.389e-05/1.481, allocations: 47.19 kB / 0.9849 GB, free: 68.61 MB / 450.8 MB Notification: Performance of pre-optimization done (n=97): time 2.244e-06/1.481, allocations: 0 / 0.9849 GB, free: 68.61 MB / 450.8 MB Notification: Performance of matching and sorting (n=112): time 0.01155/1.493, allocations: 4.263 MB / 0.9891 GB, free: 66.06 MB / 450.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.322e-05/1.493, allocations: 152.3 kB / 0.9892 GB, free: 65.88 MB / 450.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009724/1.494, allocations: 0.8121 MB / 0.99 GB, free: 65.05 MB / 450.8 MB Notification: Performance of collectPreVariables (initialization): time 9.019e-05/1.494, allocations: 29.7 kB / 0.99 GB, free: 65.02 MB / 450.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001699/1.494, allocations: 470.8 kB / 0.9905 GB, free: 64.55 MB / 450.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.000239/1.494, allocations: 370.5 kB / 0.9909 GB, free: 64.18 MB / 450.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.118e-05/1.494, allocations: 0 / 0.9909 GB, free: 64.18 MB / 450.8 MB Notification: Performance of setup shared object (initialization): time 7.102e-05/1.494, allocations: 372.6 kB / 0.9912 GB, free: 63.81 MB / 450.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008078/1.495, allocations: 0.6209 MB / 0.9918 GB, free: 63.19 MB / 450.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000939/1.496, allocations: 0.9469 MB / 0.9927 GB, free: 62.12 MB / 450.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005183/1.501, allocations: 1.615 MB / 0.9943 GB, free: 60.54 MB / 450.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/1.501, allocations: 4 kB / 0.9943 GB, free: 60.54 MB / 450.8 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.007068/1.508, allocations: 2.876 MB / 0.9971 GB, free: 57.69 MB / 450.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004907/1.509, allocations: 3.48 MB / 1.001 GB, free: 53.97 MB / 450.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.407e-05/1.509, allocations: 12 kB / 1.001 GB, free: 53.96 MB / 450.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006432/1.515, allocations: 1.107 MB / 1.002 GB, free: 52.89 MB / 450.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001223/1.517, allocations: 295.5 kB / 1.002 GB, free: 52.61 MB / 450.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003822/1.52, allocations: 1.962 MB / 1.004 GB, free: 50.63 MB / 450.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001362/1.522, allocations: 58.61 kB / 1.004 GB, free: 50.57 MB / 450.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001505/1.522, allocations: 67.95 kB / 1.004 GB, free: 50.51 MB / 450.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.474e-06/1.522, allocations: 11.41 kB / 1.004 GB, free: 50.5 MB / 450.8 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006595/1.529, allocations: 2.569 MB / 1.006 GB, free: 47.96 MB / 450.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/1.529, allocations: 9.031 kB / 1.006 GB, free: 47.95 MB / 450.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006257/1.535, allocations: 1.052 MB / 1.007 GB, free: 46.95 MB / 450.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001171/1.536, allocations: 295.6 kB / 1.008 GB, free: 46.66 MB / 450.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002922/1.539, allocations: 1.708 MB / 1.009 GB, free: 44.94 MB / 450.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001321/1.54, allocations: 58.7 kB / 1.009 GB, free: 44.88 MB / 450.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001433/1.54, allocations: 67.97 kB / 1.01 GB, free: 44.82 MB / 450.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (153): * Single equations (assignments): 152 * 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 {9 17} Notification: Performance of prepare postOptimizeDAE: time 0.0003437/1.541, allocations: 148.5 kB / 1.01 GB, free: 44.67 MB / 450.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002153/1.541, allocations: 126.5 kB / 1.01 GB, free: 44.54 MB / 450.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005399/1.546, allocations: 2.263 MB / 1.012 GB, free: 42.33 MB / 450.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.164e-05/1.546, allocations: 16 kB / 1.012 GB, free: 42.31 MB / 450.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/1.547, allocations: 0 / 1.012 GB, free: 42.31 MB / 450.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.127e-05/1.547, allocations: 7.969 kB / 1.012 GB, free: 42.3 MB / 450.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00619/1.553, allocations: 3.537 MB / 1.016 GB, free: 38.77 MB / 450.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/1.553, allocations: 0 / 1.016 GB, free: 38.77 MB / 450.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000937/1.554, allocations: 191.8 kB / 1.016 GB, free: 38.58 MB / 450.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002905/1.557, allocations: 0.8182 MB / 1.016 GB, free: 37.79 MB / 450.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.943e-05/1.557, allocations: 22.78 kB / 1.017 GB, free: 37.77 MB / 450.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003342/1.56, allocations: 1.967 MB / 1.018 GB, free: 35.79 MB / 450.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/1.56, allocations: 7.656 kB / 1.018 GB, free: 35.79 MB / 450.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005052/1.565, allocations: 2.971 MB / 1.021 GB, free: 32.81 MB / 450.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006145/1.571, allocations: 4.31 MB / 1.026 GB, free: 28.49 MB / 450.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006782/1.572, allocations: 379 kB / 1.026 GB, free: 28.11 MB / 450.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002374/1.572, allocations: 11.5 kB / 1.026 GB, free: 28.1 MB / 450.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00108/1.573, allocations: 61.19 kB / 1.026 GB, free: 28.04 MB / 450.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002081/1.574, allocations: 93.16 kB / 1.026 GB, free: 27.95 MB / 450.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001264/1.574, allocations: 51.95 kB / 1.026 GB, free: 27.9 MB / 450.8 MB Notification: Performance of sort global known variables: time 0.0007507/1.574, allocations: 0.6006 MB / 1.027 GB, free: 27.29 MB / 450.8 MB Notification: Performance of remove unused functions: time 0.004924/1.579, allocations: 1.382 MB / 1.028 GB, free: 25.91 MB / 450.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level,tank3.medium.T,tank3.level) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * 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 {9 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.001771/1.581, allocations: 1.063 MB / 1.029 GB, free: 24.96 MB / 450.8 MB Notification: Performance of simCode: created initialization part: time 0.004529/1.586, allocations: 2.544 MB / 1.032 GB, free: 22.43 MB / 450.8 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/1.586, allocations: 5.031 kB / 1.032 GB, free: 22.42 MB / 450.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001452/1.587, allocations: 0.8125 MB / 1.032 GB, free: 21.62 MB / 450.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002283/1.589, allocations: 0.5211 MB / 1.033 GB, free: 21.14 MB / 450.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004753/1.594, allocations: 2.467 MB / 1.035 GB, free: 18.76 MB / 450.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009874/1.595, allocations: 1.491 MB / 1.037 GB, free: 17.23 MB / 450.8 MB Notification: Performance of SimCode: time 5.52e-07/1.595, allocations: 0 / 1.037 GB, free: 17.23 MB / 450.8 MB (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_Tanks_ThreeTanks_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_Tanks_ThreeTanks.fmu > Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1)