Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.conf.json 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/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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000885/0.0008887, allocations: 96.64 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008825/0.0008826, allocations: 180.7 kB / 17.87 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.338/1.338, allocations: 223.2 MB / 241.8 MB, free: 380 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2002/0.2002, allocations: 44.22 MB / 337.1 MB, free: 2.906 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005071/0.0005073, allocations: 9.031 kB / 409.6 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1411/0.1417, allocations: 61.91 MB / 471.5 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe): time 0.01288/0.1546, allocations: 10.74 MB / 482.3 MB, free: 2.891 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008917/0.1636, allocations: 4.802 MB / 487.1 MB, free: 14.08 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008174/0.1644, allocations: 15.88 kB / 487.1 MB, free: 14.07 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007451/0.1652, allocations: 175.1 kB / 487.3 MB, free: 13.89 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00175/0.167, allocations: 0.5764 MB / 487.8 MB, free: 13.32 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003369/0.1703, allocations: 1.19 MB / 489 MB, free: 12.14 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001147/0.1715, allocations: 0.683 MB / 489.7 MB, free: 11.45 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004369/0.1719, allocations: 261.8 kB / 490 MB, free: 11.19 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007077/0.1727, allocations: 418.7 kB / 490.4 MB, free: 10.78 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004669/0.1731, allocations: 302.9 kB / 490.7 MB, free: 10.48 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.478e-05/0.1732, allocations: 24 kB / 490.7 MB, free: 10.46 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001783/0.175, allocations: 0.9596 MB / 491.7 MB, free: 9.5 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001662/0.1752, allocations: 131.6 kB / 491.8 MB, free: 9.371 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001198/0.1753, allocations: 125.5 kB / 491.9 MB, free: 9.242 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001162/0.1765, allocations: 0.9159 MB / 492.8 MB, free: 8.324 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.1765, allocations: 0 / 492.8 MB, free: 8.324 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1765, allocations: 0 / 492.8 MB, free: 8.324 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.294e-06/0.1765, allocations: 0 / 492.8 MB, free: 8.324 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001569/0.1781, allocations: 0.8508 MB / 493.7 MB, free: 7.418 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.788e-05/0.1781, allocations: 12.03 kB / 493.7 MB, free: 7.406 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.333e-05/0.1782, allocations: 70.52 kB / 493.8 MB, free: 7.328 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002193/0.1784, allocations: 63.33 kB / 493.8 MB, free: 7.266 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006193/0.1791, allocations: 429.4 kB / 494.2 MB, free: 6.809 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.246e-05/0.1791, allocations: 24.55 kB / 494.3 MB, free: 6.785 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.668e-05/0.1792, allocations: 31.98 kB / 494.3 MB, free: 6.754 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008168/0.18, allocations: 0.5146 MB / 494.8 MB, free: 6.199 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.18, allocations: 4 kB / 494.8 MB, free: 6.195 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.97e-05/0.1801, allocations: 15.98 kB / 494.8 MB, free: 6.18 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.936e-05/0.1801, allocations: 28.55 kB / 494.9 MB, free: 6.152 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006855/0.1808, allocations: 461.9 kB / 495.3 MB, free: 5.703 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003231/0.1841, allocations: 2.288 MB / 497.6 MB, free: 3.27 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003817/0.1845, allocations: 238.6 kB / 497.8 MB, free: 3.027 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001166/0.1856, allocations: 1.026 MB / 498.9 MB, free: 1.883 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003119/0.186, allocations: 212.4 kB / 499.1 MB, free: 1.645 MB / 366.1 MB Notification: Performance of pre-optimization done (n=18): time 1.533e-06/0.186, allocations: 0 / 499.1 MB, free: 1.645 MB / 366.1 MB Notification: Performance of matching and sorting (n=18): time 0.0006751/0.1867, allocations: 474.2 kB / 499.5 MB, free: 1.152 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001265/0.1868, allocations: 243.2 kB / 499.8 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005888/0.1874, allocations: 0.5135 MB / 0.4886 GB, free: 344 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.327e-05/0.1874, allocations: 29.7 kB / 0.4886 GB, free: 308 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002199/0.1877, allocations: 295.1 kB / 0.4889 GB, free: 8 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.752e-05/0.1878, allocations: 59.31 kB / 0.4889 GB, free: 15.95 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.318e-05/0.1878, allocations: 12 kB / 0.4889 GB, free: 15.93 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001737/0.188, allocations: 358.8 kB / 0.4893 GB, free: 15.57 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002047/0.1882, allocations: 128.3 kB / 0.4894 GB, free: 15.45 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003315/0.1885, allocations: 301.1 kB / 0.4897 GB, free: 15.08 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000293/0.1888, allocations: 218.3 kB / 0.4899 GB, free: 14.86 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.1888, allocations: 4 kB / 0.4899 GB, free: 14.86 MB / 382.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007711/0.1896, allocations: 0.5151 MB / 0.4904 GB, free: 14.33 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008325/0.1904, allocations: 1.783 MB / 0.4921 GB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.699e-06/0.1905, allocations: 4 kB / 0.4921 GB, free: 12.4 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.798e-05/0.1905, allocations: 8 kB / 0.4922 GB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000319/0.1908, allocations: 79.84 kB / 0.4922 GB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.457e-05/0.1908, allocations: 8 kB / 0.4922 GB, free: 12.31 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004026/0.1912, allocations: 55.42 kB / 0.4923 GB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.866e-05/0.1913, allocations: 23.98 kB / 0.4923 GB, free: 12.23 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.787e-06/0.1913, allocations: 4 kB / 0.4923 GB, free: 12.23 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00076/0.1921, allocations: 477.1 kB / 0.4928 GB, free: 11.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.462e-05/0.1921, allocations: 7.984 kB / 0.4928 GB, free: 11.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.847e-06/0.1921, allocations: 12.55 kB / 0.4928 GB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002556/0.1924, allocations: 83.84 kB / 0.4929 GB, free: 11.65 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.228e-06/0.1924, allocations: 8 kB / 0.4929 GB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003158/0.1927, allocations: 51.52 kB / 0.4929 GB, free: 11.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.611e-05/0.1928, allocations: 20.06 kB / 0.4929 GB, free: 11.57 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,p_table.a,p_table.b,p_table.last,$PRE.p_table.nextEvent,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 1 * 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.0003592/0.1931, allocations: 299.2 kB / 0.4932 GB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.484e-05/0.1932, allocations: 51.44 kB / 0.4933 GB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006242/0.1938, allocations: 372.5 kB / 0.4936 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.1939, allocations: 0 / 0.4936 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.1939, allocations: 0 / 0.4936 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.1939, allocations: 3.984 kB / 0.4936 GB, free: 10.83 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004692/0.1944, allocations: 417.1 kB / 0.494 GB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.1944, allocations: 0 / 0.494 GB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001207/0.1945, allocations: 23.98 kB / 0.4941 GB, free: 10.35 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.92e-06/0.1945, allocations: 4 kB / 0.4941 GB, free: 10.35 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.134e-05/0.1946, allocations: 8 kB / 0.4941 GB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.1946, allocations: 7.953 kB / 0.4941 GB, free: 10.33 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.1946, allocations: 0 / 0.4941 GB, free: 10.33 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004817/0.1951, allocations: 363 kB / 0.4944 GB, free: 9.953 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001431/0.1952, allocations: 132.4 kB / 0.4946 GB, free: 9.805 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.646e-05/0.1953, allocations: 4 kB / 0.4946 GB, free: 9.801 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002334/0.1955, allocations: 23.94 kB / 0.4946 GB, free: 9.777 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.029e-05/0.1956, allocations: 19.92 kB / 0.4946 GB, free: 9.758 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.031e-05/0.1956, allocations: 11.92 kB / 0.4946 GB, free: 9.746 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004478/0.1961, allocations: 366.8 kB / 0.495 GB, free: 9.391 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1961, allocations: 0 / 0.495 GB, free: 9.391 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00121/0.1973, allocations: 419.7 kB / 0.4954 GB, free: 8.98 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,p_table.a,p_table.b,p_table.last,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 6 (p_table.nextEvent,p_table.last,p_table.nextEventScaled,p_table.b,p_table.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.001635/0.1989, allocations: 1.193 MB / 0.4965 GB, free: 7.758 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001018/0.2, allocations: 0.6641 MB / 0.4972 GB, free: 7.07 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.13e-06/0.2, allocations: 4.312 kB / 0.4972 GB, free: 7.066 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002033/0.2002, allocations: 187.3 kB / 0.4974 GB, free: 6.871 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008864/0.2011, allocations: 192.5 kB / 0.4975 GB, free: 6.691 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003977/0.2051, allocations: 4.417 MB / 0.5019 GB, free: 2.133 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005109/0.2056, allocations: 0.8552 MB / 0.5027 GB, free: 1.25 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006127/0.2062, allocations: 171.7 kB / 0.5029 GB, free: 1.086 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000241/0.2065, allocations: 151.4 kB / 0.503 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of SimCode: time 8.42e-07/0.2065, allocations: 0 / 0.503 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3065/0.513, allocations: 15.8 MB / 0.5184 GB, free: 44.22 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001462/0.5132, allocations: 233.7 kB / 0.5187 GB, free: 43.98 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.37/2.883, allocations: 0 / 0.5187 GB, free: 43.98 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe 2>&1)