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.0009345/0.0009348, allocations: 102 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001014/0.001014, allocations: 192.1 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.418/1.418, allocations: 227.7 MB / 246.4 MB, free: 9.801 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2468/0.2468, allocations: 46.18 MB / 344.8 MB, free: 11.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003047/0.0003052, allocations: 4 kB / 418.8 MB, free: 20.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1706/0.1709, allocations: 63.56 MB / 482.4 MB, free: 4.52 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe): time 0.01259/0.1836, allocations: 11.83 MB / 494.2 MB, free: 8.641 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007887/0.1915, allocations: 5.169 MB / 499.4 MB, free: 3.465 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008977/0.1925, allocations: 15.88 kB / 499.4 MB, free: 3.449 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007315/0.1932, allocations: 166.9 kB / 499.6 MB, free: 3.285 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:729:36-730:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:727:36-728:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:729:36-730:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:727:36-728:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.001897/0.1951, allocations: 0.6259 MB / 0.4885 GB, free: 2.656 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004067/0.1992, allocations: 1.194 MB / 0.4896 GB, free: 1.473 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001799/0.201, allocations: 1.434 MB / 0.4911 GB, free: 36 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004135/0.2014, allocations: 257.7 kB / 0.4913 GB, free: 15.78 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007432/0.2022, allocations: 470.3 kB / 0.4917 GB, free: 15.32 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006507/0.2028, allocations: 442.4 kB / 0.4922 GB, free: 14.89 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.956e-05/0.2029, allocations: 20 kB / 0.4922 GB, free: 14.87 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001994/0.2049, allocations: 0.9516 MB / 0.4931 GB, free: 13.91 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001932/0.2051, allocations: 143.5 kB / 0.4933 GB, free: 13.77 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001498/0.2053, allocations: 125.5 kB / 0.4934 GB, free: 13.64 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001275/0.2066, allocations: 0.9198 MB / 0.4943 GB, free: 12.72 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.816e-06/0.2066, allocations: 0 / 0.4943 GB, free: 12.72 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.296e-06/0.2066, allocations: 0 / 0.4943 GB, free: 12.72 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.034e-05/0.2066, allocations: 0 / 0.4943 GB, free: 12.72 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.001616/0.2082, allocations: 0.8508 MB / 0.4951 GB, free: 11.82 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/0.2083, allocations: 8.031 kB / 0.4951 GB, free: 11.81 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002352/0.2085, allocations: 75.28 kB / 0.4952 GB, free: 11.73 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006088/0.2091, allocations: 417.5 kB / 0.4956 GB, free: 11.29 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.332e-05/0.2092, allocations: 20.56 kB / 0.4956 GB, free: 11.27 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.952e-05/0.2093, allocations: 35.92 kB / 0.4956 GB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000828/0.2101, allocations: 0.5224 MB / 0.4961 GB, free: 10.67 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/0.2101, allocations: 0 / 0.4961 GB, free: 10.67 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.691e-05/0.2102, allocations: 15.98 kB / 0.4962 GB, free: 10.66 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.447e-05/0.2102, allocations: 32.55 kB / 0.4962 GB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006948/0.2109, allocations: 461.9 kB / 0.4966 GB, free: 10.17 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003176/0.2141, allocations: 2.265 MB / 0.4988 GB, free: 7.766 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003915/0.2145, allocations: 234.6 kB / 0.4991 GB, free: 7.527 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002015/0.2147, allocations: 136.8 kB / 0.4992 GB, free: 7.391 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0011/0.2158, allocations: 1.018 MB / 0.5002 GB, free: 6.254 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003341/0.2162, allocations: 216.4 kB / 0.5004 GB, free: 6.012 MB / 382.1 MB Notification: Performance of pre-optimization done (n=18): time 1.462e-06/0.2162, allocations: 0 / 0.5004 GB, free: 6.012 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.0006996/0.2169, allocations: 380.9 kB / 0.5008 GB, free: 5.629 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001553/0.2171, allocations: 243.3 kB / 0.501 GB, free: 5.336 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005796/0.2177, allocations: 0.5135 MB / 0.5015 GB, free: 4.812 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.305e-05/0.2177, allocations: 29.7 kB / 0.5015 GB, free: 4.777 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002358/0.2179, allocations: 291.1 kB / 0.5018 GB, free: 4.488 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.775e-05/0.218, allocations: 55.28 kB / 0.5019 GB, free: 4.434 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.027e-05/0.218, allocations: 8 kB / 0.5019 GB, free: 4.426 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001758/0.2182, allocations: 362.8 kB / 0.5022 GB, free: 4.062 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001985/0.2184, allocations: 124.4 kB / 0.5023 GB, free: 3.941 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003373/0.2188, allocations: 309.9 kB / 0.5026 GB, free: 3.559 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003019/0.2191, allocations: 208.4 kB / 0.5028 GB, free: 3.352 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.2191, allocations: 4 kB / 0.5028 GB, free: 3.348 MB / 382.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007665/0.2199, allocations: 0.5234 MB / 0.5033 GB, free: 2.812 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001879/0.2201, allocations: 260 kB / 0.5036 GB, free: 2.488 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.2201, allocations: 4.062 kB / 0.5036 GB, free: 2.484 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.078e-05/0.2201, allocations: 12 kB / 0.5036 GB, free: 2.473 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002967/0.2204, allocations: 71.91 kB / 0.5037 GB, free: 2.402 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.033e-05/0.2204, allocations: 15.92 kB / 0.5037 GB, free: 2.387 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003671/0.2208, allocations: 63.42 kB / 0.5037 GB, free: 2.324 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.744e-05/0.2209, allocations: 20 kB / 0.5038 GB, free: 2.305 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.013e-06/0.2209, allocations: 4 kB / 0.5038 GB, free: 2.301 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006848/0.2216, allocations: 478.4 kB / 0.5042 GB, free: 1.828 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.2216, allocations: 4 kB / 0.5042 GB, free: 1.824 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.04e-05/0.2216, allocations: 11.95 kB / 0.5042 GB, free: 1.812 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002603/0.2219, allocations: 79.84 kB / 0.5043 GB, free: 1.734 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.035e-05/0.2219, allocations: 11.98 kB / 0.5043 GB, free: 1.723 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002747/0.2222, allocations: 43.62 kB / 0.5044 GB, free: 1.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.48e-05/0.2222, allocations: 23.98 kB / 0.5044 GB, free: 1.656 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.0002863/0.2225, allocations: 305 kB / 0.5047 GB, free: 1.344 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.042e-05/0.2226, allocations: 51.34 kB / 0.5047 GB, free: 1.293 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005833/0.2232, allocations: 376.5 kB / 0.5051 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.2232, allocations: 3.984 kB / 0.5051 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.2232, allocations: 0 / 0.5051 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.2232, allocations: 0 / 0.5051 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004245/0.2236, allocations: 413.3 kB / 0.5055 GB, free: 464 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.2236, allocations: 0 / 0.5055 GB, free: 464 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001089/0.2238, allocations: 27.92 kB / 0.5055 GB, free: 436 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.305e-06/0.2238, allocations: 0 / 0.5055 GB, free: 436 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.144e-05/0.2238, allocations: 8 kB / 0.5055 GB, free: 428 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.2238, allocations: 3.953 kB / 0.5055 GB, free: 424 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.2238, allocations: 4 kB / 0.5055 GB, free: 420 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000452/0.2243, allocations: 358 kB / 0.5059 GB, free: 36 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.3535/0.5778, allocations: 131.1 kB / 0.506 GB, free: 41.29 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001532/0.578, allocations: 7.188 kB / 0.506 GB, free: 41.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002847/0.5783, allocations: 17.47 kB / 0.506 GB, free: 41.29 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.459e-05/0.5784, allocations: 11.83 kB / 0.506 GB, free: 41.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.311e-05/0.5784, allocations: 9.266 kB / 0.506 GB, free: 41.29 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006287/0.579, allocations: 368.1 kB / 0.5064 GB, free: 41.2 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.579, allocations: 0 / 0.5064 GB, free: 41.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001599/0.5806, allocations: 430.7 kB / 0.5068 GB, free: 41.2 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.001058/0.5817, allocations: 414.1 kB / 0.5072 GB, free: 41.11 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001177/0.5829, allocations: 0.6679 MB / 0.5078 GB, free: 40.98 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.5829, allocations: 3.188 kB / 0.5078 GB, free: 40.98 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000243/0.5832, allocations: 185.8 kB / 0.508 GB, free: 40.91 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009619/0.5841, allocations: 197.8 kB / 0.5082 GB, free: 40.91 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001527/0.5857, allocations: 0.9587 MB / 0.5091 GB, free: 40.48 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003872/0.5861, allocations: 0.8425 MB / 0.51 GB, free: 39.78 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005852/0.5867, allocations: 165.2 kB / 0.5101 GB, free: 39.77 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001152/0.5868, allocations: 41.77 kB / 0.5102 GB, free: 39.76 MB / 382.1 MB Notification: Performance of SimCode: time 1.964e-06/0.5868, allocations: 0 / 0.5102 GB, free: 39.76 MB / 382.1 MB Notification: Performance of Templates: time 0.02733/0.6141, allocations: 11.43 MB / 0.5213 GB, free: 36.51 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