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.0009354/0.0009354, allocations: 100.1 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009885/0.0009885, allocations: 200.4 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.429/1.429, allocations: 227.2 MB / 245.9 MB, free: 10.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2247/0.2247, allocations: 45.92 MB / 344 MB, free: 12.15 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003026/0.0003029, allocations: 8 kB / 417.9 MB, free: 20.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1602/0.1605, allocations: 63.47 MB / 481.4 MB, free: 5.426 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe): time 0.01257/0.1731, allocations: 10.79 MB / 492.2 MB, free: 10.59 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00777/0.181, allocations: 4.816 MB / 497 MB, free: 5.77 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008873/0.1819, allocations: 19.81 kB / 497 MB, free: 5.75 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008199/0.1828, allocations: 167.2 kB / 497.2 MB, free: 5.586 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001956/0.1847, allocations: 0.5764 MB / 497.8 MB, free: 5.008 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003787/0.1885, allocations: 1.198 MB / 499 MB, free: 3.82 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001277/0.1898, allocations: 0.6792 MB / 499.6 MB, free: 3.137 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004432/0.1903, allocations: 261.5 kB / 499.9 MB, free: 2.879 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007059/0.191, allocations: 426.7 kB / 0.4886 GB, free: 2.461 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004663/0.1915, allocations: 302.9 kB / 0.4889 GB, free: 2.164 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.517e-05/0.1915, allocations: 23.94 kB / 0.4889 GB, free: 2.141 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002182/0.1937, allocations: 0.9713 MB / 0.4898 GB, free: 1.168 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000199/0.1939, allocations: 139.6 kB / 0.49 GB, free: 1.031 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001567/0.1941, allocations: 121.5 kB / 0.4901 GB, free: 0.9062 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001532/0.1956, allocations: 0.924 MB / 0.491 GB, free: 15.98 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.1957, allocations: 0 / 0.491 GB, free: 15.98 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.1957, allocations: 0 / 0.491 GB, free: 15.98 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.476e-06/0.1957, allocations: 0 / 0.491 GB, free: 15.98 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.00246/0.1982, allocations: 0.8547 MB / 0.4918 GB, free: 15.07 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.094e-05/0.1983, allocations: 8.031 kB / 0.4918 GB, free: 15.06 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004075/0.1987, allocations: 67.3 kB / 0.4919 GB, free: 15 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00103/0.1997, allocations: 425.5 kB / 0.4923 GB, free: 14.54 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.458e-05/0.1998, allocations: 24.55 kB / 0.4923 GB, free: 14.52 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.099e-05/0.1999, allocations: 28 kB / 0.4924 GB, free: 14.49 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001302/0.2012, allocations: 0.5185 MB / 0.4929 GB, free: 13.93 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.858e-05/0.2012, allocations: 0 / 0.4929 GB, free: 13.93 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.177e-05/0.2013, allocations: 19.98 kB / 0.4929 GB, free: 13.91 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.748e-05/0.2014, allocations: 32.53 kB / 0.4929 GB, free: 13.88 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001111/0.2025, allocations: 461.9 kB / 0.4933 GB, free: 13.43 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004803/0.2074, allocations: 2.292 MB / 0.4956 GB, free: 11 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005791/0.208, allocations: 230.7 kB / 0.4958 GB, free: 10.76 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001895/0.2099, allocations: 1.033 MB / 0.4968 GB, free: 9.609 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005028/0.2104, allocations: 216.4 kB / 0.497 GB, free: 9.367 MB / 382.1 MB Notification: Performance of pre-optimization done (n=18): time 2.885e-06/0.2104, allocations: 0 / 0.497 GB, free: 9.367 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.001287/0.2117, allocations: 461.8 kB / 0.4975 GB, free: 8.887 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002725/0.212, allocations: 239.3 kB / 0.4977 GB, free: 8.598 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001056/0.2131, allocations: 0.5213 MB / 0.4982 GB, free: 8.066 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.322e-05/0.2131, allocations: 29.7 kB / 0.4982 GB, free: 8.031 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003647/0.2135, allocations: 287.1 kB / 0.4985 GB, free: 7.746 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.075e-05/0.2136, allocations: 67.11 kB / 0.4986 GB, free: 7.68 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.434e-05/0.2137, allocations: 12 kB / 0.4986 GB, free: 7.668 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002741/0.214, allocations: 358.8 kB / 0.4989 GB, free: 7.309 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003158/0.2143, allocations: 120.4 kB / 0.499 GB, free: 7.191 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000543/0.2148, allocations: 308.8 kB / 0.4993 GB, free: 6.809 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004363/0.2153, allocations: 202.5 kB / 0.4995 GB, free: 6.605 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/0.2153, allocations: 0 / 0.4995 GB, free: 6.605 MB / 382.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001184/0.2165, allocations: 0.5237 MB / 0.5 GB, free: 6.07 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001066/0.2176, allocations: 1.772 MB / 0.5018 GB, free: 4.156 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.394e-05/0.2176, allocations: 7.938 kB / 0.5018 GB, free: 4.148 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.117e-05/0.2176, allocations: 12 kB / 0.5018 GB, free: 4.137 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004708/0.2181, allocations: 83.83 kB / 0.5019 GB, free: 4.055 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.921e-05/0.2182, allocations: 7.984 kB / 0.5019 GB, free: 4.047 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006355/0.2188, allocations: 63.38 kB / 0.5019 GB, free: 3.984 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.764e-05/0.2189, allocations: 20 kB / 0.502 GB, free: 3.965 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.112e-05/0.2189, allocations: 4 kB / 0.502 GB, free: 3.961 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001082/0.22, allocations: 477.1 kB / 0.5024 GB, free: 3.488 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.738e-06/0.22, allocations: 4 kB / 0.5024 GB, free: 3.484 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.163e-05/0.22, allocations: 11.94 kB / 0.5024 GB, free: 3.473 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004073/0.2204, allocations: 75.89 kB / 0.5025 GB, free: 3.398 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.401e-05/0.2205, allocations: 12.53 kB / 0.5025 GB, free: 3.387 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000479/0.221, allocations: 51.58 kB / 0.5026 GB, free: 3.336 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.187e-05/0.221, allocations: 24 kB / 0.5026 GB, free: 3.312 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.0004524/0.2215, allocations: 298.7 kB / 0.5029 GB, free: 3.004 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001168/0.2216, allocations: 51.39 kB / 0.5029 GB, free: 2.953 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009342/0.2226, allocations: 372.5 kB / 0.5033 GB, free: 2.57 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.66e-06/0.2226, allocations: 0 / 0.5033 GB, free: 2.57 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.043e-05/0.2226, allocations: 4.062 kB / 0.5033 GB, free: 2.566 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.361e-06/0.2226, allocations: 0 / 0.5033 GB, free: 2.566 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006628/0.2233, allocations: 413.2 kB / 0.5037 GB, free: 2.113 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.2233, allocations: 7.891 kB / 0.5037 GB, free: 2.105 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001587/0.2235, allocations: 20 kB / 0.5037 GB, free: 2.086 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.416e-06/0.2235, allocations: 3.984 kB / 0.5037 GB, free: 2.082 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.879e-05/0.2235, allocations: 8 kB / 0.5037 GB, free: 2.074 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/0.2235, allocations: 4 kB / 0.5037 GB, free: 2.07 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.2236, allocations: 4 kB / 0.5037 GB, free: 2.066 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007026/0.2243, allocations: 354.1 kB / 0.5041 GB, free: 1.695 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001854/0.2245, allocations: 144.4 kB / 0.5042 GB, free: 1.535 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001054/0.2246, allocations: 4 kB / 0.5042 GB, free: 1.531 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003341/0.2249, allocations: 15.98 kB / 0.5042 GB, free: 1.516 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.942e-05/0.225, allocations: 11.98 kB / 0.5042 GB, free: 1.504 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.824e-05/0.2251, allocations: 12 kB / 0.5042 GB, free: 1.492 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006206/0.2257, allocations: 370.8 kB / 0.5046 GB, free: 1.133 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.2257, allocations: 3.938 kB / 0.5046 GB, free: 1.129 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001842/0.2276, allocations: 427.6 kB / 0.505 GB, free: 0.7109 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.001353/0.2289, allocations: 409.3 kB / 0.5054 GB, free: 316 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.2885/0.5174, allocations: 0.6619 MB / 0.506 GB, free: 42.12 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.305e-06/0.5175, allocations: 5.109 kB / 0.506 GB, free: 42.12 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00026/0.5177, allocations: 182.8 kB / 0.5062 GB, free: 42.06 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001196/0.5189, allocations: 185.8 kB / 0.5064 GB, free: 42.05 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001522/0.5205, allocations: 0.953 MB / 0.5073 GB, free: 41.62 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004757/0.521, allocations: 0.8548 MB / 0.5082 GB, free: 40.92 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007904/0.5218, allocations: 171.3 kB / 0.5083 GB, free: 40.91 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001445/0.5219, allocations: 48.06 kB / 0.5084 GB, free: 40.91 MB / 382.1 MB Notification: Performance of SimCode: time 3.066e-06/0.5219, allocations: 1.625 kB / 0.5084 GB, free: 40.91 MB / 382.1 MB Notification: Performance of Templates: time 0.0252/0.5471, allocations: 11.4 MB / 0.5195 GB, free: 37.81 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","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches