Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.001768/0.001768, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001996/0.001996, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.466/1.466, allocations: 227.4 MB / 246.8 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2512/0.2512, allocations: 46.11 MB / 344.2 MB, free: 11.53 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002421/0.002421, allocations: 80.52 kB / 417.8 MB, free: 19.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1402/0.1426, allocations: 62.45 MB / 480.2 MB, free: 5.094 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe): time 0.01633/0.159, allocations: 12.68 MB / 492.9 MB, free: 8.355 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009794/0.1688, allocations: 5.484 MB / 498.4 MB, free: 2.855 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007811/0.1697, allocations: 15.88 kB / 498.4 MB, free: 2.84 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008465/0.1706, allocations: 206.7 kB / 498.6 MB, free: 2.637 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002373/0.173, allocations: 0.7036 MB / 499.3 MB, free: 1.93 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004632/0.1776, allocations: 1.553 MB / 0.4891 GB, free: 396 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001772/0.1794, allocations: 1.235 MB / 0.4903 GB, free: 15.15 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005366/0.1799, allocations: 317.3 kB / 0.4906 GB, free: 14.84 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008893/0.1808, allocations: 0.4945 MB / 0.4911 GB, free: 14.34 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008042/0.1817, allocations: 466.4 kB / 0.4915 GB, free: 13.88 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.806e-05/0.1818, allocations: 44 kB / 0.4916 GB, free: 13.84 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002765/0.1845, allocations: 1.084 MB / 0.4926 GB, free: 12.75 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002641/0.1848, allocations: 163.5 kB / 0.4928 GB, free: 12.59 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004146/0.1852, allocations: 278.7 kB / 0.4931 GB, free: 12.32 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00243/0.1877, allocations: 1.336 MB / 0.4944 GB, free: 10.98 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.404e-06/0.1877, allocations: 4 kB / 0.4944 GB, free: 10.98 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1877, allocations: 0 / 0.4944 GB, free: 10.98 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.628e-06/0.1877, allocations: 4 kB / 0.4944 GB, free: 10.97 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.002009/0.1897, allocations: 0.9443 MB / 0.4953 GB, free: 9.973 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.247e-05/0.1898, allocations: 12.03 kB / 0.4953 GB, free: 9.961 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001002/0.1899, allocations: 70.72 kB / 0.4954 GB, free: 9.883 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002505/0.1902, allocations: 56.38 kB / 0.4954 GB, free: 9.828 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006894/0.1909, allocations: 445.2 kB / 0.4959 GB, free: 9.355 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.883e-05/0.1909, allocations: 28.55 kB / 0.4959 GB, free: 9.328 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.84e-05/0.191, allocations: 31.94 kB / 0.4959 GB, free: 9.297 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009831/0.192, allocations: 0.5263 MB / 0.4964 GB, free: 8.73 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.44e-05/0.192, allocations: 0 / 0.4964 GB, free: 8.73 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.504e-05/0.1921, allocations: 16 kB / 0.4964 GB, free: 8.715 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.86e-05/0.1921, allocations: 28.53 kB / 0.4965 GB, free: 8.688 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000817/0.193, allocations: 465.9 kB / 0.4969 GB, free: 8.23 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003659/0.1966, allocations: 2.261 MB / 0.4991 GB, free: 5.828 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004595/0.1971, allocations: 248.8 kB / 0.4994 GB, free: 5.578 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000241/0.1974, allocations: 132.8 kB / 0.4995 GB, free: 5.445 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001434/0.1988, allocations: 1.021 MB / 0.5005 GB, free: 4.305 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003684/0.1992, allocations: 208.4 kB / 0.5007 GB, free: 4.07 MB / 382.1 MB Notification: Performance of pre-optimization done (n=18): time 1.964e-06/0.1992, allocations: 0 / 0.5007 GB, free: 4.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.0007453/0.1999, allocations: 385.1 kB / 0.5011 GB, free: 3.684 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001862/0.2001, allocations: 247.3 kB / 0.5013 GB, free: 3.387 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00068/0.2008, allocations: 0.5175 MB / 0.5018 GB, free: 2.859 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.823e-05/0.2009, allocations: 33.7 kB / 0.5018 GB, free: 2.82 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002773/0.2012, allocations: 287 kB / 0.5021 GB, free: 2.535 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.287e-05/0.2012, allocations: 63.27 kB / 0.5022 GB, free: 2.473 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002053/0.2015, allocations: 97.58 kB / 0.5023 GB, free: 2.371 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001927/0.2017, allocations: 358.7 kB / 0.5026 GB, free: 2.012 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002489/0.2019, allocations: 137.2 kB / 0.5027 GB, free: 1.875 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003973/0.2023, allocations: 309.9 kB / 0.503 GB, free: 1.492 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006842/0.203, allocations: 461.1 kB / 0.5035 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.54e-06/0.203, allocations: 0 / 0.5035 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001019/0.2041, allocations: 0.5379 MB / 0.504 GB, free: 428 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.444e-05/0.2041, allocations: 41.69 kB / 0.504 GB, free: 380 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.081e-05/0.2041, allocations: 4 kB / 0.504 GB, free: 376 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.164e-05/0.2042, allocations: 8.594 kB / 0.504 GB, free: 368 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003142/0.2045, allocations: 83.84 kB / 0.5041 GB, free: 284 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.586e-05/0.2045, allocations: 11.98 kB / 0.5041 GB, free: 272 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003769/0.2049, allocations: 47.44 kB / 0.5042 GB, free: 224 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.483e-05/0.2049, allocations: 24 kB / 0.5042 GB, free: 200 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.2496/0.4546, allocations: 268.7 kB / 0.5045 GB, free: 42.73 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003953/0.455, allocations: 309.9 kB / 0.5048 GB, free: 42.52 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000504/0.4555, allocations: 456.8 kB / 0.5052 GB, free: 42.29 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.549e-06/0.4555, allocations: 1.375 kB / 0.5052 GB, free: 42.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=49) (initialization_lambda0): time 0.0009533/0.4565, allocations: 0.5237 MB / 0.5057 GB, free: 42.21 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.668e-05/0.4566, allocations: 42.03 kB / 0.5057 GB, free: 42.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.677e-06/0.4566, allocations: 4.75 kB / 0.5057 GB, free: 42.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.145e-05/0.4566, allocations: 16.88 kB / 0.5058 GB, free: 42.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004058/0.457, allocations: 74.7 kB / 0.5058 GB, free: 42.17 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.345e-05/0.457, allocations: 10.7 kB / 0.5058 GB, free: 42.17 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005005/0.4575, allocations: 41.34 kB / 0.5059 GB, free: 42.17 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.747e-05/0.4576, allocations: 22.12 kB / 0.5059 GB, free: 42.17 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 (p_table.nextEventScaled,p_table.nextEvent,$PRE.p_table.nextEvent,p_table.last,p_table.b,p_table.a,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002262/0.4578, allocations: 249.2 kB / 0.5061 GB, free: 41.95 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.661e-05/0.4579, allocations: 47.56 kB / 0.5062 GB, free: 41.95 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000701/0.4586, allocations: 364.3 kB / 0.5065 GB, free: 41.87 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.531e-06/0.4586, allocations: 5.969 kB / 0.5065 GB, free: 41.87 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.4586, allocations: 0 / 0.5065 GB, free: 41.87 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.4587, allocations: 1.781 kB / 0.5065 GB, free: 41.87 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004979/0.4592, allocations: 412.2 kB / 0.5069 GB, free: 41.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.4592, allocations: 0 / 0.5069 GB, free: 41.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000127/0.4593, allocations: 26.97 kB / 0.507 GB, free: 41.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.361e-06/0.4593, allocations: 4.438 kB / 0.507 GB, free: 41.68 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.718e-05/0.4594, allocations: 7.641 kB / 0.507 GB, free: 41.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.117e-06/0.4594, allocations: 2.375 kB / 0.507 GB, free: 41.68 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.4594, allocations: 2.469 kB / 0.507 GB, free: 41.68 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005677/0.4599, allocations: 358.8 kB / 0.5073 GB, free: 41.57 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.917e-05/0.46, allocations: 127.8 kB / 0.5074 GB, free: 41.46 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.237e-05/0.4601, allocations: 13.19 kB / 0.5075 GB, free: 41.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002196/0.4604, allocations: 8.016 kB / 0.5075 GB, free: 41.45 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.53e-05/0.4604, allocations: 13.8 kB / 0.5075 GB, free: 41.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.265e-05/0.4604, allocations: 7.578 kB / 0.5075 GB, free: 41.45 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004329/0.4609, allocations: 375.1 kB / 0.5078 GB, free: 41.27 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4609, allocations: 1.062 kB / 0.5078 GB, free: 41.27 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00124/0.4621, allocations: 430 kB / 0.5082 GB, free: 41.25 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00161/0.4638, allocations: 1.214 MB / 0.5094 GB, free: 40.5 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001389/0.4652, allocations: 0.6897 MB / 0.5101 GB, free: 40.16 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/0.4652, allocations: 1.625 kB / 0.5101 GB, free: 40.16 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002516/0.4654, allocations: 189.8 kB / 0.5103 GB, free: 40.05 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001059/0.4665, allocations: 207.8 kB / 0.5105 GB, free: 40.01 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006409/0.4729, allocations: 4.454 MB / 0.5148 GB, free: 37.34 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003582/0.4733, allocations: 0.8441 MB / 0.5157 GB, free: 36.63 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006996/0.474, allocations: 165.5 kB / 0.5158 GB, free: 36.61 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002053/0.4742, allocations: 151 kB / 0.516 GB, free: 36.5 MB / 382.1 MB Notification: Performance of SimCode: time 1.122e-06/0.4742, allocations: 0 / 0.516 GB, free: 36.5 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04602/0.5203, allocations: 16.95 MB / 0.5325 GB, free: 28.25 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.517/9.038, allocations: 7.938 kB / 0.5325 GB, free: 28.25 MB / 382.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe 2>&1)