Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization.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.Vessels.TestInitialization,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Vessels_TestInitialization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.0009439/0.0009439, allocations: 204.5 kB / 8.54 MB, free: 1.809 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.137/1.137, 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.0008165/0.0008166, allocations: 95.64 kB / 286.3 MB, free: 5.254 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1678/0.1678, allocations: 45.14 MB / 383.3 MB, free: 0.5742 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1935/0.3613, allocations: 69.38 MB / 452.7 MB, free: 76.12 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08884/0.4502, allocations: 63.24 MB / 0.5039 GB, free: 12.94 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6998/1.15, allocations: 407.9 MB / 0.9022 GB, free: 44.5 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000235/1.15, allocations: 86.22 kB / 0.9023 GB, free: 44.46 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: 179 * Number of variables: 179 Notification: Performance of Generate backend data structure: time 0.5793/1.73, allocations: 196.5 MB / 1.094 GB, free: 67.91 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.519e-05/1.73, allocations: 11.94 kB / 1.094 GB, free: 67.89 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003883/1.73, allocations: 122.7 kB / 1.094 GB, free: 67.77 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001449/1.732, allocations: 0.783 MB / 1.095 GB, free: 66.95 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.84e-05/1.732, allocations: 96.7 kB / 1.095 GB, free: 66.85 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001115/1.732, allocations: 40 kB / 1.095 GB, free: 66.81 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001436/1.733, allocations: 1.104 MB / 1.096 GB, free: 65.71 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001367/1.735, allocations: 1.122 MB / 1.097 GB, free: 64.54 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.352e-05/1.735, allocations: 0 / 1.097 GB, free: 64.54 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.46e-05/1.735, allocations: 4 kB / 1.097 GB, free: 64.54 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.411e-05/1.735, allocations: 73.95 kB / 1.097 GB, free: 64.46 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006377/1.741, allocations: 4.593 MB / 1.102 GB, free: 59.65 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005979/1.742, allocations: 482.5 kB / 1.102 GB, free: 59.17 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000469/1.742, allocations: 428.9 kB / 1.103 GB, free: 58.75 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002507/1.745, allocations: 2.581 MB / 1.105 GB, free: 55.92 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.136e-05/1.745, allocations: 42.98 kB / 1.105 GB, free: 55.87 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=50): time 1.773e-06/1.745, allocations: 0 / 1.105 GB, free: 55.87 MB / 0.5261 GB Notification: Performance of matching and sorting (n=55): time 0.008231/1.753, allocations: 3.084 MB / 1.108 GB, free: 52.7 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.618e-05/1.753, allocations: 162.7 kB / 1.109 GB, free: 52.5 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006398/1.754, allocations: 0.6363 MB / 1.109 GB, free: 51.87 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 5.662e-05/1.754, allocations: 25.7 kB / 1.109 GB, free: 51.84 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001325/1.754, allocations: 390.3 kB / 1.11 GB, free: 51.45 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001174/1.754, allocations: 193.2 kB / 1.11 GB, free: 51.25 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.533e-05/1.754, allocations: 4 kB / 1.11 GB, free: 51.25 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 8.934e-05/1.754, allocations: 386.8 kB / 1.11 GB, free: 50.86 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005615/1.755, allocations: 441.8 kB / 1.111 GB, free: 50.43 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006668/1.756, allocations: 0.6607 MB / 1.111 GB, free: 49.67 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003831/1.759, allocations: 1.14 MB / 1.112 GB, free: 48.53 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/1.759, allocations: 4 kB / 1.112 GB, free: 48.53 MB / 0.5261 GB Notification: Performance of matching and sorting (n=112) (initialization): time 0.00504/1.764, allocations: 2.078 MB / 1.114 GB, free: 46.41 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003317/1.765, allocations: 2.439 MB / 1.117 GB, free: 43.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.697e-05/1.765, allocations: 8 kB / 1.117 GB, free: 43.78 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000973/1.766, allocations: 430.3 kB / 1.117 GB, free: 43.35 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007867/1.767, allocations: 179.7 kB / 1.117 GB, free: 43.18 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003035/1.77, allocations: 3.181 MB / 1.12 GB, free: 39.83 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009209/1.771, allocations: 40.03 kB / 1.12 GB, free: 39.79 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001018/1.771, allocations: 47.97 kB / 1.121 GB, free: 39.75 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 4.679e-06/1.771, allocations: 7.938 kB / 1.121 GB, free: 39.74 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004643/1.775, allocations: 1.866 MB / 1.122 GB, free: 37.84 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/1.775, allocations: 12.5 kB / 1.122 GB, free: 37.83 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008438/1.776, allocations: 382.2 kB / 1.123 GB, free: 37.45 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000772/1.777, allocations: 191.7 kB / 1.123 GB, free: 37.26 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002449/1.779, allocations: 2.997 MB / 1.126 GB, free: 34.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007599/1.78, allocations: 35.91 kB / 1.126 GB, free: 34.06 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.446e-05/1.78, allocations: 43.98 kB / 1.126 GB, free: 34.02 MB / 0.5261 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.0002019/1.781, allocations: 128.7 kB / 1.126 GB, free: 33.89 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001438/1.781, allocations: 82.97 kB / 1.126 GB, free: 33.8 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003246/1.784, allocations: 1.572 MB / 1.128 GB, free: 32.2 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.128e-06/1.784, allocations: 8 kB / 1.128 GB, free: 32.19 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/1.784, allocations: 0 / 1.128 GB, free: 32.19 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.724e-06/1.784, allocations: 7.891 kB / 1.128 GB, free: 32.18 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004071/1.788, allocations: 2.456 MB / 1.13 GB, free: 29.64 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/1.788, allocations: 4.062 kB / 1.13 GB, free: 29.64 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004916/1.789, allocations: 91.88 kB / 1.13 GB, free: 29.55 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009588/1.79, allocations: 426.1 kB / 1.131 GB, free: 29.12 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.691e-05/1.79, allocations: 11.98 kB / 1.131 GB, free: 29.11 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002719/1.792, allocations: 3.133 MB / 1.134 GB, free: 25.81 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/1.792, allocations: 0 / 1.134 GB, free: 25.81 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003174/1.796, allocations: 1.971 MB / 1.136 GB, free: 23.78 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003808/1.799, allocations: 2.917 MB / 1.138 GB, free: 20.8 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004194/1.8, allocations: 287.9 kB / 1.139 GB, free: 20.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001545/1.8, allocations: 3.906 kB / 1.139 GB, free: 20.49 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006782/1.801, allocations: 35.97 kB / 1.139 GB, free: 20.46 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001182/1.801, allocations: 52.58 kB / 1.139 GB, free: 20.41 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.107e-05/1.801, allocations: 27.97 kB / 1.139 GB, free: 20.38 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0005222/1.801, allocations: 495.1 kB / 1.139 GB, free: 19.9 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.003796/1.805, allocations: 0.9951 MB / 1.14 GB, free: 18.9 MB / 0.5261 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.001603/1.807, allocations: 0.8314 MB / 1.141 GB, free: 18.06 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.00286/1.81, allocations: 1.839 MB / 1.143 GB, free: 16.21 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/1.81, allocations: 0 / 1.143 GB, free: 16.21 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0009137/1.811, allocations: 0.5588 MB / 1.143 GB, free: 15.64 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001363/1.812, allocations: 297.5 kB / 1.144 GB, free: 15.36 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003076/1.815, allocations: 1.505 MB / 1.145 GB, free: 13.81 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006813/1.816, allocations: 1.195 MB / 1.146 GB, free: 12.58 MB / 0.5261 GB Notification: Performance of SimCode: time 3.11e-07/1.816, allocations: 0 / 1.146 GB, free: 12.58 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Vessels_TestInitialization_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Vessels_TestInitialization.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestInitialization.pipe 2>&1)