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.001178/0.001178, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001291/0.001291, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 227.4 MB / 246.8 MB, free: 10.65 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2291/0.2291, allocations: 46.1 MB / 344.1 MB, free: 11.63 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001392/0.001392, allocations: 75.72 kB / 417.6 MB, free: 19.79 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1639/0.1653, allocations: 62.45 MB / 480 MB, free: 5.324 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe): time 0.0138/0.1792, allocations: 12.68 MB / 492.7 MB, free: 8.586 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01011/0.1894, allocations: 5.484 MB / 498.2 MB, free: 3.086 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007181/0.1902, allocations: 15.88 kB / 498.2 MB, free: 3.07 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008468/0.1911, allocations: 206.7 kB / 498.4 MB, free: 2.867 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002135/0.1933, allocations: 0.6958 MB / 499.1 MB, free: 2.168 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004408/0.1977, allocations: 1.556 MB / 0.4889 GB, free: 0.6211 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001425/0.1991, allocations: 1.231 MB / 0.4901 GB, free: 15.39 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004621/0.1996, allocations: 317.2 kB / 0.4904 GB, free: 15.07 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000809/0.2004, allocations: 0.4905 MB / 0.4909 GB, free: 14.58 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006717/0.2011, allocations: 462.4 kB / 0.4913 GB, free: 14.13 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.805e-05/0.2012, allocations: 44 kB / 0.4914 GB, free: 14.09 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001752/0.2029, allocations: 1.096 MB / 0.4925 GB, free: 12.99 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001877/0.2031, allocations: 159.6 kB / 0.4926 GB, free: 12.83 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003056/0.2035, allocations: 282.6 kB / 0.4929 GB, free: 12.55 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001626/0.2051, allocations: 1.333 MB / 0.4942 GB, free: 11.22 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.2051, allocations: 0 / 0.4942 GB, free: 11.22 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.2051, allocations: 0 / 0.4942 GB, free: 11.22 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.459e-05/0.2051, allocations: 0 / 0.4942 GB, free: 11.22 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.001712/0.2069, allocations: 0.9637 MB / 0.4951 GB, free: 10.2 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.551e-05/0.2069, allocations: 8.031 kB / 0.4951 GB, free: 10.19 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002549/0.2072, allocations: 56.38 kB / 0.4952 GB, free: 10.14 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006039/0.2078, allocations: 441.5 kB / 0.4956 GB, free: 9.668 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.31e-05/0.2078, allocations: 20.56 kB / 0.4956 GB, free: 9.648 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.432e-05/0.2079, allocations: 31.98 kB / 0.4957 GB, free: 9.617 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007606/0.2087, allocations: 0.5262 MB / 0.4962 GB, free: 9.051 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.516e-05/0.2087, allocations: 4 kB / 0.4962 GB, free: 9.047 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.074e-05/0.2087, allocations: 15.98 kB / 0.4962 GB, free: 9.031 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.252e-05/0.2088, allocations: 28.53 kB / 0.4962 GB, free: 9.004 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000653/0.2094, allocations: 466 kB / 0.4967 GB, free: 8.547 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003028/0.2125, allocations: 2.257 MB / 0.4989 GB, free: 6.148 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003993/0.2129, allocations: 246.5 kB / 0.4991 GB, free: 5.898 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001953/0.2131, allocations: 136.8 kB / 0.4992 GB, free: 5.762 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001052/0.2142, allocations: 1.017 MB / 0.5002 GB, free: 4.625 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003196/0.2145, allocations: 223 kB / 0.5004 GB, free: 4.379 MB / 382.1 MB Notification: Performance of pre-optimization done (n=18): time 1.803e-06/0.2145, allocations: 0 / 0.5004 GB, free: 4.379 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.000669/0.2152, allocations: 382.6 kB / 0.5008 GB, free: 3.992 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001413/0.2153, allocations: 239.3 kB / 0.501 GB, free: 3.703 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005572/0.2159, allocations: 0.5136 MB / 0.5015 GB, free: 3.18 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.336e-05/0.2159, allocations: 33.7 kB / 0.5016 GB, free: 3.141 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002078/0.2162, allocations: 287.1 kB / 0.5018 GB, free: 2.855 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.297e-05/0.2162, allocations: 59.25 kB / 0.5019 GB, free: 2.797 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001431/0.2164, allocations: 97.59 kB / 0.502 GB, free: 2.695 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.2165, allocations: 358.8 kB / 0.5023 GB, free: 2.336 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002152/0.2167, allocations: 137.2 kB / 0.5025 GB, free: 2.199 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003229/0.2171, allocations: 313.8 kB / 0.5028 GB, free: 1.812 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005874/0.2177, allocations: 461.2 kB / 0.5032 GB, free: 1.289 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.2177, allocations: 7.938 kB / 0.5032 GB, free: 1.281 MB / 382.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008435/0.2185, allocations: 0.5304 MB / 0.5037 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.753e-05/0.2186, allocations: 41.69 kB / 0.5038 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/0.2186, allocations: 4 kB / 0.5038 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.386e-05/0.2186, allocations: 8 kB / 0.5038 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003071/0.219, allocations: 79.84 kB / 0.5039 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.701e-05/0.219, allocations: 8 kB / 0.5039 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003874/0.2194, allocations: 59.36 kB / 0.5039 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.301e-05/0.2194, allocations: 20.31 kB / 0.5039 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003558/0.2198, allocations: 272.5 kB / 0.5042 GB, free: 252 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.3441/0.5639, allocations: 305 kB / 0.5045 GB, free: 42.56 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001034/0.565, allocations: 459.1 kB / 0.5049 GB, free: 42.33 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.197e-06/0.5651, allocations: 0.9062 kB / 0.5049 GB, free: 42.33 MB / 382.1 MB Notification: Performance of matching and sorting (n=49) (initialization_lambda0): time 0.00133/0.5664, allocations: 0.525 MB / 0.5054 GB, free: 42.25 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.762e-05/0.5665, allocations: 41.33 kB / 0.5055 GB, free: 42.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.392e-05/0.5665, allocations: 4.594 kB / 0.5055 GB, free: 42.21 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.644e-05/0.5665, allocations: 11.55 kB / 0.5055 GB, free: 42.21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000375/0.5669, allocations: 78.69 kB / 0.5056 GB, free: 42.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.831e-05/0.5669, allocations: 9.922 kB / 0.5056 GB, free: 42.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000682/0.5676, allocations: 39.95 kB / 0.5056 GB, free: 42.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.933e-05/0.5677, allocations: 23.55 kB / 0.5056 GB, free: 42.21 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.0002735/0.568, allocations: 244.2 kB / 0.5059 GB, free: 41.99 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001727/0.5682, allocations: 52.38 kB / 0.5059 GB, free: 41.99 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008051/0.569, allocations: 359.6 kB / 0.5063 GB, free: 41.91 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.735e-06/0.569, allocations: 6 kB / 0.5063 GB, free: 41.91 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.765e-06/0.569, allocations: 0 / 0.5063 GB, free: 41.91 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.337e-06/0.569, allocations: 1.875 kB / 0.5063 GB, free: 41.91 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007393/0.5698, allocations: 421 kB / 0.5067 GB, free: 41.72 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.5698, allocations: 0.6562 kB / 0.5067 GB, free: 41.72 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001311/0.5699, allocations: 29.88 kB / 0.5067 GB, free: 41.71 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.05e-06/0.57, allocations: 1.375 kB / 0.5067 GB, free: 41.71 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.706e-05/0.57, allocations: 9.203 kB / 0.5067 GB, free: 41.71 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.947e-06/0.57, allocations: 2.594 kB / 0.5067 GB, free: 41.71 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.57, allocations: 0 / 0.5067 GB, free: 41.71 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006914/0.5707, allocations: 363.1 kB / 0.5071 GB, free: 41.62 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001963/0.5709, allocations: 124.2 kB / 0.5072 GB, free: 41.5 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001284/0.5711, allocations: 13.23 kB / 0.5072 GB, free: 41.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002733/0.5713, allocations: 7.391 kB / 0.5072 GB, free: 41.5 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.412e-05/0.5714, allocations: 19.16 kB / 0.5072 GB, free: 41.49 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.231e-05/0.5715, allocations: 7.938 kB / 0.5072 GB, free: 41.49 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007142/0.5722, allocations: 375.2 kB / 0.5076 GB, free: 41.38 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5722, allocations: 0 / 0.5076 GB, free: 41.38 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00198/0.5742, allocations: 435.6 kB / 0.508 GB, free: 41.36 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.001664/0.5758, allocations: 421.2 kB / 0.5084 GB, free: 41.25 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001413/0.5773, allocations: 0.686 MB / 0.5091 GB, free: 40.92 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5e-06/0.5773, allocations: 0 / 0.5091 GB, free: 40.92 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002625/0.5776, allocations: 185.5 kB / 0.5092 GB, free: 40.81 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001191/0.5788, allocations: 214.2 kB / 0.5094 GB, free: 40.76 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001817/0.5806, allocations: 0.8337 MB / 0.5103 GB, free: 40.35 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004616/0.5811, allocations: 0.8447 MB / 0.5111 GB, free: 39.64 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00076/0.5818, allocations: 164.6 kB / 0.5112 GB, free: 39.62 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001336/0.582, allocations: 40.05 kB / 0.5113 GB, free: 39.62 MB / 382.1 MB Notification: Performance of SimCode: time 7.61e-07/0.582, allocations: 0 / 0.5113 GB, free: 39.62 MB / 382.1 MB Notification: Performance of Templates: time 0.03217/0.6142, allocations: 12.15 MB / 0.5231 GB, free: 35.77 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Pipes/StaticPipe/StaticPipe.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches