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.001129/0.001129, allocations: 121.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001276/0.001276, allocations: 203.8 kB / 18.74 MB, free: 4.34 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.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2445/0.2445, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001422/0.001422, allocations: 71.89 kB / 481.3 MB, free: 4.059 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4558/0.4572, allocations: 62.44 MB / 0.531 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe): time 0.016/0.4733, allocations: 12.68 MB / 0.5434 GB, free: 3.395 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00961/0.4829, allocations: 5.489 MB / 0.5487 GB, free: 14.98 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007584/0.4838, allocations: 18.31 kB / 0.5487 GB, free: 14.97 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007903/0.4846, allocations: 215.2 kB / 0.549 GB, free: 14.79 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002436/0.4871, allocations: 0.6938 MB / 0.5496 GB, free: 14.26 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005208/0.4923, allocations: 1.559 MB / 0.5512 GB, free: 13.01 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002296/0.4946, allocations: 1.243 MB / 0.5524 GB, free: 11.77 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005703/0.4952, allocations: 325.2 kB / 0.5527 GB, free: 11.44 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009043/0.4961, allocations: 0.5022 MB / 0.5532 GB, free: 10.94 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000722/0.4968, allocations: 470.3 kB / 0.5536 GB, free: 10.48 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.712e-05/0.4969, allocations: 47.94 kB / 0.5537 GB, free: 10.43 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002814/0.4997, allocations: 1.072 MB / 0.5547 GB, free: 9.355 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002159/0.5, allocations: 167.6 kB / 0.5549 GB, free: 9.191 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003207/0.5003, allocations: 270.7 kB / 0.5551 GB, free: 8.926 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002395/0.5027, allocations: 1.327 MB / 0.5564 GB, free: 7.598 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.5027, allocations: 4 kB / 0.5564 GB, free: 7.594 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.836e-06/0.5027, allocations: 0 / 0.5564 GB, free: 7.594 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.598e-05/0.5027, allocations: 0 / 0.5564 GB, free: 7.594 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.002055/0.5048, allocations: 0.9521 MB / 0.5574 GB, free: 6.582 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.536e-05/0.5049, allocations: 8.031 kB / 0.5574 GB, free: 6.574 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002736/0.5051, allocations: 60.36 kB / 0.5574 GB, free: 6.516 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007837/0.5059, allocations: 477.4 kB / 0.5579 GB, free: 6.012 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.539e-05/0.506, allocations: 20.56 kB / 0.5579 GB, free: 5.992 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.197e-05/0.5061, allocations: 28 kB / 0.5579 GB, free: 5.965 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008959/0.507, allocations: 0.5224 MB / 0.5584 GB, free: 5.406 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.328e-05/0.507, allocations: 7.938 kB / 0.5584 GB, free: 5.398 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.89e-05/0.507, allocations: 12 kB / 0.5585 GB, free: 5.387 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.035e-05/0.5071, allocations: 24.55 kB / 0.5585 GB, free: 5.363 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007051/0.5078, allocations: 469.9 kB / 0.5589 GB, free: 4.906 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003355/0.5112, allocations: 2.242 MB / 0.5611 GB, free: 2.516 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004316/0.5116, allocations: 242.6 kB / 0.5613 GB, free: 2.27 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002174/0.5119, allocations: 136.8 kB / 0.5615 GB, free: 2.133 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001223/0.5131, allocations: 1.025 MB / 0.5625 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003346/0.5134, allocations: 214.6 kB / 0.5627 GB, free: 0.75 MB / 414.1 MB Notification: Performance of pre-optimization done (n=18): time 1.893e-06/0.5135, allocations: 0 / 0.5627 GB, free: 0.75 MB / 414.1 MB Notification: Performance of matching and sorting (n=18): time 0.0006777/0.5141, allocations: 382.5 kB / 0.563 GB, free: 372 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001321/0.5143, allocations: 239.3 kB / 0.5633 GB, free: 76 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006405/0.5149, allocations: 0.5175 MB / 0.5638 GB, free: 15.55 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.202e-05/0.515, allocations: 29.7 kB / 0.5638 GB, free: 15.51 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002318/0.5152, allocations: 287.1 kB / 0.5641 GB, free: 15.23 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.976e-05/0.5153, allocations: 59.27 kB / 0.5641 GB, free: 15.17 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000166/0.5155, allocations: 101.6 kB / 0.5642 GB, free: 15.06 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001742/0.5156, allocations: 358.8 kB / 0.5646 GB, free: 14.7 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000223/0.5159, allocations: 133.2 kB / 0.5647 GB, free: 14.57 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003395/0.5162, allocations: 314.1 kB / 0.565 GB, free: 14.18 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005469/0.5168, allocations: 469 kB / 0.5655 GB, free: 13.65 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.5168, allocations: 0 / 0.5655 GB, free: 13.65 MB / 430.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007862/0.5176, allocations: 0.5343 MB / 0.566 GB, free: 13.11 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.488e-05/0.5176, allocations: 49.62 kB / 0.566 GB, free: 13.05 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.561e-05/0.5177, allocations: 7.938 kB / 0.566 GB, free: 13.04 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.523e-05/0.5177, allocations: 4 kB / 0.566 GB, free: 13.04 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003078/0.518, allocations: 79.84 kB / 0.5661 GB, free: 12.96 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.38e-05/0.518, allocations: 8 kB / 0.5661 GB, free: 12.95 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003599/0.5184, allocations: 59.36 kB / 0.5662 GB, free: 12.89 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.22e-05/0.5184, allocations: 20 kB / 0.5662 GB, free: 12.88 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003839/0.5188, allocations: 276.7 kB / 0.5665 GB, free: 12.6 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000345/0.5192, allocations: 314 kB / 0.5668 GB, free: 12.21 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005227/0.5197, allocations: 446.5 kB / 0.5672 GB, free: 11.7 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.272e-06/0.5197, allocations: 8 kB / 0.5672 GB, free: 11.7 MB / 430.1 MB Notification: Performance of matching and sorting (n=49) (initialization_lambda0): time 0.0007679/0.5205, allocations: 0.525 MB / 0.5677 GB, free: 11.16 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.693e-05/0.5206, allocations: 41.69 kB / 0.5677 GB, free: 11.11 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.5206, allocations: 8.031 kB / 0.5677 GB, free: 11.11 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.875e-06/0.5206, allocations: 8 kB / 0.5678 GB, free: 11.1 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002559/0.5209, allocations: 71.91 kB / 0.5678 GB, free: 11.03 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.245e-05/0.5209, allocations: 15.92 kB / 0.5678 GB, free: 11.01 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003704/0.5213, allocations: 39.73 kB / 0.5679 GB, free: 10.97 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.811e-05/0.5213, allocations: 20.17 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.0002053/0.5215, allocations: 245.8 kB / 0.5681 GB, free: 10.7 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.402e-05/0.5216, allocations: 59.38 kB / 0.5682 GB, free: 10.64 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006426/0.5222, allocations: 362.8 kB / 0.5685 GB, free: 10.27 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.456e-06/0.5223, allocations: 7.938 kB / 0.5685 GB, free: 10.27 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.5223, allocations: 0 / 0.5685 GB, free: 10.27 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.5223, allocations: 0 / 0.5685 GB, free: 10.27 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005136/0.5228, allocations: 413.2 kB / 0.5689 GB, free: 9.812 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.5228, allocations: 3.984 kB / 0.5689 GB, free: 9.809 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001078/0.5229, allocations: 20 kB / 0.569 GB, free: 9.789 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.5229, allocations: 0 / 0.569 GB, free: 9.789 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.675e-05/0.523, allocations: 15.98 kB / 0.569 GB, free: 9.773 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.523, allocations: 7.875 kB / 0.569 GB, free: 9.766 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.523, allocations: 0 / 0.569 GB, free: 9.766 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005024/0.5235, allocations: 362.1 kB / 0.5693 GB, free: 9.387 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001186/0.5236, allocations: 128.4 kB / 0.5694 GB, free: 9.242 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.035e-05/0.5237, allocations: 11.94 kB / 0.5695 GB, free: 9.23 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002025/0.5239, allocations: 8 kB / 0.5695 GB, free: 9.223 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.992e-05/0.524, allocations: 15.98 kB / 0.5695 GB, free: 9.207 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.457e-05/0.524, allocations: 11.98 kB / 0.5695 GB, free: 9.195 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004038/0.5244, allocations: 370.8 kB / 0.5698 GB, free: 8.836 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5244, allocations: 0 / 0.5698 GB, free: 8.836 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00126/0.5257, allocations: 435.6 kB / 0.5703 GB, free: 8.41 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.00106/0.5268, allocations: 421.2 kB / 0.5707 GB, free: 7.992 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.000977/0.5278, allocations: 0.6681 MB / 0.5713 GB, free: 7.301 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.5278, allocations: 0 / 0.5713 GB, free: 7.301 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002027/0.528, allocations: 187.3 kB / 0.5715 GB, free: 7.105 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009343/0.5289, allocations: 211.7 kB / 0.5717 GB, free: 6.91 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00147/0.5304, allocations: 0.8244 MB / 0.5725 GB, free: 6.059 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004889/0.5309, allocations: 0.847 MB / 0.5733 GB, free: 5.184 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004458/0.5314, allocations: 168.2 kB / 0.5735 GB, free: 5.016 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001014/0.5315, allocations: 39.44 kB / 0.5735 GB, free: 4.977 MB / 430.1 MB Notification: Performance of SimCode: time 2.4e-07/0.5315, allocations: 0 / 0.5735 GB, free: 4.977 MB / 430.1 MB Notification: Performance of Templates: time 0.02093/0.5524, allocations: 12.38 MB / 0.5856 GB, free: 8.668 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