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: 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_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001227/0.001227, allocations: 100 kB / 16.99 MB, free: 5.938 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.001479/0.001479, allocations: 187.7 kB / 17.88 MB, free: 5.594 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.318/1.318, allocations: 223.2 MB / 241.8 MB, free: 14.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2005/0.2005, allocations: 44.22 MB / 337.1 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003567/0.0003568, allocations: 8 kB / 409.5 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.14/0.1404, allocations: 61.91 MB / 471.4 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe): time 0.01267/0.1531, allocations: 10.74 MB / 482.2 MB, free: 2.949 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007515/0.1606, allocations: 4.807 MB / 487 MB, free: 14.13 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008813/0.1615, allocations: 15.88 kB / 487 MB, free: 14.12 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009827/0.1625, allocations: 171.1 kB / 487.2 MB, free: 13.95 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002854/0.1654, allocations: 0.5762 MB / 487.8 MB, free: 13.38 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005358/0.1708, allocations: 1.182 MB / 488.9 MB, free: 12.2 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002098/0.1729, allocations: 0.6947 MB / 489.6 MB, free: 11.5 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000671/0.1736, allocations: 261.5 kB / 489.9 MB, free: 11.24 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001059/0.1747, allocations: 414.7 kB / 490.3 MB, free: 10.84 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005564/0.1752, allocations: 314.9 kB / 490.6 MB, free: 10.53 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.76e-05/0.1753, allocations: 20 kB / 490.6 MB, free: 10.51 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002454/0.1778, allocations: 0.9518 MB / 491.6 MB, free: 9.555 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001782/0.178, allocations: 131.6 kB / 491.7 MB, free: 9.426 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001902/0.1782, allocations: 121.5 kB / 491.8 MB, free: 9.301 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001626/0.1798, allocations: 0.9162 MB / 492.7 MB, free: 8.383 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.1798, allocations: 4 kB / 492.7 MB, free: 8.379 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.1798, allocations: 4 kB / 492.7 MB, free: 8.375 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.775e-06/0.1798, allocations: 0 / 492.7 MB, free: 8.375 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.001594/0.1814, allocations: 0.8469 MB / 493.6 MB, free: 7.473 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/0.1815, allocations: 12.03 kB / 493.6 MB, free: 7.461 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002222/0.1817, allocations: 59.34 kB / 493.7 MB, free: 7.402 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006198/0.1823, allocations: 429.4 kB / 494.1 MB, free: 6.945 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.37e-05/0.1824, allocations: 24.55 kB / 494.1 MB, free: 6.922 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.96e-05/0.1824, allocations: 28 kB / 494.1 MB, free: 6.895 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007827/0.1832, allocations: 0.5263 MB / 494.7 MB, free: 6.328 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.451e-05/0.1833, allocations: 0 / 494.7 MB, free: 6.328 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.899e-05/0.1833, allocations: 12 kB / 494.7 MB, free: 6.316 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.277e-05/0.1834, allocations: 24.55 kB / 494.7 MB, free: 6.293 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006896/0.1841, allocations: 465.9 kB / 495.1 MB, free: 5.84 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003124/0.1872, allocations: 2.292 MB / 497.4 MB, free: 3.402 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003838/0.1876, allocations: 242.7 kB / 497.7 MB, free: 3.156 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001163/0.1888, allocations: 1.037 MB / 498.7 MB, free: 2 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003027/0.1891, allocations: 208.4 kB / 498.9 MB, free: 1.766 MB / 366.1 MB Notification: Performance of pre-optimization done (n=18): time 1.653e-06/0.1891, allocations: 0 / 498.9 MB, free: 1.766 MB / 366.1 MB Notification: Performance of matching and sorting (n=18): time 0.0006911/0.1898, allocations: 466 kB / 499.4 MB, free: 1.281 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001152/0.1899, allocations: 239.3 kB / 499.6 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005818/0.1905, allocations: 0.5135 MB / 0.4884 GB, free: 480 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.758e-05/0.1906, allocations: 33.7 kB / 0.4884 GB, free: 440 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002302/0.1908, allocations: 287.1 kB / 0.4887 GB, free: 148 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.697e-05/0.1909, allocations: 63.17 kB / 0.4888 GB, free: 84 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.893e-05/0.1909, allocations: 11.94 kB / 0.4888 GB, free: 72 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.1911, allocations: 354.8 kB / 0.4891 GB, free: 15.71 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001968/0.1913, allocations: 132.3 kB / 0.4892 GB, free: 15.59 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003358/0.1916, allocations: 305 kB / 0.4895 GB, free: 15.21 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002821/0.1919, allocations: 210.4 kB / 0.4897 GB, free: 15 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.601e-06/0.1919, allocations: 0 / 0.4897 GB, free: 15 MB / 382.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007867/0.1927, allocations: 0.5223 MB / 0.4902 GB, free: 14.46 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006861/0.1934, allocations: 1.779 MB / 0.492 GB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.1934, allocations: 4 kB / 0.492 GB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.904e-05/0.1934, allocations: 8 kB / 0.492 GB, free: 12.53 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003043/0.1937, allocations: 75.89 kB / 0.4921 GB, free: 12.46 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.637e-05/0.1938, allocations: 15.94 kB / 0.4921 GB, free: 12.44 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003931/0.1942, allocations: 59.42 kB / 0.4921 GB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.367e-05/0.1942, allocations: 24 kB / 0.4922 GB, free: 12.36 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.618e-06/0.1942, allocations: 4 kB / 0.4922 GB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006808/0.1949, allocations: 473.2 kB / 0.4926 GB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.72e-06/0.195, allocations: 8 kB / 0.4926 GB, free: 11.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.702e-06/0.195, allocations: 4 kB / 0.4926 GB, free: 11.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002589/0.1952, allocations: 79.8 kB / 0.4927 GB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.336e-06/0.1952, allocations: 11.98 kB / 0.4927 GB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000309/0.1956, allocations: 52.09 kB / 0.4928 GB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.429e-05/0.1956, allocations: 19.98 kB / 0.4928 GB, free: 11.71 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.0002986/0.1959, allocations: 303.1 kB / 0.4931 GB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.575e-05/0.196, allocations: 47.44 kB / 0.4931 GB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006298/0.1966, allocations: 371 kB / 0.4935 GB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.189e-06/0.1966, allocations: 8.016 kB / 0.4935 GB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.023e-05/0.1967, allocations: 11.98 kB / 0.4935 GB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.1967, allocations: 0 / 0.4935 GB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004542/0.1971, allocations: 405.2 kB / 0.4939 GB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.1971, allocations: 0 / 0.4939 GB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000122/0.1973, allocations: 27.92 kB / 0.4939 GB, free: 10.49 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.1973, allocations: 7.938 kB / 0.4939 GB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.267e-05/0.1973, allocations: 11.98 kB / 0.4939 GB, free: 10.47 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.1973, allocations: 0 / 0.4939 GB, free: 10.47 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.1973, allocations: 3.953 kB / 0.4939 GB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004637/0.1978, allocations: 358.1 kB / 0.4943 GB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001324/0.1979, allocations: 132.4 kB / 0.4944 GB, free: 9.941 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.887e-05/0.198, allocations: 8 kB / 0.4944 GB, free: 9.934 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002411/0.1983, allocations: 19.98 kB / 0.4944 GB, free: 9.914 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.776e-05/0.1983, allocations: 11.94 kB / 0.4944 GB, free: 9.902 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.793e-05/0.1984, allocations: 15.94 kB / 0.4944 GB, free: 9.887 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003962/0.1988, allocations: 366.8 kB / 0.4948 GB, free: 9.531 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.843e-06/0.1988, allocations: 0 / 0.4948 GB, free: 9.531 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001189/0.2, allocations: 435.5 kB / 0.4952 GB, free: 9.105 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.0009846/0.201, allocations: 401.8 kB / 0.4956 GB, free: 8.711 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008898/0.2019, allocations: 0.6637 MB / 0.4962 GB, free: 8.023 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.252e-06/0.2019, allocations: 4 kB / 0.4962 GB, free: 8.02 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001946/0.2021, allocations: 186.4 kB / 0.4964 GB, free: 7.828 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008805/0.203, allocations: 184.4 kB / 0.4966 GB, free: 7.652 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001381/0.2044, allocations: 0.9589 MB / 0.4975 GB, free: 6.656 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000384/0.2048, allocations: 0.8552 MB / 0.4984 GB, free: 5.77 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005123/0.2053, allocations: 168.1 kB / 0.4985 GB, free: 5.605 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.418e-05/0.2054, allocations: 43.42 kB / 0.4986 GB, free: 5.566 MB / 382.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2054, allocations: 3.938 kB / 0.4986 GB, free: 5.562 MB / 382.1 MB Notification: Performance of Templates: time 0.2788/0.4842, allocations: 11.34 MB / 0.5096 GB, free: 48.71 MB / 382.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Pipes/StaticPipe/StaticPipe.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches