Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpStorage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpStorage",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.001341/0.001341, allocations: 199.2 kB / 8.541 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.279/1.279, allocations: 225.5 MB / 234.4 MB, free: 3.395 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009261/0.0009261, allocations: 86.22 kB / 286.3 MB, free: 5.262 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2026/0.2026, allocations: 45.14 MB / 383.3 MB, free: 0.5859 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2506/0.4533, allocations: 69.38 MB / 452.7 MB, free: 76.12 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.558, allocations: 63.25 MB / 0.5039 GB, free: 12.95 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.019/5.577, allocations: 2.787 GB / 3.291 GB, free: 122.9 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002544/5.577, allocations: 87.88 kB / 3.291 GB, free: 122.8 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 1.279/6.856, allocations: 442.3 MB / 3.723 GB, free: 58.41 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/6.856, allocations: 6.219 kB / 3.723 GB, free: 58.41 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002555/6.859, allocations: 351.8 kB / 3.724 GB, free: 58.34 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001009/6.86, allocations: 0.5706 MB / 3.724 GB, free: 57.97 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.708e-05/6.86, allocations: 26.59 kB / 3.724 GB, free: 57.96 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.396e-05/6.86, allocations: 30.41 kB / 3.724 GB, free: 57.96 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000848/6.861, allocations: 0.5452 MB / 3.725 GB, free: 57.77 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008887/6.862, allocations: 0.6664 MB / 3.725 GB, free: 57.4 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.063e-05/6.862, allocations: 0 / 3.725 GB, free: 57.4 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.111e-05/6.862, allocations: 3.312 kB / 3.726 GB, free: 57.4 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.694e-05/6.862, allocations: 22.41 kB / 3.726 GB, free: 57.4 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0195/6.881, allocations: 12.84 MB / 3.738 GB, free: 48.14 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000543/6.882, allocations: 323.7 kB / 3.738 GB, free: 48.01 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000316/6.882, allocations: 224 kB / 3.739 GB, free: 47.91 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1142/6.996, allocations: 63.59 MB / 3.801 GB, free: 9.918 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.748e-05/6.997, allocations: 39 kB / 3.801 GB, free: 9.871 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=47): time 1.924e-06/6.997, allocations: 0 / 3.801 GB, free: 9.871 MB / 0.5417 GB Notification: Performance of matching and sorting (n=51): time 0.00697/7.004, allocations: 1.849 MB / 3.803 GB, free: 8.262 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.443e-05/7.004, allocations: 107.2 kB / 3.803 GB, free: 8.133 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000658/7.004, allocations: 379.6 kB / 3.803 GB, free: 7.785 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 7.658e-05/7.004, allocations: 25.7 kB / 3.803 GB, free: 7.754 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001866/7.005, allocations: 270.2 kB / 3.803 GB, free: 7.512 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001743/7.005, allocations: 172.3 kB / 3.803 GB, free: 7.355 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.882e-05/7.005, allocations: 4 kB / 3.803 GB, free: 7.352 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001603/7.005, allocations: 362.2 kB / 3.804 GB, free: 7.004 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000424/7.005, allocations: 216.7 kB / 3.804 GB, free: 6.801 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004825/7.006, allocations: 376 kB / 3.804 GB, free: 6.387 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001341/7.007, allocations: 351.1 kB / 3.805 GB, free: 6.105 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.84e-06/7.007, allocations: 8 kB / 3.805 GB, free: 6.098 MB / 0.5417 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.003462/7.011, allocations: 1.121 MB / 3.806 GB, free: 5.16 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005957/7.011, allocations: 1.743 MB / 3.807 GB, free: 3.289 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.892e-05/7.011, allocations: 4 kB / 3.808 GB, free: 3.285 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001263/7.013, allocations: 305 kB / 3.808 GB, free: 3.055 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005496/7.013, allocations: 138.4 kB / 3.808 GB, free: 2.941 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001984/7.015, allocations: 1.043 MB / 3.809 GB, free: 1.945 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009216/7.016, allocations: 94.69 kB / 3.809 GB, free: 1.875 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.167e-05/7.016, allocations: 31.84 kB / 3.809 GB, free: 1.848 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 9.528e-06/7.016, allocations: 7.938 kB / 3.809 GB, free: 1.84 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002324/7.019, allocations: 0.7471 MB / 3.81 GB, free: 1.188 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.397e-05/7.019, allocations: 8.969 kB / 3.81 GB, free: 1.18 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00149/7.02, allocations: 287.8 kB / 3.81 GB, free: 0.9609 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005588/7.021, allocations: 144.4 kB / 3.81 GB, free: 0.8438 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1992/7.22, allocations: 0.9312 MB / 3.811 GB, free: 128.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000904/7.221, allocations: 78.73 kB / 3.811 GB, free: 128.8 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.915e-05/7.221, allocations: 32.78 kB / 3.811 GB, free: 128.8 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 6 (Source.medium.phase,Sink.medium.phase,pump.heatTransfer.states[1].phase,Valve.state_b.phase,Valve.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 54 * 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 {2 20} Notification: Performance of prepare postOptimizeDAE: time 0.0002055/7.221, allocations: 118.7 kB / 3.811 GB, free: 128.6 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007846/7.222, allocations: 273.1 kB / 3.812 GB, free: 128.6 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002953/7.225, allocations: 2.586 MB / 3.814 GB, free: 128.5 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.6e-05/7.225, allocations: 30.12 kB / 3.814 GB, free: 128.5 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/7.225, allocations: 2.562 kB / 3.814 GB, free: 128.5 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.095e-06/7.225, allocations: 2.906 kB / 3.814 GB, free: 128.5 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003529/7.229, allocations: 3.464 MB / 3.818 GB, free: 128.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/7.229, allocations: 0 / 3.818 GB, free: 128.1 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00072/7.229, allocations: 154.7 kB / 3.818 GB, free: 128.1 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002301/7.23, allocations: 67.23 kB / 3.818 GB, free: 128.1 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.257e-05/7.23, allocations: 18.14 kB / 3.818 GB, free: 128.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005171/7.23, allocations: 1.213 MB / 3.819 GB, free: 127 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/7.23, allocations: 5.094 kB / 3.819 GB, free: 127 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00315/7.233, allocations: 2.693 MB / 3.822 GB, free: 126.8 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003885/7.237, allocations: 3.742 MB / 3.825 GB, free: 126.1 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003316/7.238, allocations: 273.8 kB / 3.826 GB, free: 126 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001123/7.238, allocations: 2.438 kB / 3.826 GB, free: 126 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005609/7.238, allocations: 69.23 kB / 3.826 GB, free: 125.9 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001156/7.238, allocations: 59.75 kB / 3.826 GB, free: 125.9 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.453e-05/7.238, allocations: 31.78 kB / 3.826 GB, free: 125.9 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.0003335/7.239, allocations: 337.2 kB / 3.826 GB, free: 125.9 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006143/7.245, allocations: 1.693 MB / 3.828 GB, free: 125.9 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pump.medium.p,pump.medium.h) * Number of discrete variables: 19 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,Sink.medium.phase,pump.heatTransfer.states[1].phase,Source.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.006283/7.251, allocations: 1.891 MB / 3.829 GB, free: 125.8 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002694/7.254, allocations: 1.565 MB / 3.831 GB, free: 125.7 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/7.254, allocations: 0 / 3.831 GB, free: 125.7 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001146/7.255, allocations: 1.107 MB / 3.832 GB, free: 125.7 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001371/7.256, allocations: 260.6 kB / 3.832 GB, free: 125.7 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002465/7.259, allocations: 1.881 MB / 3.834 GB, free: 125.4 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005676/7.26, allocations: 1.158 MB / 3.835 GB, free: 124.7 MB / 0.5417 GB Notification: Performance of SimCode: time 2.8e-07/7.26, allocations: 3.656 kB / 3.835 GB, free: 124.7 MB / 0.5417 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpStorage_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpStorage.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.pipe 2>&1)