Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.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.TestValvesCompressibleReverse,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValvesCompressibleReverse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValvesCompressibleReverse",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.001504/0.001504, allocations: 199.2 kB / 8.541 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.185/1.185, allocations: 225.5 MB / 234.4 MB, free: 3.328 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008583/0.0008583, allocations: 91.3 kB / 286.3 MB, free: 5.312 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1698/0.1698, allocations: 45.15 MB / 383.3 MB, free: 0.5312 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.216/0.3858, allocations: 69.37 MB / 452.7 MB, free: 76.08 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09723/0.4831, allocations: 63.25 MB / 0.5039 GB, free: 12.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.346/4.829, allocations: 2.778 GB / 3.282 GB, free: 138.3 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002263/4.829, allocations: 91.34 kB / 3.282 GB, free: 138.2 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: 284 * Number of variables: 284 Notification: Performance of Generate backend data structure: time 1.669/6.498, allocations: 0.5826 GB / 3.864 GB, free: 45.71 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.209e-05/6.498, allocations: 8.094 kB / 3.864 GB, free: 45.71 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0066/6.505, allocations: 0.9256 MB / 3.865 GB, free: 45.62 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001582/6.507, allocations: 1.035 MB / 3.866 GB, free: 45.3 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.52e-05/6.507, allocations: 42.97 kB / 3.866 GB, free: 45.3 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001538/6.507, allocations: 69.25 kB / 3.866 GB, free: 45.3 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00203/6.509, allocations: 1.364 MB / 3.868 GB, free: 45.3 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001756/6.511, allocations: 1.368 MB / 3.869 GB, free: 44.93 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.729e-05/6.511, allocations: 7.844 kB / 3.869 GB, free: 44.93 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001117/6.511, allocations: 7.344 kB / 3.869 GB, free: 44.93 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.053e-05/6.511, allocations: 29.16 kB / 3.869 GB, free: 44.93 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07847/6.589, allocations: 49.4 MB / 3.917 GB, free: 28.82 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002173/6.591, allocations: 1.153 MB / 3.918 GB, free: 28.76 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006235/6.592, allocations: 0.4944 MB / 3.919 GB, free: 28.75 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03114/6.623, allocations: 18.81 MB / 3.937 GB, free: 32.07 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.698e-05/6.623, allocations: 47.25 kB / 3.937 GB, free: 32.04 MB / 0.573 GB Notification: Performance of pre-optimization done (n=103): time 2.745e-06/6.623, allocations: 4 kB / 3.937 GB, free: 32.03 MB / 0.573 GB Notification: Performance of matching and sorting (n=103): time 0.008488/6.632, allocations: 2.398 MB / 3.94 GB, free: 31.9 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.471e-05/6.632, allocations: 198 kB / 3.94 GB, free: 31.68 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009152/6.633, allocations: 0.7163 MB / 3.941 GB, free: 31.52 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001391/6.633, allocations: 29.7 kB / 3.941 GB, free: 31.49 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002034/6.633, allocations: 464.2 kB / 3.941 GB, free: 31.21 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002162/6.633, allocations: 335.2 kB / 3.941 GB, free: 30.99 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.494e-05/6.634, allocations: 1.875 kB / 3.941 GB, free: 30.99 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001145/6.634, allocations: 363.9 kB / 3.942 GB, free: 30.68 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007209/6.634, allocations: 0.4959 MB / 3.942 GB, free: 30.68 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008177/6.635, allocations: 0.806 MB / 3.943 GB, free: 30.34 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00438/6.64, allocations: 1.107 MB / 3.944 GB, free: 30.3 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.007e-06/6.64, allocations: 3.125 kB / 3.944 GB, free: 30.3 MB / 0.573 GB Notification: Performance of matching and sorting (n=172) (initialization): time 0.007969/6.648, allocations: 2.714 MB / 3.947 GB, free: 30.17 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008716/6.648, allocations: 3.14 MB / 3.95 GB, free: 26.88 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.423e-05/6.648, allocations: 7.375 kB / 3.95 GB, free: 26.88 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003701/6.652, allocations: 0.7344 MB / 3.951 GB, free: 26.83 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001642/6.654, allocations: 437 kB / 3.951 GB, free: 26.82 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002102/6.656, allocations: 1.193 MB / 3.952 GB, free: 26.28 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001729/6.658, allocations: 244.1 kB / 3.952 GB, free: 26.19 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001613/6.658, allocations: 82.89 kB / 3.952 GB, free: 26.19 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 9.818e-06/6.658, allocations: 6.938 kB / 3.952 GB, free: 26.19 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005028/6.663, allocations: 1.696 MB / 3.954 GB, free: 26.14 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.818e-06/6.663, allocations: 11.78 kB / 3.954 GB, free: 26.14 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003205/6.663, allocations: 92.3 kB / 3.954 GB, free: 26.12 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001689/6.665, allocations: 465.8 kB / 3.955 GB, free: 26.12 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001927/6.667, allocations: 1.69 MB / 3.956 GB, free: 24.8 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001315/6.668, allocations: 210.3 kB / 3.956 GB, free: 24.73 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001391/6.668, allocations: 81.06 kB / 3.957 GB, free: 24.73 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 15 (SourceP1.medium.phase,SourceP2.medium.phase,SinkP1.medium.phase,SinkP2.medium.phase,SinkP3.medium.phase,V5.state_b.phase,V5.state_a.phase,V4.state_b.phase,V4.state_a.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 (148): * Single equations (assignments): 147 * 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 {3 22} Notification: Performance of prepare postOptimizeDAE: time 0.0002729/6.669, allocations: 140.2 kB / 3.957 GB, free: 24.62 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001719/6.67, allocations: 0.6434 MB / 3.957 GB, free: 24.56 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007744/6.678, allocations: 6.157 MB / 3.963 GB, free: 23.99 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.579e-05/6.678, allocations: 57.28 kB / 3.963 GB, free: 23.99 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.347e-06/6.678, allocations: 0 / 3.963 GB, free: 23.99 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.445e-05/6.678, allocations: 7.078 kB / 3.963 GB, free: 23.99 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008523/6.687, allocations: 7.764 MB / 3.971 GB, free: 23.31 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.735e-06/6.687, allocations: 3.844 kB / 3.971 GB, free: 23.31 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009091/6.688, allocations: 269.2 kB / 3.971 GB, free: 23.3 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003002/6.691, allocations: 1.737 MB / 3.973 GB, free: 23.2 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.7e-05/6.691, allocations: 30.62 kB / 3.973 GB, free: 23.2 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002276/6.693, allocations: 1.855 MB / 3.975 GB, free: 22.64 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/6.693, allocations: 8.219 kB / 3.975 GB, free: 22.64 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007062/6.7, allocations: 4.644 MB / 3.979 GB, free: 21.75 MB / 0.573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007327/6.708, allocations: 5.071 MB / 3.984 GB, free: 20.49 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008503/6.708, allocations: 0.6438 MB / 3.985 GB, free: 20.24 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002773/6.709, allocations: 13.66 kB / 3.985 GB, free: 20.23 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001126/6.71, allocations: 124.3 kB / 3.985 GB, free: 20.21 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002656/6.71, allocations: 158.9 kB / 3.985 GB, free: 20.2 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000124/6.71, allocations: 58.09 kB / 3.985 GB, free: 20.2 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.001382/6.712, allocations: 1.018 MB / 3.986 GB, free: 20.09 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.008426/6.72, allocations: 2.149 MB / 3.988 GB, free: 19.84 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 33 ($cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse30.phase,$cse30.region,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$cse41.phase,$cse41.region,$cse48.phase,$cse48.region,$cse50.phase,$cse50.region,$cse62.phase,$cse62.region,$cse63.phase,$cse63.region,$cse64.phase,$cse64.region,SinkP3.medium.phase,SinkP2.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SourceP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 11 * 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 {3 34} Notification: Performance of Backend phase and start with SimCode phase: time 0.007203/6.727, allocations: 2.124 MB / 3.99 GB, free: 19.41 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.00472/6.732, allocations: 3.196 MB / 3.993 GB, free: 19.25 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 6.853e-06/6.732, allocations: 2.031 kB / 3.993 GB, free: 19.25 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.001804/6.734, allocations: 1.916 MB / 3.995 GB, free: 19.24 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002755/6.737, allocations: 0.5158 MB / 3.996 GB, free: 19.2 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00501/6.742, allocations: 3.692 MB / 3.999 GB, free: 18.35 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001273/6.743, allocations: 1.74 MB / 4.001 GB, free: 17.58 MB / 0.573 GB Notification: Performance of SimCode: time 6.81e-07/6.743, allocations: 4 kB / 4.001 GB, free: 17.57 MB / 0.573 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValvesCompressibleReverse_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValvesCompressibleReverse.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse.pipe 2>&1)