Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008445/0.0008445, allocations: 93.38 kB / 17 MB, free: 6.797 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008782/0.0008785, allocations: 199.9 kB / 17.91 MB, free: 6.035 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.386/1.386, allocations: 227.3 MB / 246 MB, free: 10.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2247/0.2247, allocations: 45.92 MB / 344.1 MB, free: 11.98 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002947/0.0002948, allocations: 11.98 kB / 418.2 MB, free: 20.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1495/0.1498, allocations: 63.46 MB / 481.6 MB, free: 5.234 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe): time 0.01247/0.1623, allocations: 11.78 MB / 493.4 MB, free: 9.402 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007369/0.1698, allocations: 5.169 MB / 498.6 MB, free: 4.23 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007223/0.1705, allocations: 19.81 kB / 498.6 MB, free: 4.211 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006582/0.1712, allocations: 167 kB / 498.8 MB, free: 4.047 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.001928/0.1731, allocations: 0.6297 MB / 499.4 MB, free: 3.414 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003487/0.1766, allocations: 1.183 MB / 0.4889 GB, free: 2.238 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002051/0.1787, allocations: 1.442 MB / 0.4903 GB, free: 0.7891 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004625/0.1791, allocations: 257.8 kB / 0.4905 GB, free: 0.5391 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008235/0.18, allocations: 462.3 kB / 0.4909 GB, free: 88 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007757/0.1808, allocations: 450.5 kB / 0.4914 GB, free: 15.64 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.031e-05/0.1808, allocations: 20 kB / 0.4914 GB, free: 15.62 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002291/0.1831, allocations: 0.9593 MB / 0.4923 GB, free: 14.66 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002252/0.1834, allocations: 139.6 kB / 0.4925 GB, free: 14.53 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001719/0.1836, allocations: 125.4 kB / 0.4926 GB, free: 14.4 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001366/0.1849, allocations: 0.9042 MB / 0.4935 GB, free: 13.49 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/0.185, allocations: 4 kB / 0.4935 GB, free: 13.49 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.185, allocations: 0 / 0.4935 GB, free: 13.49 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.477e-05/0.185, allocations: 0 / 0.4935 GB, free: 13.49 MB / 382.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.001808/0.1868, allocations: 0.8547 MB / 0.4943 GB, free: 12.58 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.736e-05/0.1869, allocations: 8.031 kB / 0.4943 GB, free: 12.57 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001051/0.187, allocations: 70.53 kB / 0.4944 GB, free: 12.49 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002291/0.1872, allocations: 71.3 kB / 0.4945 GB, free: 12.42 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006272/0.1879, allocations: 425.4 kB / 0.4949 GB, free: 11.97 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.452e-05/0.1879, allocations: 20.56 kB / 0.4949 GB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.395e-05/0.188, allocations: 28 kB / 0.4949 GB, free: 11.92 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009005/0.1889, allocations: 0.5301 MB / 0.4954 GB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.1889, allocations: 0 / 0.4954 GB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.88e-05/0.189, allocations: 16 kB / 0.4954 GB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.7e-05/0.189, allocations: 32.53 kB / 0.4955 GB, free: 11.3 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007485/0.1898, allocations: 457.9 kB / 0.4959 GB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003473/0.1933, allocations: 2.273 MB / 0.4981 GB, free: 8.441 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004122/0.1937, allocations: 226.7 kB / 0.4983 GB, free: 8.211 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002175/0.1939, allocations: 132.8 kB / 0.4985 GB, free: 8.078 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001244/0.1952, allocations: 1.029 MB / 0.4995 GB, free: 6.93 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003289/0.1955, allocations: 214.6 kB / 0.4997 GB, free: 6.691 MB / 382.1 MB Notification: Performance of pre-optimization done (n=18): time 1.543e-06/0.1955, allocations: 0 / 0.4997 GB, free: 6.691 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.000679/0.1962, allocations: 382.6 kB / 0.5 GB, free: 6.305 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001396/0.1964, allocations: 243.3 kB / 0.5003 GB, free: 6.012 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006278/0.197, allocations: 0.5135 MB / 0.5008 GB, free: 5.484 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.682e-05/0.197, allocations: 29.7 kB / 0.5008 GB, free: 5.449 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002327/0.1973, allocations: 287.1 kB / 0.5011 GB, free: 5.164 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.084e-05/0.1973, allocations: 63.19 kB / 0.5011 GB, free: 5.102 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.933e-05/0.1974, allocations: 4 kB / 0.5011 GB, free: 5.098 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000172/0.1975, allocations: 362.7 kB / 0.5015 GB, free: 4.734 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002055/0.1978, allocations: 132.4 kB / 0.5016 GB, free: 4.605 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003537/0.1981, allocations: 304.8 kB / 0.5019 GB, free: 4.227 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002911/0.1984, allocations: 202.5 kB / 0.5021 GB, free: 4.023 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.381e-06/0.1984, allocations: 8 kB / 0.5021 GB, free: 4.016 MB / 382.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008142/0.1993, allocations: 0.5126 MB / 0.5026 GB, free: 3.492 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002087/0.1995, allocations: 263.1 kB / 0.5029 GB, free: 3.164 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/0.1995, allocations: 4 kB / 0.5029 GB, free: 3.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.194e-05/0.1995, allocations: 8 kB / 0.5029 GB, free: 3.152 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003034/0.1998, allocations: 75.84 kB / 0.5029 GB, free: 3.078 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.585e-05/0.1999, allocations: 15.97 kB / 0.503 GB, free: 3.062 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003476/0.2002, allocations: 59.42 kB / 0.503 GB, free: 3.004 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.955e-05/0.2003, allocations: 24 kB / 0.503 GB, free: 2.98 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.019e-05/0.2003, allocations: 10.14 kB / 0.503 GB, free: 2.973 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007001/0.201, allocations: 473.6 kB / 0.5035 GB, free: 2.504 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.201, allocations: 8.031 kB / 0.5035 GB, free: 2.496 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.342e-06/0.201, allocations: 8 kB / 0.5035 GB, free: 2.488 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002606/0.2013, allocations: 79.84 kB / 0.5036 GB, free: 2.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/0.2013, allocations: 8 kB / 0.5036 GB, free: 2.402 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002933/0.2016, allocations: 51.52 kB / 0.5036 GB, free: 2.352 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.535e-05/0.2016, allocations: 23.94 kB / 0.5037 GB, free: 2.328 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.0002937/0.2019, allocations: 306.6 kB / 0.504 GB, free: 2.012 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.544e-05/0.202, allocations: 51.39 kB / 0.504 GB, free: 1.961 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006/0.2026, allocations: 368.5 kB / 0.5044 GB, free: 1.586 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.2026, allocations: 3.984 kB / 0.5044 GB, free: 1.582 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.2027, allocations: 64 / 0.5044 GB, free: 1.582 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.2027, allocations: 4 kB / 0.5044 GB, free: 1.578 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004467/0.2031, allocations: 417.2 kB / 0.5048 GB, free: 1.121 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.2031, allocations: 4 kB / 0.5048 GB, free: 1.117 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001086/0.2032, allocations: 20 kB / 0.5048 GB, free: 1.098 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.039e-06/0.2033, allocations: 3.953 kB / 0.5048 GB, free: 1.094 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.247e-05/0.2033, allocations: 11.98 kB / 0.5048 GB, free: 1.082 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.2033, allocations: 4 kB / 0.5048 GB, free: 1.078 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.2033, allocations: 0 / 0.5048 GB, free: 1.078 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004725/0.2038, allocations: 354.1 kB / 0.5051 GB, free: 0.707 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001204/0.2039, allocations: 136.4 kB / 0.5053 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.786e-05/0.204, allocations: 15.95 kB / 0.5053 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002174/0.2042, allocations: 12 kB / 0.5053 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.154e-05/0.2043, allocations: 15.92 kB / 0.5053 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.094e-05/0.2043, allocations: 11.98 kB / 0.5053 GB, free: 0.5 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004236/0.2047, allocations: 366.8 kB / 0.5057 GB, free: 148 kB / 382.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.2047, allocations: 0 / 0.5057 GB, free: 148 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.3297/0.5345, allocations: 423.7 kB / 0.5061 GB, free: 41.89 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.002115/0.5366, allocations: 1.201 MB / 0.5073 GB, free: 41.28 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00126/0.5379, allocations: 0.6638 MB / 0.5079 GB, free: 41.15 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.145e-06/0.5379, allocations: 0 / 0.5079 GB, free: 41.15 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002141/0.5381, allocations: 186 kB / 0.5081 GB, free: 41.09 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001/0.5392, allocations: 194.8 kB / 0.5083 GB, free: 41.08 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004918/0.5441, allocations: 2.846 MB / 0.511 GB, free: 40.12 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004213/0.5445, allocations: 0.8406 MB / 0.5119 GB, free: 39.43 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006479/0.5452, allocations: 163.9 kB / 0.512 GB, free: 39.42 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000237/0.5454, allocations: 151.1 kB / 0.5122 GB, free: 39.38 MB / 382.1 MB Notification: Performance of SimCode: time 4.61e-07/0.5454, allocations: 4.656 kB / 0.5122 GB, free: 39.38 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04171/0.5871, allocations: 16.13 MB / 0.5279 GB, free: 33.84 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001827/0.5874, allocations: 221.9 kB / 0.5281 GB, free: 33.61 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.473/3.061, allocations: 2.734 kB / 0.5281 GB, free: 33.61 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe 2>&1)