Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve,fileNamePrefix="ModelicaTest_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001695/0.001695, allocations: 193.3 kB / 7.805 MB, free: 2.504 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.418/1.418, allocations: 205.2 MB / 213.4 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009029/0.0009027, allocations: 87.25 kB / 261.4 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2237/0.2237, allocations: 43.49 MB / 352.8 MB, free: 1.949 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2399/0.4637, allocations: 64.97 MB / 417.8 MB, free: 40.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3667/0.8304, allocations: 58.84 MB / 476.7 MB, free: 5.172 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.912/6.742, allocations: 2.824 GB / 3.289 GB, free: 42.77 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003023/6.743, allocations: 83.31 kB / 3.289 GB, free: 42.7 MB / 0.4948 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 2.188/8.931, allocations: 464.9 MB / 3.743 GB, free: 46.38 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.726e-05/8.931, allocations: 6.406 kB / 3.743 GB, free: 46.38 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003627/8.935, allocations: 396 kB / 3.743 GB, free: 46.32 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003551/8.938, allocations: 0.885 MB / 3.744 GB, free: 46.07 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001244/8.938, allocations: 39.73 kB / 3.744 GB, free: 46.07 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003631/8.939, allocations: 41.69 kB / 3.744 GB, free: 46.07 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002276/8.941, allocations: 0.945 MB / 3.745 GB, free: 46.06 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002302/8.943, allocations: 1.112 MB / 3.746 GB, free: 45.79 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.284e-05/8.943, allocations: 11.34 kB / 3.746 GB, free: 45.78 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001381/8.944, allocations: 3.844 kB / 3.746 GB, free: 45.78 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.621e-05/8.944, allocations: 56.3 kB / 3.746 GB, free: 45.78 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2233/9.167, allocations: 101.2 MB / 3.845 GB, free: 29.71 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001082/9.168, allocations: 341.8 kB / 3.846 GB, free: 29.7 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007499/9.169, allocations: 287 kB / 3.846 GB, free: 29.69 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04141/9.21, allocations: 16.77 MB / 3.862 GB, free: 18.67 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.711e-05/9.211, allocations: 38.75 kB / 3.862 GB, free: 18.62 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=42): time 4.258e-06/9.211, allocations: 0 / 3.862 GB, free: 18.62 MB / 0.5417 GB Notification: Performance of matching and sorting (n=46): time 0.01054/9.221, allocations: 2.347 MB / 3.865 GB, free: 18.18 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000118/9.221, allocations: 133.9 kB / 3.865 GB, free: 18.03 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001587/9.223, allocations: 0.5857 MB / 3.865 GB, free: 17.89 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001119/9.223, allocations: 30.86 kB / 3.865 GB, free: 17.86 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003731/9.223, allocations: 396.6 kB / 3.866 GB, free: 17.61 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002032/9.224, allocations: 154.3 kB / 3.866 GB, free: 17.51 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.43e-05/9.224, allocations: 1.156 kB / 3.866 GB, free: 17.51 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002619/9.224, allocations: 377.3 kB / 3.866 GB, free: 17.2 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008464/9.225, allocations: 367.3 kB / 3.867 GB, free: 17.2 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009352/9.226, allocations: 0.5706 MB / 3.867 GB, free: 16.95 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004456/9.23, allocations: 1.033 MB / 3.868 GB, free: 16.93 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.476e-06/9.23, allocations: 2.438 kB / 3.868 GB, free: 16.93 MB / 0.5417 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.007784/9.238, allocations: 2.238 MB / 3.87 GB, free: 16.82 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001312/9.239, allocations: 2.271 MB / 3.873 GB, free: 30.44 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.891e-05/9.24, allocations: 5.906 kB / 3.873 GB, free: 30.44 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002193/9.242, allocations: 0.4944 MB / 3.873 GB, free: 30.43 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007481/9.242, allocations: 164.8 kB / 3.873 GB, free: 30.42 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003211/9.246, allocations: 1.558 MB / 3.875 GB, free: 29.88 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001557/9.247, allocations: 120.6 kB / 3.875 GB, free: 29.86 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001495/9.247, allocations: 53.19 kB / 3.875 GB, free: 29.86 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.214e-05/9.247, allocations: 2.438 kB / 3.875 GB, free: 29.86 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006255/9.254, allocations: 1.622 MB / 3.876 GB, free: 29.82 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.003e-05/9.254, allocations: 9.312 kB / 3.877 GB, free: 29.82 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001703/9.255, allocations: 403.3 kB / 3.877 GB, free: 29.8 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007463/9.256, allocations: 179.5 kB / 3.877 GB, free: 29.8 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001786/9.258, allocations: 1.166 MB / 3.878 GB, free: 29.27 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001232/9.259, allocations: 109.3 kB / 3.878 GB, free: 29.25 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001251/9.259, allocations: 38.09 kB / 3.878 GB, free: 29.25 MB / 0.5573 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.000382/9.26, allocations: 135.2 kB / 3.878 GB, free: 29.13 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001259/9.261, allocations: 327.7 kB / 3.879 GB, free: 29.09 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004119/9.265, allocations: 1.858 MB / 3.881 GB, free: 28.71 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.504e-05/9.265, allocations: 22.3 kB / 3.881 GB, free: 28.7 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.707e-06/9.265, allocations: 0 / 3.881 GB, free: 28.7 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002465/9.268, allocations: 1.773 MB / 3.882 GB, free: 27.51 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005257/9.273, allocations: 2.807 MB / 3.885 GB, free: 25.97 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.785e-06/9.273, allocations: 3.75 kB / 3.885 GB, free: 25.97 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005479/9.274, allocations: 117.1 kB / 3.885 GB, free: 25.88 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002929/9.274, allocations: 88.81 kB / 3.885 GB, free: 25.84 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.016e-05/9.274, allocations: 15.69 kB / 3.885 GB, free: 25.83 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005494/9.275, allocations: 0.6808 MB / 3.886 GB, free: 25.21 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.449e-06/9.275, allocations: 2.156 kB / 3.886 GB, free: 25.21 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003933/9.278, allocations: 2.328 MB / 3.888 GB, free: 23.82 MB / 0.5573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005953/9.284, allocations: 3.358 MB / 3.892 GB, free: 21.76 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009843/9.285, allocations: 282.1 kB / 3.892 GB, free: 21.56 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004294/9.286, allocations: 4 kB / 3.892 GB, free: 21.55 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001056/9.287, allocations: 65.67 kB / 3.892 GB, free: 21.51 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001705/9.287, allocations: 48.2 kB / 3.892 GB, free: 21.49 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.799e-05/9.287, allocations: 26.44 kB / 3.892 GB, free: 21.47 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.00106/9.288, allocations: 441 kB / 3.892 GB, free: 21.19 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01208/9.3, allocations: 1.987 MB / 3.894 GB, free: 19.64 MB / 0.5573 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.01311/9.314, allocations: 2.119 MB / 3.896 GB, free: 17.98 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.003653/9.317, allocations: 1.672 MB / 3.898 GB, free: 17.06 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 9.498e-06/9.317, allocations: 0 / 3.898 GB, free: 17.06 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001256/9.319, allocations: 0.8037 MB / 3.899 GB, free: 16.67 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002263/9.321, allocations: 305.6 kB / 3.899 GB, free: 16.51 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004672/9.326, allocations: 1.823 MB / 3.901 GB, free: 15.21 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001496/9.327, allocations: 1.237 MB / 3.902 GB, free: 14.16 MB / 0.5573 GB Notification: Performance of SimCode: time 1.522e-06/9.327, allocations: 2.297 kB / 3.902 GB, free: 14.16 MB / 0.5573 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe 2>&1)