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.001154/0.001154, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001354/0.001354, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.394/1.394, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2477/0.2477, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0022/0.0022, allocations: 68.17 kB / 481.3 MB, free: 4.062 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4758/0.478, allocations: 62.44 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe): time 0.01719/0.4952, allocations: 12.68 MB / 0.5434 GB, free: 3.402 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01001/0.5053, allocations: 5.497 MB / 0.5487 GB, free: 14.98 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008625/0.5062, allocations: 13.69 kB / 0.5488 GB, free: 14.97 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009291/0.5072, allocations: 212.3 kB / 0.549 GB, free: 14.79 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00276/0.51, allocations: 0.6899 MB / 0.5496 GB, free: 14.27 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005731/0.5157, allocations: 1.558 MB / 0.5512 GB, free: 13.05 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002264/0.518, allocations: 1.239 MB / 0.5524 GB, free: 11.81 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005462/0.5185, allocations: 317.2 kB / 0.5527 GB, free: 11.5 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008871/0.5194, allocations: 0.5022 MB / 0.5532 GB, free: 10.99 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007137/0.5202, allocations: 462.3 kB / 0.5536 GB, free: 10.54 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 8.587e-05/0.5203, allocations: 44 kB / 0.5536 GB, free: 10.5 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002589/0.5229, allocations: 1.088 MB / 0.5547 GB, free: 9.406 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002147/0.5231, allocations: 159.5 kB / 0.5549 GB, free: 9.25 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003156/0.5234, allocations: 278.7 kB / 0.5551 GB, free: 8.977 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002118/0.5256, allocations: 1.328 MB / 0.5564 GB, free: 7.645 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.5256, allocations: 3.938 kB / 0.5564 GB, free: 7.641 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.5256, allocations: 0 / 0.5564 GB, free: 7.641 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.126e-05/0.5256, allocations: 0 / 0.5564 GB, free: 7.641 MB / 414.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.00204/0.5277, allocations: 0.9699 MB / 0.5574 GB, free: 6.609 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.869e-05/0.5277, allocations: 12.03 kB / 0.5574 GB, free: 6.598 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002643/0.528, allocations: 60.61 kB / 0.5574 GB, free: 6.539 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000742/0.5287, allocations: 477.8 kB / 0.5579 GB, free: 6.035 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.649e-05/0.5288, allocations: 20.56 kB / 0.5579 GB, free: 6.016 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.856e-05/0.5288, allocations: 31.98 kB / 0.5579 GB, free: 5.984 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008445/0.5297, allocations: 0.5224 MB / 0.5585 GB, free: 5.426 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.593e-05/0.5297, allocations: 4 kB / 0.5585 GB, free: 5.422 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.74e-05/0.5298, allocations: 12 kB / 0.5585 GB, free: 5.41 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.058e-05/0.5298, allocations: 28.55 kB / 0.5585 GB, free: 5.383 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007329/0.5306, allocations: 461.9 kB / 0.5589 GB, free: 4.934 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00336/0.534, allocations: 2.258 MB / 0.5611 GB, free: 2.527 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004288/0.5344, allocations: 238.6 kB / 0.5614 GB, free: 2.285 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002166/0.5346, allocations: 135.8 kB / 0.5615 GB, free: 2.152 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001116/0.5358, allocations: 1.029 MB / 0.5625 GB, free: 1.004 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003589/0.5361, allocations: 220.4 kB / 0.5627 GB, free: 0.7578 MB / 414.1 MB Notification: Performance of pre-optimization done (n=18): time 1.233e-06/0.5361, allocations: 0 / 0.5627 GB, free: 0.7578 MB / 414.1 MB Notification: Performance of matching and sorting (n=18): time 0.0007433/0.5369, allocations: 381.2 kB / 0.5631 GB, free: 384 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001716/0.5371, allocations: 243.3 kB / 0.5633 GB, free: 84 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006603/0.5377, allocations: 0.5176 MB / 0.5638 GB, free: 15.55 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.604e-05/0.5378, allocations: 25.7 kB / 0.5638 GB, free: 15.52 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002759/0.5381, allocations: 299.8 kB / 0.5641 GB, free: 15.23 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.509e-05/0.5381, allocations: 59.48 kB / 0.5642 GB, free: 15.17 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001741/0.5383, allocations: 97.62 kB / 0.5643 GB, free: 15.07 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002147/0.5385, allocations: 358.8 kB / 0.5646 GB, free: 14.71 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002448/0.5388, allocations: 137.2 kB / 0.5647 GB, free: 14.57 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003802/0.5392, allocations: 314.1 kB / 0.565 GB, free: 14.18 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005574/0.5398, allocations: 469 kB / 0.5655 GB, free: 13.65 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.5398, allocations: 0 / 0.5655 GB, free: 13.65 MB / 430.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008098/0.5406, allocations: 0.5343 MB / 0.566 GB, free: 13.11 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.239e-05/0.5407, allocations: 41.7 kB / 0.5661 GB, free: 13.06 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/0.5407, allocations: 7.938 kB / 0.5661 GB, free: 13.05 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.252e-05/0.5407, allocations: 11.94 kB / 0.5661 GB, free: 13.04 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000297/0.541, allocations: 79.83 kB / 0.5661 GB, free: 12.96 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.149e-05/0.541, allocations: 4.594 kB / 0.5662 GB, free: 12.96 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003626/0.5414, allocations: 67.55 kB / 0.5662 GB, free: 12.89 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.261e-05/0.5414, allocations: 20.06 kB / 0.5662 GB, free: 12.87 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003556/0.5418, allocations: 272.4 kB / 0.5665 GB, free: 12.6 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003435/0.5422, allocations: 318 kB / 0.5668 GB, free: 12.21 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005266/0.5427, allocations: 453 kB / 0.5672 GB, free: 11.69 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.034e-06/0.5427, allocations: 4 kB / 0.5672 GB, free: 11.69 MB / 430.1 MB Notification: Performance of matching and sorting (n=49) (initialization_lambda0): time 0.0007919/0.5435, allocations: 0.5312 MB / 0.5678 GB, free: 11.15 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.472e-05/0.5436, allocations: 37.69 kB / 0.5678 GB, free: 11.11 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/0.5436, allocations: 8 kB / 0.5678 GB, free: 11.1 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.811e-06/0.5436, allocations: 4 kB / 0.5678 GB, free: 11.09 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002607/0.5438, allocations: 75.91 kB / 0.5679 GB, free: 11.02 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.378e-06/0.5439, allocations: 11.94 kB / 0.5679 GB, free: 11.01 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003899/0.5443, allocations: 39.83 kB / 0.5679 GB, free: 10.97 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.238e-05/0.5443, allocations: 16 kB / 0.5679 GB, free: 10.95 MB / 430.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.0002141/0.5445, allocations: 246 kB / 0.5682 GB, free: 10.7 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.315e-05/0.5446, allocations: 59.61 kB / 0.5682 GB, free: 10.64 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006449/0.5453, allocations: 361.9 kB / 0.5686 GB, free: 10.28 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.301e-06/0.5453, allocations: 3.938 kB / 0.5686 GB, free: 10.27 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/0.5453, allocations: 3.984 kB / 0.5686 GB, free: 10.27 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.451e-06/0.5453, allocations: 0 / 0.5686 GB, free: 10.27 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000444/0.5458, allocations: 413.2 kB / 0.569 GB, free: 9.816 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.5458, allocations: 4 kB / 0.569 GB, free: 9.812 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001123/0.5459, allocations: 28.03 kB / 0.569 GB, free: 9.785 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.5459, allocations: 3.984 kB / 0.569 GB, free: 9.781 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.152e-05/0.5459, allocations: 4 kB / 0.569 GB, free: 9.777 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.786e-06/0.5459, allocations: 7.875 kB / 0.569 GB, free: 9.77 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.546, allocations: 7.938 kB / 0.569 GB, free: 9.762 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005078/0.5465, allocations: 370.2 kB / 0.5694 GB, free: 9.375 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001088/0.5466, allocations: 124.7 kB / 0.5695 GB, free: 9.234 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.83e-05/0.5467, allocations: 15.98 kB / 0.5695 GB, free: 9.219 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000219/0.5469, allocations: 7.938 kB / 0.5695 GB, free: 9.211 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.519e-05/0.547, allocations: 15.98 kB / 0.5695 GB, free: 9.195 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.779e-05/0.547, allocations: 4 kB / 0.5695 GB, free: 9.191 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004264/0.5474, allocations: 378.8 kB / 0.5699 GB, free: 8.824 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5474, allocations: 0 / 0.5699 GB, free: 8.824 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001276/0.5487, allocations: 434.9 kB / 0.5703 GB, free: 8.398 MB / 430.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.001096/0.5498, allocations: 430.7 kB / 0.5707 GB, free: 7.969 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001005/0.5508, allocations: 0.6644 MB / 0.5714 GB, free: 7.281 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.5508, allocations: 192 / 0.5714 GB, free: 7.281 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002216/0.5511, allocations: 191.3 kB / 0.5716 GB, free: 7.082 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000885/0.552, allocations: 210.3 kB / 0.5718 GB, free: 6.887 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001376/0.5534, allocations: 0.8353 MB / 0.5726 GB, free: 6.023 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004011/0.5538, allocations: 0.8393 MB / 0.5734 GB, free: 5.156 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004289/0.5542, allocations: 168.2 kB / 0.5736 GB, free: 4.988 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.356e-05/0.5543, allocations: 43.42 kB / 0.5736 GB, free: 4.945 MB / 430.1 MB Notification: Performance of SimCode: time 2.1e-07/0.5543, allocations: 0 / 0.5736 GB, free: 4.945 MB / 430.1 MB Notification: Performance of Templates: time 0.01977/0.5741, allocations: 12.22 MB / 0.5855 GB, free: 8.797 MB / 446.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