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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001986/0.001986, allocations: 198.3 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.553/1.553, allocations: 227.2 MB / 245 MB, free: 7.656 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001174/0.001173, allocations: 94.41 kB / 297.2 MB, free: 6.219 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4598/0.4598, allocations: 45.23 MB / 394.6 MB, free: 31.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003071/0.0003072, allocations: 4 kB / 468.5 MB, free: 7.641 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4969/0.4972, allocations: 63.25 MB / 0.5193 GB, free: 43.83 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.865/7.362, allocations: 2.779 GB / 3.298 GB, free: 149.6 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002383/7.363, allocations: 94.77 kB / 3.298 GB, free: 149.6 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.859/9.221, allocations: 0.5862 GB / 3.884 GB, free: 26.69 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.885e-06/9.221, allocations: 3.938 kB / 3.884 GB, free: 26.68 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001132/9.221, allocations: 40.36 kB / 3.884 GB, free: 26.68 MB / 0.5417 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 0.01501/9.236, allocations: 2.722 MB / 3.887 GB, free: 24.32 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 8.386e-05/9.237, allocations: 8.031 kB / 3.887 GB, free: 24.32 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009248/9.237, allocations: 173.1 kB / 3.887 GB, free: 24.14 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007762/9.245, allocations: 0.8635 MB / 3.888 GB, free: 23.28 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003126/9.248, allocations: 1.033 MB / 3.889 GB, free: 22.23 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001034/9.249, allocations: 98.23 kB / 3.889 GB, free: 22.13 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002108/9.249, allocations: 127.3 kB / 3.889 GB, free: 22.01 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00492/9.254, allocations: 2.21 MB / 3.891 GB, free: 19.68 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.074e-05/9.254, allocations: 7.938 kB / 3.891 GB, free: 19.67 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000142/9.254, allocations: 48 kB / 3.891 GB, free: 19.62 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.116e-05/9.254, allocations: 35.84 kB / 3.891 GB, free: 19.59 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005123/9.259, allocations: 2.179 MB / 3.893 GB, free: 17.43 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01138/9.27, allocations: 8.727 MB / 3.902 GB, free: 8.227 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005626/9.276, allocations: 2.133 MB / 3.904 GB, free: 6.133 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4436/9.72, allocations: 26.5 MB / 3.93 GB, free: 51.99 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.971e-05/9.72, allocations: 50.38 kB / 3.93 GB, free: 51.95 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001462/9.721, allocations: 161.8 kB / 3.93 GB, free: 51.95 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=108): time 5.551e-06/9.721, allocations: 0 / 3.93 GB, free: 51.95 MB / 0.5573 GB Notification: Performance of matching and sorting (n=108): time 0.01557/9.737, allocations: 4.238 MB / 3.934 GB, free: 51.79 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.269e-05/9.737, allocations: 196 kB / 3.934 GB, free: 51.57 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001581/9.739, allocations: 0.9104 MB / 3.935 GB, free: 51.43 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0002092/9.739, allocations: 47.17 kB / 3.935 GB, free: 51.4 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.000411/9.739, allocations: 0.5691 MB / 3.936 GB, free: 51.22 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.000339/9.74, allocations: 359.6 kB / 3.936 GB, free: 51.04 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.915e-05/9.74, allocations: 32.12 kB / 3.936 GB, free: 51.04 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001025/9.74, allocations: 356.5 kB / 3.937 GB, free: 50.74 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001533/9.741, allocations: 0.6435 MB / 3.937 GB, free: 50.74 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001566/9.743, allocations: 0.9612 MB / 3.938 GB, free: 50.4 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001512/9.745, allocations: 0.7224 MB / 3.939 GB, free: 50.39 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.245e-06/9.745, allocations: 2.688 kB / 3.939 GB, free: 50.39 MB / 0.5573 GB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004261/9.749, allocations: 1.966 MB / 3.941 GB, free: 50.26 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006983/9.75, allocations: 3.146 MB / 3.944 GB, free: 47 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.639e-05/9.75, allocations: 7.719 kB / 3.944 GB, free: 47 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006986/9.757, allocations: 1.177 MB / 3.945 GB, free: 46.99 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002023/9.759, allocations: 413.1 kB / 3.945 GB, free: 46.99 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00115/9.76, allocations: 0.9401 MB / 3.946 GB, free: 46.46 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002171/9.762, allocations: 176.7 kB / 3.947 GB, free: 46.46 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001686/9.762, allocations: 80.38 kB / 3.947 GB, free: 46.46 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/9.762, allocations: 4.812 kB / 3.947 GB, free: 46.46 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004199/9.766, allocations: 1.73 MB / 3.948 GB, free: 46.41 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.536e-05/9.767, allocations: 7.562 kB / 3.948 GB, free: 46.41 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003529/9.767, allocations: 90.25 kB / 3.948 GB, free: 46.41 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001723/9.769, allocations: 449.5 kB / 3.949 GB, free: 46.41 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001987/9.771, allocations: 1.778 MB / 3.951 GB, free: 45.04 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001889/9.773, allocations: 174.8 kB / 3.951 GB, free: 45.03 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001502/9.773, allocations: 74.38 kB / 3.951 GB, free: 45.03 MB / 0.5573 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 () * Number of clocked 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.0009122/9.774, allocations: 379.8 kB / 3.951 GB, free: 44.84 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003122/9.774, allocations: 139.5 kB / 3.951 GB, free: 44.77 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008401/9.782, allocations: 7.011 MB / 3.958 GB, free: 44.21 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.238e-05/9.782, allocations: 87.41 kB / 3.958 GB, free: 44.21 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/9.782, allocations: 4.562 kB / 3.958 GB, free: 44.21 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.029e-05/9.782, allocations: 8.25 kB / 3.958 GB, free: 44.21 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0113/9.794, allocations: 8.896 MB / 3.967 GB, free: 43.59 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.019e-05/9.794, allocations: 1.062 kB / 3.967 GB, free: 43.59 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001159/9.795, allocations: 302 kB / 3.967 GB, free: 43.59 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006623/9.802, allocations: 2.108 MB / 3.969 GB, free: 43.55 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003/9.802, allocations: 40.42 kB / 3.969 GB, free: 43.55 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001839/9.804, allocations: 1.613 MB / 3.971 GB, free: 43.01 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-06/9.804, allocations: 9.953 kB / 3.971 GB, free: 43.01 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006072/9.81, allocations: 3.836 MB / 3.975 GB, free: 42.48 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001401/9.811, allocations: 0.7516 MB / 3.975 GB, free: 42.14 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002418/9.812, allocations: 25.62 kB / 3.975 GB, free: 42.14 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00115/9.813, allocations: 151.5 kB / 3.976 GB, free: 42.13 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002093/9.813, allocations: 125 kB / 3.976 GB, free: 42.13 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.619e-05/9.813, allocations: 53.47 kB / 3.976 GB, free: 42.13 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001576/9.815, allocations: 1.208 MB / 3.977 GB, free: 41.98 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.21e-07/9.815, allocations: 0 / 3.977 GB, free: 41.98 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.009459/9.824, allocations: 1.858 MB / 3.979 GB, free: 41.89 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 51 ($cse5.phase,$cse5.region,$cse9.phase,$cse9.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse32.phase,$cse32.region,$cse38.phase,$cse38.region,$cse39.phase,$cse39.region,$cse41.phase,$cse41.region,$cse42.phase,$cse42.region,$cse47.phase,$cse47.region,$cse48.phase,$cse48.region,$cse50.phase,$cse50.region,$cse55.phase,$cse55.region,$cse56.phase,$cse56.region,$cse59.phase,$cse59.region,$cse63.phase,$cse63.region,$cse67.phase,$cse67.region,SourceP1.medium.phase,SourceP2.medium.phase,SinkP1.medium.phase,SinkP2.medium.phase,SinkP3.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (123): * Single equations (assignments): 102 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * 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.01974/9.844, allocations: 6.205 MB / 3.985 GB, free: 40.62 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.008333/9.852, allocations: 3.287 MB / 3.988 GB, free: 40.46 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.001e-05/9.852, allocations: 1.812 kB / 3.988 GB, free: 40.46 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.002886/9.855, allocations: 1.704 MB / 3.99 GB, free: 40.43 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004197/9.859, allocations: 0.7464 MB / 3.99 GB, free: 40.42 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01499/9.874, allocations: 13.08 MB / 4.003 GB, free: 31.54 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001031/9.876, allocations: 1.773 MB / 4.005 GB, free: 30.8 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.003086/9.879, allocations: 1.809 MB / 4.007 GB, free: 30.78 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001193/9.88, allocations: 1.024 MB / 4.008 GB, free: 30.77 MB / 0.5573 GB Notification: Performance of SimCode: time 1.172e-06/9.88, allocations: 0 / 4.008 GB, free: 30.77 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1501/10.03, allocations: 87.03 MB / 4.093 GB, free: 16.49 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002589/10.03, allocations: 284.5 kB / 4.093 GB, free: 16.12 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.543/16.57, allocations: 1.312 kB / 4.093 GB, free: 16.12 MB / 0.5573 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)