Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.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.Valves.TestValveCompressible,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveCompressible",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveCompressible",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.001059/0.001059, allocations: 199.7 kB / 8.54 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.156/1.156, allocations: 225.5 MB / 234.4 MB, free: 3.34 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008923/0.0008923, allocations: 95.08 kB / 286.3 MB, free: 5.277 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1723/0.1723, allocations: 45.14 MB / 383.3 MB, free: 0.5469 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2008/0.3731, allocations: 69.37 MB / 452.7 MB, free: 76.09 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08012/0.4533, allocations: 63.24 MB / 0.5039 GB, free: 12.92 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.262/4.715, allocations: 2.777 GB / 3.281 GB, free: 140.3 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002076/4.715, allocations: 83.12 kB / 3.281 GB, free: 140.3 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: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.6526/5.368, allocations: 237.5 MB / 3.513 GB, free: 78.3 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.308e-05/5.368, allocations: 10.78 kB / 3.513 GB, free: 78.3 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002191/5.37, allocations: 282.1 kB / 3.513 GB, free: 78.27 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006373/5.371, allocations: 410.1 kB / 3.514 GB, free: 77.97 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.91e-05/5.371, allocations: 15.84 kB / 3.514 GB, free: 77.96 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.535e-05/5.371, allocations: 23.44 kB / 3.514 GB, free: 77.96 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005415/5.371, allocations: 355.4 kB / 3.514 GB, free: 77.84 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005264/5.372, allocations: 420.2 kB / 3.514 GB, free: 77.6 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/5.372, allocations: 0 / 3.514 GB, free: 77.6 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.965e-05/5.372, allocations: 3.875 kB / 3.514 GB, free: 77.6 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/5.372, allocations: 7.5 kB / 3.514 GB, free: 77.6 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01666/5.389, allocations: 10.89 MB / 3.525 GB, free: 70.02 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006367/5.389, allocations: 290 kB / 3.525 GB, free: 69.91 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001741/5.39, allocations: 140 kB / 3.525 GB, free: 69.85 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04407/5.434, allocations: 27.18 MB / 3.552 GB, free: 51.23 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.509e-05/5.434, allocations: 44.44 kB / 3.552 GB, free: 51.18 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=27): time 2.154e-06/5.434, allocations: 0 / 3.552 GB, free: 51.18 MB / 0.5261 GB Notification: Performance of matching and sorting (n=27): time 0.001999/5.436, allocations: 0.5632 MB / 3.553 GB, free: 51 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.017e-05/5.436, allocations: 109 kB / 3.553 GB, free: 50.87 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003203/5.436, allocations: 281.3 kB / 3.553 GB, free: 50.71 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 3.306e-05/5.436, allocations: 29.7 kB / 3.553 GB, free: 50.68 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 7.86e-05/5.436, allocations: 198.3 kB / 3.553 GB, free: 50.52 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 6.287e-05/5.436, allocations: 86.08 kB / 3.553 GB, free: 50.45 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.941e-05/5.436, allocations: 0.9375 kB / 3.553 GB, free: 50.45 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 6.719e-05/5.436, allocations: 350.6 kB / 3.554 GB, free: 50.12 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001981/5.437, allocations: 119.7 kB / 3.554 GB, free: 50.07 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002328/5.437, allocations: 245 kB / 3.554 GB, free: 49.86 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009933/5.438, allocations: 258.6 kB / 3.554 GB, free: 49.78 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/5.438, allocations: 1.031 kB / 3.554 GB, free: 49.78 MB / 0.5261 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001911/5.44, allocations: 0.6721 MB / 3.555 GB, free: 49.56 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002117/5.44, allocations: 1.395 MB / 3.556 GB, free: 48.07 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.739e-06/5.44, allocations: 2.812 kB / 3.556 GB, free: 48.07 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.993e-05/5.44, allocations: 10.2 kB / 3.556 GB, free: 48.07 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004318/5.441, allocations: 112.6 kB / 3.556 GB, free: 48.05 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.909e-06/5.441, allocations: 16.28 kB / 3.556 GB, free: 48.04 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004275/5.441, allocations: 67.17 kB / 3.556 GB, free: 48.02 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.306e-05/5.441, allocations: 19.97 kB / 3.556 GB, free: 48.02 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 6.001e-06/5.441, allocations: 4.312 kB / 3.556 GB, free: 48.02 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001126/5.442, allocations: 409.4 kB / 3.557 GB, free: 47.89 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/5.442, allocations: 3.188 kB / 3.557 GB, free: 47.89 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.334e-06/5.442, allocations: 6.781 kB / 3.557 GB, free: 47.89 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004071/5.443, allocations: 110 kB / 3.557 GB, free: 47.88 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/5.443, allocations: 6.406 kB / 3.557 GB, free: 47.88 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003723/5.443, allocations: 57.27 kB / 3.557 GB, free: 47.86 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.161e-05/5.443, allocations: 24.59 kB / 3.557 GB, free: 47.86 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 4 (SourceP1.medium.phase,SinkP1.medium.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 44 * 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.0001004/5.443, allocations: 116.6 kB / 3.557 GB, free: 47.74 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000545/5.444, allocations: 192.5 kB / 3.557 GB, free: 47.69 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002235/5.446, allocations: 1.774 MB / 3.559 GB, free: 46.96 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-05/5.446, allocations: 22.39 kB / 3.559 GB, free: 46.95 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/5.446, allocations: 0 / 3.559 GB, free: 46.95 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/5.446, allocations: 8.656 kB / 3.559 GB, free: 46.95 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002552/5.449, allocations: 2.346 MB / 3.561 GB, free: 45.87 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/5.449, allocations: 5.062 kB / 3.561 GB, free: 45.86 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003169/5.449, allocations: 75.48 kB / 3.561 GB, free: 45.86 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/5.449, allocations: 2.281 kB / 3.561 GB, free: 45.86 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.767e-05/5.449, allocations: 13.09 kB / 3.561 GB, free: 45.86 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/5.449, allocations: 2 kB / 3.561 GB, free: 45.86 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/5.449, allocations: 5.188 kB / 3.561 GB, free: 45.85 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002048/5.451, allocations: 1.459 MB / 3.563 GB, free: 45.21 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002142/5.453, allocations: 1.887 MB / 3.565 GB, free: 44.15 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002231/5.453, allocations: 214.3 kB / 3.565 GB, free: 43.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.62e-05/5.454, allocations: 7.312 kB / 3.565 GB, free: 43.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003457/5.454, allocations: 33.08 kB / 3.565 GB, free: 43.98 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.664e-05/5.454, allocations: 50.47 kB / 3.565 GB, free: 43.96 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.22e-05/5.454, allocations: 18.89 kB / 3.565 GB, free: 43.96 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0002254/5.454, allocations: 264.1 kB / 3.565 GB, free: 43.81 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005635/5.46, allocations: 1.402 MB / 3.567 GB, free: 43.34 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 14 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.region,SinkP1.medium.phase,SourceP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 31 * 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.005712/5.466, allocations: 1.573 MB / 3.568 GB, free: 42.89 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0009938/5.467, allocations: 0.9519 MB / 3.569 GB, free: 42.51 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/5.467, allocations: 4.531 kB / 3.569 GB, free: 42.51 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0004752/5.467, allocations: 0.7032 MB / 3.57 GB, free: 42.15 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000904/5.468, allocations: 165.1 kB / 3.57 GB, free: 42.12 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001596/5.47, allocations: 1.166 MB / 3.571 GB, free: 41.57 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005072/5.47, allocations: 1.001 MB / 3.572 GB, free: 40.85 MB / 0.5261 GB Notification: Performance of SimCode: time 4.11e-07/5.47, allocations: 0 / 3.572 GB, free: 40.85 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveCompressible_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveCompressible.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe 2>&1)