Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization.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.TestComponents.Vessels.TestInitialization,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Vessels_TestInitialization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Vessels_TestInitialization",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.0009463/0.0009463, allocations: 174.8 kB / 8.518 MB, free: 1.832 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.135/1.135, allocations: 221.4 MB / 230.3 MB, free: 7.629 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.0008948/0.0008948, allocations: 86.55 kB / 281.2 MB, free: 5.445 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.1521/0.1521, allocations: 44.14 MB / 376.1 MB, free: 3.215 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1663/0.3185, allocations: 68.04 MB / 444.1 MB, free: 15.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08779/0.4063, allocations: 61.91 MB / 0.4942 GB, free: 1.52 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7661/1.172, allocations: 406.9 MB / 0.8915 GB, free: 166.4 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002577/1.173, allocations: 90.56 kB / 0.8916 GB, free: 166.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: 179 * Number of variables: 179 Notification: Performance of Generate backend data structure: time 0.4096/1.582, allocations: 197 MB / 1.084 GB, free: 10.23 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.243e-05/1.582, allocations: 17.12 kB / 1.084 GB, free: 10.21 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007106/1.583, allocations: 122.7 kB / 1.084 GB, free: 10.09 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001718/1.585, allocations: 0.7881 MB / 1.085 GB, free: 9.266 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.835e-05/1.585, allocations: 96.7 kB / 1.085 GB, free: 9.156 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001789/1.585, allocations: 39.91 kB / 1.085 GB, free: 9.117 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001725/1.587, allocations: 1.097 MB / 1.086 GB, free: 8.023 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001578/1.588, allocations: 1.122 MB / 1.087 GB, free: 6.855 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.7e-05/1.588, allocations: 4 kB / 1.087 GB, free: 6.852 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001183/1.589, allocations: 0 / 1.087 GB, free: 6.852 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-05/1.589, allocations: 77.94 kB / 1.087 GB, free: 6.777 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007196/1.596, allocations: 4.588 MB / 1.092 GB, free: 1.961 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006355/1.597, allocations: 486.5 kB / 1.092 GB, free: 1.48 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004828/1.597, allocations: 426.2 kB / 1.093 GB, free: 1.062 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1454/1.742, allocations: 2.579 MB / 1.095 GB, free: 149.7 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.13e-05/1.743, allocations: 38.38 kB / 1.095 GB, free: 149.6 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=50): time 3.046e-06/1.743, allocations: 0 / 1.095 GB, free: 149.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=55): time 0.008427/1.751, allocations: 3.093 MB / 1.098 GB, free: 149.2 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.492e-05/1.751, allocations: 161.8 kB / 1.098 GB, free: 149 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007279/1.752, allocations: 0.64 MB / 1.099 GB, free: 148.9 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 7.316e-05/1.752, allocations: 25.7 kB / 1.099 GB, free: 148.8 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001583/1.752, allocations: 393.2 kB / 1.099 GB, free: 148.6 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.000143/1.752, allocations: 182.7 kB / 1.1 GB, free: 148.5 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.681e-05/1.752, allocations: 0 / 1.1 GB, free: 148.5 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001141/1.752, allocations: 397.7 kB / 1.1 GB, free: 148.2 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005858/1.753, allocations: 444.9 kB / 1.1 GB, free: 148.2 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006884/1.754, allocations: 0.6666 MB / 1.101 GB, free: 147.9 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002876/1.757, allocations: 1.03 MB / 1.102 GB, free: 147.9 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.961e-06/1.757, allocations: 3.469 kB / 1.102 GB, free: 147.9 MB / 0.5105 GB Notification: Performance of matching and sorting (n=112) (initialization): time 0.004339/1.761, allocations: 1.967 MB / 1.104 GB, free: 147.7 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006341/1.762, allocations: 2.44 MB / 1.106 GB, free: 145.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.66e-05/1.762, allocations: 3.906 kB / 1.106 GB, free: 145.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001145/1.763, allocations: 441 kB / 1.107 GB, free: 145.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008458/1.764, allocations: 182.1 kB / 1.107 GB, free: 145.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003204/1.767, allocations: 3.181 MB / 1.11 GB, free: 142.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009347/1.768, allocations: 37.97 kB / 1.11 GB, free: 142.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.822e-05/1.768, allocations: 49.92 kB / 1.11 GB, free: 142.9 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 5.901e-06/1.768, allocations: 3.688 kB / 1.11 GB, free: 142.9 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00383/1.772, allocations: 1.761 MB / 1.112 GB, free: 142.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/1.772, allocations: 10.72 kB / 1.112 GB, free: 142.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008274/1.773, allocations: 377.5 kB / 1.112 GB, free: 142.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000762/1.773, allocations: 187.3 kB / 1.112 GB, free: 142.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002455/1.776, allocations: 2.984 MB / 1.115 GB, free: 140.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008802/1.777, allocations: 40.81 kB / 1.115 GB, free: 140.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001075/1.777, allocations: 48.66 kB / 1.115 GB, free: 140.6 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 4 (vol1.inFlow[1],vol1.inFlow[2],vol1.regularFlow[2],vol1.regularFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 96 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 2 {2 5,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.0003335/1.777, allocations: 131.7 kB / 1.116 GB, free: 140.4 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002237/1.777, allocations: 79.56 kB / 1.116 GB, free: 140.4 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003459/1.781, allocations: 1.592 MB / 1.117 GB, free: 140.2 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.147e-05/1.781, allocations: 7.688 kB / 1.117 GB, free: 140.2 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/1.781, allocations: 3.062 kB / 1.117 GB, free: 140.2 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.707e-06/1.781, allocations: 3.609 kB / 1.117 GB, free: 140.2 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0044/1.785, allocations: 2.452 MB / 1.12 GB, free: 139.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.389e-06/1.785, allocations: 0 / 1.12 GB, free: 139.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004938/1.786, allocations: 93.66 kB / 1.12 GB, free: 139.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009443/1.787, allocations: 422.5 kB / 1.12 GB, free: 139.8 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.935e-05/1.787, allocations: 10.53 kB / 1.12 GB, free: 139.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002789/1.79, allocations: 3.126 MB / 1.123 GB, free: 137.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/1.79, allocations: 0 / 1.123 GB, free: 137.6 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003274/1.793, allocations: 1.982 MB / 1.125 GB, free: 137.2 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003947/1.797, allocations: 2.92 MB / 1.128 GB, free: 136.4 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005373/1.798, allocations: 288.2 kB / 1.128 GB, free: 136.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002151/1.798, allocations: 0 / 1.128 GB, free: 136.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007542/1.799, allocations: 39.11 kB / 1.128 GB, free: 136.3 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000127/1.799, allocations: 50.84 kB / 1.128 GB, free: 136.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.573e-05/1.799, allocations: 32.88 kB / 1.128 GB, free: 136.3 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0006189/1.799, allocations: 488.7 kB / 1.129 GB, free: 136.2 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.004127/1.804, allocations: 0.9733 MB / 1.13 GB, free: 136.2 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (vol1.medium.p,vol1.medium.T) * Number of discrete variables: 2 (vol1.inFlow[1],vol1.inFlow[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 2 {2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.002268/1.806, allocations: 0.8258 MB / 1.131 GB, free: 136.1 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.003121/1.809, allocations: 1.832 MB / 1.132 GB, free: 135.9 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/1.809, allocations: 3.094 kB / 1.132 GB, free: 135.9 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0009431/1.81, allocations: 0.563 MB / 1.133 GB, free: 135.8 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00156/1.811, allocations: 304.8 kB / 1.133 GB, free: 135.8 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003539/1.815, allocations: 1.503 MB / 1.135 GB, free: 135.4 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007987/1.816, allocations: 1.191 MB / 1.136 GB, free: 134.7 MB / 0.5105 GB Notification: Performance of SimCode: time 6.31e-07/1.816, allocations: 0 / 1.136 GB, free: 134.7 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Vessels_TestInitialization_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Vessels_TestInitialization.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization.pipe 2>&1)