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.0007752/0.0007749, allocations: 94.94 kB / 18 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009497/0.0009497, allocations: 203.2 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 227.7 MB / 247.5 MB, free: 11.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2143/0.2143, allocations: 46.19 MB / 345.9 MB, free: 11.4 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002834/0.0002835, allocations: 8 kB / 420.2 MB, free: 19.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1163, allocations: 63.55 MB / 483.7 MB, free: 4.176 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe): time 0.01337/0.1297, allocations: 12.46 MB / 496.2 MB, free: 7.66 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007783/0.1375, allocations: 5.649 MB / 0.4901 GB, free: 2 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005429/0.138, allocations: 23.75 kB / 0.4901 GB, free: 1.977 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006448/0.1387, allocations: 171 kB / 0.4903 GB, free: 1.809 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001799/0.1405, allocations: 0.6534 MB / 0.4909 GB, free: 1.152 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00344/0.144, allocations: 1.296 MB / 0.4922 GB, free: 15.87 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001922/0.1459, allocations: 1.723 MB / 0.4938 GB, free: 14.14 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006261/0.1466, allocations: 281.5 kB / 0.4941 GB, free: 13.86 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00101/0.1476, allocations: 438.3 kB / 0.4945 GB, free: 13.43 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008426/0.1484, allocations: 458.3 kB / 0.495 GB, free: 12.98 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001169/0.1486, allocations: 23.94 kB / 0.495 GB, free: 12.96 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001947/0.1505, allocations: 1.065 MB / 0.496 GB, free: 11.89 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000241/0.1508, allocations: 147.5 kB / 0.4962 GB, free: 11.75 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004492/0.1512, allocations: 272.4 kB / 0.4964 GB, free: 11.48 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001371/0.1526, allocations: 0.9199 MB / 0.4973 GB, free: 10.55 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.1526, allocations: 4 kB / 0.4973 GB, free: 10.55 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.455e-06/0.1526, allocations: 4 kB / 0.4973 GB, free: 10.55 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.865e-05/0.1527, allocations: 0 / 0.4973 GB, free: 10.55 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.001761/0.1544, allocations: 0.8531 MB / 0.4982 GB, free: 9.641 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.1545, allocations: 12.03 kB / 0.4982 GB, free: 9.629 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002954/0.1548, allocations: 60.28 kB / 0.4982 GB, free: 9.57 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000676/0.1555, allocations: 437.6 kB / 0.4987 GB, free: 9.105 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.419e-05/0.1555, allocations: 24.55 kB / 0.4987 GB, free: 9.082 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.8e-05/0.1556, allocations: 31.94 kB / 0.4987 GB, free: 9.051 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008641/0.1565, allocations: 0.5185 MB / 0.4992 GB, free: 8.496 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.319e-05/0.1565, allocations: 0 / 0.4992 GB, free: 8.496 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.126e-05/0.1565, allocations: 15.98 kB / 0.4992 GB, free: 8.48 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.873e-05/0.1566, allocations: 36.55 kB / 0.4993 GB, free: 8.445 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007345/0.1573, allocations: 461.9 kB / 0.4997 GB, free: 7.992 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00326/0.1606, allocations: 2.261 MB / 0.5019 GB, free: 5.59 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004101/0.161, allocations: 246.6 kB / 0.5021 GB, free: 5.34 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002091/0.1613, allocations: 136.8 kB / 0.5023 GB, free: 5.203 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001115/0.1624, allocations: 1.01 MB / 0.5033 GB, free: 4.074 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003081/0.1627, allocations: 228.3 kB / 0.5035 GB, free: 3.82 MB / 382.1 MB Notification: Performance of pre-optimization done (n=18): time 1.503e-06/0.1627, allocations: 0 / 0.5035 GB, free: 3.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.0006699/0.1634, allocations: 374.6 kB / 0.5038 GB, free: 3.441 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001076/0.1635, allocations: 243.3 kB / 0.5041 GB, free: 3.148 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005978/0.1641, allocations: 0.5175 MB / 0.5046 GB, free: 2.621 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.07e-05/0.1642, allocations: 25.7 kB / 0.5046 GB, free: 2.59 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002146/0.1644, allocations: 299.1 kB / 0.5049 GB, free: 2.293 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.95e-05/0.1644, allocations: 55.2 kB / 0.5049 GB, free: 2.238 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.269e-05/0.1645, allocations: 49.56 kB / 0.505 GB, free: 2.184 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.1647, allocations: 354.8 kB / 0.5053 GB, free: 1.828 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002202/0.1649, allocations: 136.3 kB / 0.5055 GB, free: 1.695 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003315/0.1652, allocations: 309.9 kB / 0.5058 GB, free: 1.312 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005273/0.1658, allocations: 463.7 kB / 0.5062 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/0.1658, allocations: 4 kB / 0.5062 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008954/0.1667, allocations: 0.5273 MB / 0.5067 GB, free: 252 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.2445/0.4112, allocations: 249.1 kB / 0.507 GB, free: 41.51 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.457e-05/0.4113, allocations: 4.5 kB / 0.507 GB, free: 41.51 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.75e-05/0.4114, allocations: 7.531 kB / 0.507 GB, free: 41.51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004975/0.4119, allocations: 74.94 kB / 0.507 GB, free: 41.51 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.421e-05/0.4119, allocations: 14.08 kB / 0.507 GB, free: 41.51 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006658/0.4126, allocations: 59.64 kB / 0.5071 GB, free: 41.51 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001091/0.4127, allocations: 21.58 kB / 0.5071 GB, free: 41.51 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/0.4127, allocations: 5.062 kB / 0.5071 GB, free: 41.51 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001076/0.4138, allocations: 480.5 kB / 0.5076 GB, free: 41.47 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.387e-05/0.4138, allocations: 12.16 kB / 0.5076 GB, free: 41.47 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.341e-05/0.4138, allocations: 7.969 kB / 0.5076 GB, free: 41.47 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002976/0.4141, allocations: 79.02 kB / 0.5077 GB, free: 41.46 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.564e-05/0.4142, allocations: 7.688 kB / 0.5077 GB, free: 41.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004467/0.4146, allocations: 50.94 kB / 0.5077 GB, free: 41.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.721e-05/0.4147, allocations: 20.86 kB / 0.5078 GB, free: 41.46 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.0003622/0.4151, allocations: 300.7 kB / 0.508 GB, free: 41.23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001326/0.4152, allocations: 53.08 kB / 0.5081 GB, free: 41.23 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006906/0.4159, allocations: 357.1 kB / 0.5084 GB, free: 41.16 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.4159, allocations: 2.219 kB / 0.5084 GB, free: 41.16 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.4159, allocations: 3.938 kB / 0.5084 GB, free: 41.15 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.221e-06/0.4159, allocations: 1.969 kB / 0.5084 GB, free: 41.15 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005712/0.4165, allocations: 412.3 kB / 0.5088 GB, free: 40.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.4165, allocations: 0 / 0.5088 GB, free: 40.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001252/0.4167, allocations: 34.39 kB / 0.5089 GB, free: 40.96 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.4167, allocations: 3.531 kB / 0.5089 GB, free: 40.96 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.267e-05/0.4167, allocations: 5.359 kB / 0.5089 GB, free: 40.96 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.958e-06/0.4167, allocations: 10.77 kB / 0.5089 GB, free: 40.95 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.4167, allocations: 5.094 kB / 0.5089 GB, free: 40.95 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005887/0.4173, allocations: 369.3 kB / 0.5092 GB, free: 40.85 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001631/0.4175, allocations: 130.1 kB / 0.5094 GB, free: 40.73 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001009/0.4176, allocations: 11.03 kB / 0.5094 GB, free: 40.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002738/0.4179, allocations: 15.2 kB / 0.5094 GB, free: 40.73 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.831e-05/0.418, allocations: 11.53 kB / 0.5094 GB, free: 40.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.085e-05/0.418, allocations: 12.91 kB / 0.5094 GB, free: 40.73 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006249/0.4186, allocations: 372.4 kB / 0.5098 GB, free: 40.64 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4186, allocations: 0 / 0.5098 GB, free: 40.64 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001458/0.4201, allocations: 428.6 kB / 0.5102 GB, free: 40.63 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.001382/0.4215, allocations: 415.4 kB / 0.5106 GB, free: 40.52 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001247/0.4227, allocations: 0.6746 MB / 0.5112 GB, free: 40.37 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.838e-06/0.4228, allocations: 0.6875 kB / 0.5112 GB, free: 40.37 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000266/0.423, allocations: 189.1 kB / 0.5114 GB, free: 40.3 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001173/0.4242, allocations: 198.9 kB / 0.5116 GB, free: 40.3 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00187/0.4261, allocations: 1.051 MB / 0.5126 GB, free: 39.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004634/0.4266, allocations: 0.842 MB / 0.5135 GB, free: 39.04 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00018/0.4268, allocations: 46.61 kB / 0.5135 GB, free: 39.03 MB / 382.1 MB Notification: Performance of SimCode: time 2.6e-07/0.4268, allocations: 3.406 kB / 0.5135 GB, free: 39.03 MB / 382.1 MB Notification: Performance of Templates: time 0.02231/0.4491, allocations: 10.11 MB / 0.5234 GB, free: 36.06 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