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: translateModel(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|pipe1.port_a.p|pipe1.port_b.p|pipe1.port_b.m_flow|pipe1.port_b.h_outflow",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe") translateModel(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|pipe1.port_a.p|pipe1.port_b.p|pipe1.port_b.m_flow|pipe1.port_b.h_outflow",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001189/0.00119, allocations: 117.3 kB / 17.98 MB, free: 5.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001296/0.001296, allocations: 201.8 kB / 18.92 MB, free: 4.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.377/1.377, allocations: 227.4 MB / 247.1 MB, free: 10.71 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2037/0.2037, allocations: 46.09 MB / 344.4 MB, free: 11.79 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001649/0.001649, allocations: 75.53 kB / 417.7 MB, free: 20.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1205, allocations: 62.44 MB / 480.2 MB, free: 5.641 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe): time 0.01601/0.1365, allocations: 12.93 MB / 493.1 MB, free: 8.656 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007967/0.1445, allocations: 5.542 MB / 498.6 MB, free: 3.102 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007377/0.1453, allocations: 19.88 kB / 498.6 MB, free: 3.082 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008449/0.1462, allocations: 175 kB / 498.8 MB, free: 2.91 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002135/0.1484, allocations: 0.6457 MB / 499.5 MB, free: 2.262 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004508/0.1529, allocations: 1.425 MB / 0.4891 GB, free: 0.8477 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001677/0.1546, allocations: 1.239 MB / 0.4904 GB, free: 15.61 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000625/0.1553, allocations: 325.1 kB / 0.4907 GB, free: 15.29 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001094/0.1564, allocations: 0.4983 MB / 0.4912 GB, free: 14.79 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008836/0.1573, allocations: 486.3 kB / 0.4916 GB, free: 14.31 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001607/0.1574, allocations: 48 kB / 0.4917 GB, free: 14.26 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002178/0.1596, allocations: 1.073 MB / 0.4927 GB, free: 13.19 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000282/0.1599, allocations: 159.5 kB / 0.4929 GB, free: 13.03 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004482/0.1604, allocations: 278.7 kB / 0.4931 GB, free: 12.76 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001593/0.162, allocations: 0.9511 MB / 0.4941 GB, free: 11.8 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.162, allocations: 0 / 0.4941 GB, free: 11.8 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.162, allocations: 0 / 0.4941 GB, free: 11.8 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.083e-05/0.1621, allocations: 0 / 0.4941 GB, free: 11.8 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.002166/0.1642, allocations: 0.9521 MB / 0.495 GB, free: 10.8 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.1643, allocations: 8.031 kB / 0.495 GB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003208/0.1646, allocations: 60.38 kB / 0.4951 GB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006798/0.1653, allocations: 441.4 kB / 0.4955 GB, free: 10.26 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.329e-05/0.1653, allocations: 20.56 kB / 0.4955 GB, free: 10.24 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.653e-05/0.1654, allocations: 35.98 kB / 0.4955 GB, free: 10.21 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000858/0.1663, allocations: 0.5146 MB / 0.496 GB, free: 9.656 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.653e-05/0.1663, allocations: 4 kB / 0.496 GB, free: 9.652 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.658e-05/0.1664, allocations: 16 kB / 0.4961 GB, free: 9.637 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.105e-05/0.1664, allocations: 32.53 kB / 0.4961 GB, free: 9.605 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007114/0.1671, allocations: 461.9 kB / 0.4965 GB, free: 9.152 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003338/0.1705, allocations: 2.269 MB / 0.4987 GB, free: 6.742 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004185/0.1709, allocations: 242.6 kB / 0.499 GB, free: 6.496 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002006/0.1711, allocations: 132.8 kB / 0.4991 GB, free: 6.363 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001188/0.1723, allocations: 1.021 MB / 0.5001 GB, free: 5.223 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003331/0.1727, allocations: 218.9 kB / 0.5003 GB, free: 4.98 MB / 382.1 MB Notification: Performance of pre-optimization done (n=18): time 2.444e-06/0.1727, allocations: 0 / 0.5003 GB, free: 4.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.0007357/0.1734, allocations: 386.5 kB / 0.5007 GB, free: 4.59 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001222/0.1736, allocations: 239.3 kB / 0.5009 GB, free: 4.301 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006195/0.1742, allocations: 0.5213 MB / 0.5014 GB, free: 3.77 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.406e-05/0.1742, allocations: 29.7 kB / 0.5014 GB, free: 3.734 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002347/0.1745, allocations: 295.1 kB / 0.5017 GB, free: 3.441 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.676e-05/0.1745, allocations: 51.34 kB / 0.5018 GB, free: 3.391 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001586/0.1747, allocations: 93.59 kB / 0.5019 GB, free: 3.293 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.1749, allocations: 358.8 kB / 0.5022 GB, free: 2.934 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002298/0.1751, allocations: 141.2 kB / 0.5023 GB, free: 2.793 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003518/0.1755, allocations: 305.9 kB / 0.5026 GB, free: 2.414 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005442/0.176, allocations: 471.6 kB / 0.5031 GB, free: 1.883 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.63e-06/0.176, allocations: 0 / 0.5031 GB, free: 1.883 MB / 382.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008566/0.1769, allocations: 0.5311 MB / 0.5036 GB, free: 1.34 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.987e-05/0.177, allocations: 45.69 kB / 0.5036 GB, free: 1.289 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.177, allocations: 4 kB / 0.5036 GB, free: 1.285 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.276e-05/0.177, allocations: 8 kB / 0.5036 GB, free: 1.277 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003212/0.1773, allocations: 71.91 kB / 0.5037 GB, free: 1.207 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.303e-05/0.1773, allocations: 7.938 kB / 0.5037 GB, free: 1.199 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004524/0.1778, allocations: 71.86 kB / 0.5038 GB, free: 1.129 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.624e-05/0.1779, allocations: 20 kB / 0.5038 GB, free: 1.109 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003414/0.1782, allocations: 268.5 kB / 0.5041 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003437/0.1786, allocations: 311 kB / 0.5044 GB, free: 468 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.2209/0.3995, allocations: 456.8 kB / 0.5048 GB, free: 42.53 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.163e-06/0.3995, allocations: 2.625 kB / 0.5048 GB, free: 42.53 MB / 382.1 MB Notification: Performance of matching and sorting (n=49) (initialization_lambda0): time 0.001034/0.4005, allocations: 0.5202 MB / 0.5053 GB, free: 42.46 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.225e-05/0.4006, allocations: 40.16 kB / 0.5053 GB, free: 42.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.034e-06/0.4006, allocations: 6.719 kB / 0.5054 GB, free: 42.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.029e-05/0.4006, allocations: 6.875 kB / 0.5054 GB, free: 42.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002915/0.4009, allocations: 77.84 kB / 0.5054 GB, free: 42.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.466e-05/0.4009, allocations: 8.625 kB / 0.5054 GB, free: 42.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004559/0.4014, allocations: 51.67 kB / 0.5055 GB, free: 42.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.335e-05/0.4014, allocations: 24.48 kB / 0.5055 GB, free: 42.43 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.0001865/0.4016, allocations: 245.2 kB / 0.5058 GB, free: 42.21 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.826e-05/0.4017, allocations: 51.33 kB / 0.5058 GB, free: 42.21 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006423/0.4024, allocations: 359 kB / 0.5061 GB, free: 42.13 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-06/0.4024, allocations: 2.078 kB / 0.5061 GB, free: 42.13 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.4024, allocations: 0.9375 kB / 0.5061 GB, free: 42.13 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.4024, allocations: 0.75 kB / 0.5061 GB, free: 42.13 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004653/0.4029, allocations: 417.7 kB / 0.5065 GB, free: 41.94 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/0.4029, allocations: 0 / 0.5065 GB, free: 41.94 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001242/0.403, allocations: 27.92 kB / 0.5066 GB, free: 41.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.826e-06/0.403, allocations: 0.9062 kB / 0.5066 GB, free: 41.93 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.184e-05/0.403, allocations: 10.58 kB / 0.5066 GB, free: 41.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.776e-06/0.4031, allocations: 1.984 kB / 0.5066 GB, free: 41.93 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.4031, allocations: 2.344 kB / 0.5066 GB, free: 41.93 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004885/0.4036, allocations: 364.8 kB / 0.5069 GB, free: 41.84 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.881e-05/0.4036, allocations: 123.4 kB / 0.5071 GB, free: 41.72 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.011e-05/0.4037, allocations: 13.64 kB / 0.5071 GB, free: 41.72 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002406/0.404, allocations: 18.89 kB / 0.5071 GB, free: 41.72 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.592e-05/0.404, allocations: 15.55 kB / 0.5071 GB, free: 41.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.207e-05/0.4041, allocations: 11.52 kB / 0.5071 GB, free: 41.71 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003947/0.4045, allocations: 370.2 kB / 0.5075 GB, free: 41.62 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4045, allocations: 0 / 0.5075 GB, free: 41.62 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001112/0.4056, allocations: 429.4 kB / 0.5079 GB, free: 41.62 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.001025/0.4066, allocations: 421.4 kB / 0.5083 GB, free: 41.53 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001054/0.4077, allocations: 0.6894 MB / 0.5089 GB, free: 41.25 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.4077, allocations: 0 / 0.5089 GB, free: 41.25 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001956/0.4079, allocations: 188.1 kB / 0.5091 GB, free: 41.13 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009329/0.4088, allocations: 204.1 kB / 0.5093 GB, free: 41.09 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001286/0.4101, allocations: 0.9993 MB / 0.5103 GB, free: 40.51 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002929/0.4104, allocations: 0.8421 MB / 0.5111 GB, free: 39.8 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001205/0.4106, allocations: 50.94 kB / 0.5112 GB, free: 39.79 MB / 382.1 MB Notification: Performance of SimCode: time 9.62e-07/0.4106, allocations: 1.156 kB / 0.5112 GB, free: 39.79 MB / 382.1 MB Notification: Performance of Templates: time 0.01646/0.427, allocations: 10.19 MB / 0.5211 GB, free: 36.85 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Pipes/StaticPipe/StaticPipe.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches