Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.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.TestPipesAndValves.DynamicPipeClosingValve,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve",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.00106/0.00106, allocations: 202.3 kB / 8.54 MB, free: 1.801 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.212/1.212, allocations: 225.5 MB / 234.4 MB, free: 3.273 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009399/0.0009399, allocations: 94.17 kB / 286.3 MB, free: 5.285 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1759/0.1759, allocations: 45.15 MB / 383.3 MB, free: 484 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.206/0.3819, allocations: 69.37 MB / 452.7 MB, free: 76.05 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09317/0.4751, allocations: 63.23 MB / 0.5039 GB, free: 12.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.413/4.888, allocations: 2.829 GB / 3.333 GB, free: 90.59 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002552/4.888, allocations: 75.97 kB / 3.333 GB, free: 90.52 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: 196 * Number of variables: 196 Notification: Performance of Generate backend data structure: time 1.365/6.253, allocations: 469.8 MB / 3.792 GB, free: 24.63 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/6.253, allocations: 8 kB / 3.792 GB, free: 24.62 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003065/6.256, allocations: 390.3 kB / 3.793 GB, free: 24.24 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002417/6.259, allocations: 0.8868 MB / 3.793 GB, free: 23.32 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.515e-05/6.259, allocations: 32 kB / 3.793 GB, free: 23.29 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002413/6.259, allocations: 44 kB / 3.793 GB, free: 23.25 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001748/6.261, allocations: 0.9527 MB / 3.794 GB, free: 22.29 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001833/6.263, allocations: 1.112 MB / 3.796 GB, free: 21.09 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.932e-05/6.263, allocations: 4 kB / 3.796 GB, free: 21.09 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001197/6.263, allocations: 4 kB / 3.796 GB, free: 21.08 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.191e-05/6.263, allocations: 61.91 kB / 3.796 GB, free: 21.02 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4068/6.67, allocations: 113.6 MB / 3.907 GB, free: 61.71 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00067/6.67, allocations: 340.7 kB / 3.907 GB, free: 61.7 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004469/6.671, allocations: 281.3 kB / 3.907 GB, free: 61.69 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03293/6.704, allocations: 19.17 MB / 3.926 GB, free: 48.73 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.359e-05/6.704, allocations: 41.78 kB / 3.926 GB, free: 48.69 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=42): time 2.625e-06/6.704, allocations: 0 / 3.926 GB, free: 48.69 MB / 0.5417 GB Notification: Performance of matching and sorting (n=46): time 0.008422/6.712, allocations: 2.346 MB / 3.928 GB, free: 48.34 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.604e-05/6.712, allocations: 136 kB / 3.928 GB, free: 48.18 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008394/6.713, allocations: 0.577 MB / 3.929 GB, free: 48.06 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 7.471e-05/6.713, allocations: 27.2 kB / 3.929 GB, free: 48.03 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002143/6.714, allocations: 395.1 kB / 3.929 GB, free: 47.82 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001336/6.714, allocations: 158.2 kB / 3.929 GB, free: 47.75 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.51e-05/6.714, allocations: 3.734 kB / 3.929 GB, free: 47.75 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001022/6.714, allocations: 383.6 kB / 3.93 GB, free: 47.43 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000511/6.714, allocations: 367.1 kB / 3.93 GB, free: 47.43 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005635/6.715, allocations: 0.5606 MB / 3.931 GB, free: 47.19 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002501/6.717, allocations: 0.7333 MB / 3.931 GB, free: 47.18 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/6.717, allocations: 0 / 3.931 GB, free: 47.18 MB / 0.5417 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.005774/6.723, allocations: 1.924 MB / 3.933 GB, free: 47.08 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007928/6.724, allocations: 2.267 MB / 3.935 GB, free: 44.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.566e-05/6.724, allocations: 3.969 kB / 3.935 GB, free: 44.7 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00207/6.726, allocations: 0.4983 MB / 3.936 GB, free: 44.68 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006695/6.727, allocations: 162.4 kB / 3.936 GB, free: 44.68 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002311/6.729, allocations: 1.557 MB / 3.938 GB, free: 44.14 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001195/6.73, allocations: 125 kB / 3.938 GB, free: 44.13 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001096/6.731, allocations: 42.94 kB / 3.938 GB, free: 44.13 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 9.037e-06/6.731, allocations: 3.969 kB / 3.938 GB, free: 44.13 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003582/6.734, allocations: 1.319 MB / 3.939 GB, free: 44.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.361e-05/6.734, allocations: 3.719 kB / 3.939 GB, free: 44.1 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001565/6.736, allocations: 403.8 kB / 3.94 GB, free: 44.08 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006767/6.736, allocations: 177.7 kB / 3.94 GB, free: 44.08 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00124/6.738, allocations: 1.173 MB / 3.941 GB, free: 43.55 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001018/6.739, allocations: 102.8 kB / 3.941 GB, free: 43.54 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.77e-05/6.739, allocations: 43.98 kB / 3.941 GB, free: 43.53 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 9 (valve.state_b.phase,valve.state_a.phase,pipe.state_a.phase,pipe.statesFM[2].phase,sink.medium.phase,source.medium.phase,sink.state.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 67 * 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 23} Notification: Performance of prepare postOptimizeDAE: time 0.0002469/6.739, allocations: 124 kB / 3.941 GB, free: 43.43 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001007/6.74, allocations: 330 kB / 3.941 GB, free: 43.39 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002906/6.743, allocations: 1.858 MB / 3.943 GB, free: 43.25 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.127e-05/6.743, allocations: 16.22 kB / 3.943 GB, free: 43.25 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.884e-06/6.743, allocations: 3.156 kB / 3.943 GB, free: 43.25 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001976/6.745, allocations: 1.773 MB / 3.945 GB, free: 42.82 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003999/6.749, allocations: 2.811 MB / 3.948 GB, free: 42.48 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.139e-06/6.749, allocations: 0 / 3.948 GB, free: 42.48 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005345/6.75, allocations: 120.7 kB / 3.948 GB, free: 42.47 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002656/6.75, allocations: 83.53 kB / 3.948 GB, free: 42.46 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.663e-05/6.75, allocations: 18.08 kB / 3.948 GB, free: 42.46 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003847/6.75, allocations: 0.6791 MB / 3.949 GB, free: 41.93 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.811e-06/6.75, allocations: 3.812 kB / 3.949 GB, free: 41.93 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003562/6.754, allocations: 2.325 MB / 3.951 GB, free: 41.61 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004256/6.758, allocations: 3.374 MB / 3.954 GB, free: 40.91 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005423/6.759, allocations: 281.9 kB / 3.954 GB, free: 40.77 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000246/6.759, allocations: 9.312 kB / 3.954 GB, free: 40.77 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007611/6.76, allocations: 63.86 kB / 3.954 GB, free: 40.76 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001033/6.76, allocations: 43.03 kB / 3.955 GB, free: 40.76 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.744e-05/6.76, allocations: 21.47 kB / 3.955 GB, free: 40.76 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.000583/6.761, allocations: 439.9 kB / 3.955 GB, free: 40.67 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.00807/6.769, allocations: 2.034 MB / 3.957 GB, free: 40.66 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (pipe.mediums[1].p,pipe.mediums[1].h) * Number of discrete variables: 9 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,pipe.statesFM[2].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 50 * 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: 1 * Mixed (continuous/discrete) equation systems: 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.009994/6.779, allocations: 2.149 MB / 3.959 GB, free: 40.45 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002836/6.782, allocations: 1.67 MB / 3.961 GB, free: 40.42 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.143e-06/6.782, allocations: 3.875 kB / 3.961 GB, free: 40.42 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001023/6.783, allocations: 0.8053 MB / 3.961 GB, free: 40.41 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001831/6.785, allocations: 298.3 kB / 3.962 GB, free: 40.4 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003484/6.788, allocations: 1.828 MB / 3.964 GB, free: 39.96 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009442/6.789, allocations: 1.244 MB / 3.965 GB, free: 39.23 MB / 0.5417 GB Notification: Performance of SimCode: time 9.32e-07/6.789, allocations: 0 / 3.965 GB, free: 39.23 MB / 0.5417 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe 2>&1)