Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.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.Valves.TestValveIncompressible,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible",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.001048/0.001049, allocations: 173.8 kB / 8.515 MB, free: 1.828 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.197/1.197, allocations: 221.4 MB / 230.3 MB, free: 7.543 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.0009126/0.0009126, allocations: 90.56 kB / 281.2 MB, free: 5.355 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.1687/0.1687, allocations: 44.15 MB / 376.1 MB, free: 3.191 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1938/0.3626, allocations: 68.03 MB / 444.1 MB, free: 15.48 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.4642, allocations: 61.9 MB / 0.4942 GB, free: 1.496 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.248/4.712, allocations: 2.777 GB / 3.271 GB, free: 163.4 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002505/4.713, allocations: 89.12 kB / 3.271 GB, free: 163.4 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: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 1.32/6.033, allocations: 0.5054 GB / 3.776 GB, free: 54.21 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.433e-05/6.033, allocations: 8.938 kB / 3.776 GB, free: 54.21 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006223/6.039, allocations: 0.7655 MB / 3.777 GB, free: 54.15 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001661/6.041, allocations: 0.8141 MB / 3.778 GB, free: 53.83 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.393e-05/6.041, allocations: 42 kB / 3.778 GB, free: 53.83 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001834/6.041, allocations: 50.38 kB / 3.778 GB, free: 53.83 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001655/6.043, allocations: 0.9181 MB / 3.779 GB, free: 53.66 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001574/6.044, allocations: 1.093 MB / 3.78 GB, free: 53.05 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.52e-05/6.044, allocations: 7.844 kB / 3.78 GB, free: 53.04 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001221/6.044, allocations: 6.922 kB / 3.78 GB, free: 53.04 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.674e-05/6.044, allocations: 24.5 kB / 3.78 GB, free: 53.04 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09351/6.138, allocations: 52.45 MB / 3.831 GB, free: 18.3 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000889/6.139, allocations: 0.6049 MB / 3.832 GB, free: 18.07 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004123/6.139, allocations: 313.6 kB / 3.832 GB, free: 17.96 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03037/6.17, allocations: 16.67 MB / 3.848 GB, free: 19.61 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.221e-05/6.17, allocations: 47.06 kB / 3.848 GB, free: 19.55 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=61): time 2.515e-06/6.17, allocations: 0 / 3.848 GB, free: 19.55 MB / 0.5417 GB Notification: Performance of matching and sorting (n=61): time 0.004819/6.175, allocations: 1.446 MB / 3.85 GB, free: 18.44 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.318e-05/6.175, allocations: 214.1 kB / 3.85 GB, free: 18.18 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007559/6.176, allocations: 0.5665 MB / 3.85 GB, free: 17.66 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 8.837e-05/6.176, allocations: 25.7 kB / 3.85 GB, free: 17.63 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002242/6.176, allocations: 423.1 kB / 3.851 GB, free: 17.25 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001433/6.176, allocations: 195.7 kB / 3.851 GB, free: 17.08 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.948e-05/6.176, allocations: 4 kB / 3.851 GB, free: 17.07 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001307/6.176, allocations: 382.9 kB / 3.851 GB, free: 16.71 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004384/6.177, allocations: 313.9 kB / 3.852 GB, free: 16.43 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005352/6.177, allocations: 0.5929 MB / 3.852 GB, free: 15.74 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002483/6.18, allocations: 0.6508 MB / 3.853 GB, free: 15.24 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/6.18, allocations: 8 kB / 3.853 GB, free: 15.23 MB / 0.5417 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.005205/6.185, allocations: 1.754 MB / 3.855 GB, free: 13.84 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008484/6.186, allocations: 3.224 MB / 3.858 GB, free: 10.37 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.439e-05/6.186, allocations: 8 kB / 3.858 GB, free: 10.36 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.606e-05/6.186, allocations: 12 kB / 3.858 GB, free: 10.35 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001007/6.187, allocations: 292.4 kB / 3.858 GB, free: 10.11 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.741e-05/6.187, allocations: 18.14 kB / 3.858 GB, free: 10.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001119/6.188, allocations: 167.8 kB / 3.858 GB, free: 9.957 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.918e-05/6.188, allocations: 55.64 kB / 3.858 GB, free: 9.91 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 7.033e-06/6.188, allocations: 4 kB / 3.858 GB, free: 9.906 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002928/6.191, allocations: 1.02 MB / 3.859 GB, free: 9.043 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.959e-06/6.191, allocations: 12.22 kB / 3.859 GB, free: 9.031 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/6.191, allocations: 16.52 kB / 3.859 GB, free: 9.016 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009237/6.192, allocations: 283 kB / 3.86 GB, free: 8.785 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.321e-05/6.192, allocations: 26 kB / 3.86 GB, free: 8.762 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008942/6.193, allocations: 138 kB / 3.86 GB, free: 8.648 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.891e-05/6.193, allocations: 54.84 kB / 3.86 GB, free: 8.602 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 12 (SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,V3.state_b.phase,V3.state_a.phase,V2.state_b.phase,V2.state_a.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (109): * Single equations (assignments): 109 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002155/6.193, allocations: 140.7 kB / 3.86 GB, free: 8.457 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001603/6.195, allocations: 0.5416 MB / 3.861 GB, free: 8.066 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004473/6.199, allocations: 3.3 MB / 3.864 GB, free: 5.23 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.877e-05/6.199, allocations: 25.23 kB / 3.864 GB, free: 5.215 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/6.199, allocations: 4 kB / 3.864 GB, free: 5.211 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.233e-05/6.199, allocations: 3.281 kB / 3.864 GB, free: 5.211 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008055/6.207, allocations: 4.951 MB / 3.869 GB, free: 0.9922 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.959e-06/6.208, allocations: 4 kB / 3.869 GB, free: 0.9883 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007676/6.208, allocations: 179.9 kB / 3.869 GB, free: 0.8438 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.46e-05/6.208, allocations: 15.91 kB / 3.869 GB, free: 0.8281 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.801e-05/6.208, allocations: 20.78 kB / 3.869 GB, free: 0.8125 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.475e-05/6.208, allocations: 17 kB / 3.869 GB, free: 0.7969 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.753e-06/6.208, allocations: 11.88 kB / 3.869 GB, free: 0.7891 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1724/6.381, allocations: 2.758 MB / 3.872 GB, free: 112.5 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003616/6.384, allocations: 2.936 MB / 3.874 GB, free: 111.6 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006432/6.385, allocations: 0.5924 MB / 3.875 GB, free: 111.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002531/6.385, allocations: 6.953 kB / 3.875 GB, free: 111.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008448/6.386, allocations: 99.81 kB / 3.875 GB, free: 111.4 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001744/6.386, allocations: 118.2 kB / 3.875 GB, free: 111.4 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.005e-05/6.386, allocations: 39.61 kB / 3.875 GB, free: 111.4 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.001135/6.388, allocations: 1.081 MB / 3.876 GB, free: 111.3 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006808/6.394, allocations: 1.915 MB / 3.878 GB, free: 111.3 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 18 ($cse1.phase,$cse1.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse30.phase,$cse30.region,SinkP3.medium.phase,SourceP3.medium.phase,SinkP2.medium.phase,SourceP2.medium.phase,SinkP1.medium.phase,SourceP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004811/6.399, allocations: 2 MB / 3.88 GB, free: 111.2 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002101/6.401, allocations: 1.753 MB / 3.882 GB, free: 111.1 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/6.401, allocations: 6.75 kB / 3.882 GB, free: 111.1 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0007203/6.402, allocations: 0.9494 MB / 3.883 GB, free: 111.1 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001894/6.404, allocations: 403.5 kB / 3.883 GB, free: 111.1 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00295/6.407, allocations: 2.378 MB / 3.885 GB, free: 110.5 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007476/6.408, allocations: 1.438 MB / 3.887 GB, free: 109.8 MB / 0.5417 GB Notification: Performance of SimCode: time 1.002e-06/6.408, allocations: 2.688 kB / 3.887 GB, free: 109.8 MB / 0.5417 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible.pipe 2>&1)