Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve,fileNamePrefix="ModelicaTest_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001539/0.001539, allocations: 184.6 kB / 8.521 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.196/1.196, allocations: 221.4 MB / 230.3 MB, free: 7.648 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009957/0.0009957, allocations: 86.36 kB / 281.2 MB, free: 5.457 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1594/0.1594, allocations: 44.15 MB / 376.1 MB, free: 3.219 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1843/0.3437, allocations: 68.02 MB / 444.1 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09526/0.439, allocations: 61.91 MB / 0.4942 GB, free: 1.531 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.384/4.823, allocations: 2.828 GB / 3.323 GB, free: 151.4 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002295/4.823, allocations: 81.39 kB / 3.323 GB, free: 151.4 MB / 0.5105 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.393/6.216, allocations: 470 MB / 3.782 GB, free: 63.26 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/6.216, allocations: 12.66 kB / 3.782 GB, free: 63.25 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002627/6.219, allocations: 395.2 kB / 3.782 GB, free: 63.16 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001856/6.221, allocations: 0.8998 MB / 3.783 GB, free: 62.66 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.957e-05/6.221, allocations: 36.84 kB / 3.783 GB, free: 62.66 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000128/6.221, allocations: 42.78 kB / 3.783 GB, free: 62.66 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001398/6.222, allocations: 0.9469 MB / 3.784 GB, free: 62.34 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00142/6.224, allocations: 1.107 MB / 3.785 GB, free: 61.78 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.692e-05/6.224, allocations: 11.34 kB / 3.785 GB, free: 61.77 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.203e-05/6.224, allocations: 3.875 kB / 3.785 GB, free: 61.77 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.121e-05/6.224, allocations: 55.47 kB / 3.785 GB, free: 61.77 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3959/6.62, allocations: 101.2 MB / 3.884 GB, free: 117.7 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005228/6.62, allocations: 350.1 kB / 3.884 GB, free: 117.7 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000326/6.621, allocations: 280 kB / 3.885 GB, free: 117.7 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02825/6.649, allocations: 16.77 MB / 3.901 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.148e-05/6.649, allocations: 38.19 kB / 3.901 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=42): time 2.384e-06/6.649, allocations: 0 / 3.901 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of matching and sorting (n=46): time 0.006663/6.656, allocations: 2.346 MB / 3.903 GB, free: 107 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.286e-05/6.656, allocations: 139.1 kB / 3.903 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007017/6.656, allocations: 0.581 MB / 3.904 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 4.686e-05/6.656, allocations: 25.7 kB / 3.904 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001702/6.657, allocations: 395.8 kB / 3.904 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001044/6.657, allocations: 152 kB / 3.904 GB, free: 106.4 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.518e-05/6.657, allocations: 0 / 3.904 GB, free: 106.4 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001077/6.657, allocations: 390.2 kB / 3.905 GB, free: 106.1 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004837/6.657, allocations: 362.8 kB / 3.905 GB, free: 106.1 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000564/6.658, allocations: 0.5657 MB / 3.906 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001868/6.66, allocations: 0.6824 MB / 3.906 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/6.66, allocations: 3.719 kB / 3.906 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.004256/6.664, allocations: 1.867 MB / 3.908 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004063/6.665, allocations: 2.264 MB / 3.91 GB, free: 103.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.096e-05/6.665, allocations: 11.19 kB / 3.91 GB, free: 103.4 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001694/6.666, allocations: 0.4937 MB / 3.911 GB, free: 103.4 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005852/6.667, allocations: 171.5 kB / 3.911 GB, free: 103.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002003/6.669, allocations: 1.548 MB / 3.913 GB, free: 102.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001013/6.67, allocations: 128.4 kB / 3.913 GB, free: 102.9 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.876e-05/6.67, allocations: 46.97 kB / 3.913 GB, free: 102.9 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 8.166e-06/6.67, allocations: 3.219 kB / 3.913 GB, free: 102.9 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002885/6.673, allocations: 1.263 MB / 3.914 GB, free: 102.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/6.673, allocations: 5.969 kB / 3.914 GB, free: 102.8 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001482/6.674, allocations: 396.6 kB / 3.914 GB, free: 102.8 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006175/6.675, allocations: 177 kB / 3.915 GB, free: 102.8 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001113/6.676, allocations: 1.169 MB / 3.916 GB, free: 102.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007946/6.677, allocations: 105.5 kB / 3.916 GB, free: 102.3 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.252e-05/6.677, allocations: 43.91 kB / 3.916 GB, free: 102.3 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.0002018/6.677, allocations: 129.5 kB / 3.916 GB, free: 102.2 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008708/6.678, allocations: 326 kB / 3.916 GB, free: 102.2 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002636/6.681, allocations: 1.869 MB / 3.918 GB, free: 102 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.869e-05/6.681, allocations: 16.67 kB / 3.918 GB, free: 102 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/6.681, allocations: 0 / 3.918 GB, free: 102 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0019/6.683, allocations: 1.773 MB / 3.92 GB, free: 101.6 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003484/6.686, allocations: 2.815 MB / 3.923 GB, free: 101.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.087e-06/6.686, allocations: 0 / 3.923 GB, free: 101.3 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004945/6.687, allocations: 120.6 kB / 3.923 GB, free: 101.3 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002484/6.687, allocations: 89.83 kB / 3.923 GB, free: 101.2 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.362e-05/6.687, allocations: 10.72 kB / 3.923 GB, free: 101.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003273/6.687, allocations: 0.6809 MB / 3.923 GB, free: 100.7 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/6.687, allocations: 0 / 3.923 GB, free: 100.7 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003119/6.691, allocations: 2.325 MB / 3.926 GB, free: 100.4 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003924/6.694, allocations: 3.371 MB / 3.929 GB, free: 99.71 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003547/6.695, allocations: 277.3 kB / 3.929 GB, free: 99.57 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001475/6.695, allocations: 6.688 kB / 3.929 GB, free: 99.57 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006291/6.696, allocations: 70.77 kB / 3.929 GB, free: 99.57 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001077/6.696, allocations: 43.11 kB / 3.929 GB, free: 99.57 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.924e-05/6.696, allocations: 19.53 kB / 3.929 GB, free: 99.57 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.0004734/6.696, allocations: 447.6 kB / 3.93 GB, free: 99.48 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.007924/6.704, allocations: 1.991 MB / 3.932 GB, free: 99.48 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.005907/6.71, allocations: 2.127 MB / 3.934 GB, free: 99.31 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002079/6.712, allocations: 1.676 MB / 3.936 GB, free: 99.29 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/6.712, allocations: 0 / 3.936 GB, free: 99.29 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0009082/6.713, allocations: 0.801 MB / 3.936 GB, free: 99.28 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001442/6.715, allocations: 310.9 kB / 3.937 GB, free: 99.27 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002779/6.717, allocations: 1.827 MB / 3.938 GB, free: 98.91 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007246/6.718, allocations: 1.248 MB / 3.94 GB, free: 98.2 MB / 0.5417 GB Notification: Performance of SimCode: time 3.8e-07/6.718, allocations: 0 / 3.94 GB, free: 98.2 MB / 0.5417 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe 2>&1)