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.00118/0.00118, allocations: 117.6 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00124/0.001241, allocations: 199.9 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2367/0.2367, allocations: 46.12 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001366/0.001366, allocations: 75.88 kB / 481.3 MB, free: 4.086 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4998/0.5012, 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.01699/0.5182, allocations: 12.69 MB / 0.5434 GB, free: 3.387 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009466/0.5277, allocations: 5.488 MB / 0.5487 GB, free: 14.97 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008432/0.5286, allocations: 14.25 kB / 0.5487 GB, free: 14.96 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008508/0.5296, allocations: 211.6 kB / 0.5489 GB, free: 14.79 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002612/0.5322, allocations: 0.7079 MB / 0.5496 GB, free: 14.25 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005505/0.5377, allocations: 1.565 MB / 0.5512 GB, free: 13.02 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002108/0.5398, allocations: 1.231 MB / 0.5524 GB, free: 11.78 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00076/0.5406, allocations: 321.2 kB / 0.5527 GB, free: 11.46 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001431/0.542, allocations: 0.51 MB / 0.5532 GB, free: 10.95 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001093/0.5431, allocations: 470.3 kB / 0.5536 GB, free: 10.49 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001853/0.5433, allocations: 44 kB / 0.5537 GB, free: 10.45 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002932/0.5463, allocations: 1.073 MB / 0.5547 GB, free: 9.371 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00032/0.5466, allocations: 171.5 kB / 0.5549 GB, free: 9.203 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005617/0.5472, allocations: 270.7 kB / 0.5551 GB, free: 8.938 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003561/0.5507, allocations: 1.319 MB / 0.5564 GB, free: 7.617 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.5508, allocations: 3.938 kB / 0.5564 GB, free: 7.613 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.5508, allocations: 0 / 0.5564 GB, free: 7.613 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.864e-05/0.5508, allocations: 0 / 0.5564 GB, free: 7.613 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.002627/0.5534, allocations: 0.9637 MB / 0.5574 GB, free: 6.59 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.322e-05/0.5535, allocations: 8.031 kB / 0.5574 GB, free: 6.582 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003813/0.5539, allocations: 60.36 kB / 0.5574 GB, free: 6.523 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009844/0.5549, allocations: 469.4 kB / 0.5579 GB, free: 6.027 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.286e-05/0.555, allocations: 24.55 kB / 0.5579 GB, free: 6.004 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.093e-05/0.555, allocations: 31.94 kB / 0.5579 GB, free: 5.973 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009938/0.556, allocations: 0.5224 MB / 0.5584 GB, free: 5.414 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.829e-05/0.5561, allocations: 0 / 0.5584 GB, free: 5.414 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.492e-05/0.5561, allocations: 15.98 kB / 0.5585 GB, free: 5.398 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.035e-05/0.5562, allocations: 24.55 kB / 0.5585 GB, free: 5.375 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008319/0.557, allocations: 469.9 kB / 0.5589 GB, free: 4.918 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003708/0.5608, allocations: 2.254 MB / 0.5611 GB, free: 2.516 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004442/0.5612, allocations: 234.6 kB / 0.5614 GB, free: 2.277 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002182/0.5615, allocations: 136.8 kB / 0.5615 GB, free: 2.141 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001323/0.5628, allocations: 1.025 MB / 0.5625 GB, free: 0.9961 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003403/0.5631, allocations: 212.4 kB / 0.5627 GB, free: 0.7578 MB / 414.1 MB Notification: Performance of pre-optimization done (n=18): time 1.834e-06/0.5632, allocations: 0 / 0.5627 GB, free: 0.7578 MB / 414.1 MB Notification: Performance of matching and sorting (n=18): time 0.0007416/0.5639, allocations: 384.9 kB / 0.5631 GB, free: 380 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001396/0.5641, allocations: 239.3 kB / 0.5633 GB, free: 84 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006879/0.5648, allocations: 0.5175 MB / 0.5638 GB, free: 15.55 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.923e-05/0.5648, allocations: 33.7 kB / 0.5638 GB, free: 15.52 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002514/0.5651, allocations: 287.1 kB / 0.5641 GB, free: 15.23 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.681e-05/0.5652, allocations: 55.28 kB / 0.5641 GB, free: 15.18 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000223/0.5654, allocations: 105.5 kB / 0.5643 GB, free: 15.07 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002277/0.5656, allocations: 358.8 kB / 0.5646 GB, free: 14.71 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002845/0.5659, allocations: 137.2 kB / 0.5647 GB, free: 14.57 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004094/0.5663, allocations: 310.2 kB / 0.565 GB, free: 14.19 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006865/0.567, allocations: 469 kB / 0.5655 GB, free: 13.66 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.031e-06/0.567, allocations: 0 / 0.5655 GB, free: 13.66 MB / 430.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001011/0.5681, allocations: 0.5379 MB / 0.566 GB, free: 13.11 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.939e-05/0.5681, allocations: 37.69 kB / 0.566 GB, free: 13.06 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.691e-05/0.5682, allocations: 4 kB / 0.566 GB, free: 13.06 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.279e-05/0.5682, allocations: 12.53 kB / 0.566 GB, free: 13.05 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003403/0.5685, allocations: 79.84 kB / 0.5661 GB, free: 12.97 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.74e-05/0.5686, allocations: 8 kB / 0.5661 GB, free: 12.96 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004583/0.569, allocations: 59.36 kB / 0.5662 GB, free: 12.9 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.231e-05/0.5691, allocations: 23.94 kB / 0.5662 GB, free: 12.88 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004207/0.5695, allocations: 272.4 kB / 0.5665 GB, free: 12.61 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004087/0.57, allocations: 314 kB / 0.5668 GB, free: 12.22 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005699/0.5705, allocations: 458.5 kB / 0.5672 GB, free: 11.7 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.138e-06/0.5705, allocations: 0 / 0.5672 GB, free: 11.7 MB / 430.1 MB Notification: Performance of matching and sorting (n=49) (initialization_lambda0): time 0.0008679/0.5714, allocations: 0.5247 MB / 0.5677 GB, free: 11.16 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.847e-05/0.5715, allocations: 45.69 kB / 0.5678 GB, free: 11.11 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.5715, allocations: 4 kB / 0.5678 GB, free: 11.11 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.454e-06/0.5715, allocations: 4 kB / 0.5678 GB, free: 11.11 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002658/0.5718, allocations: 71.91 kB / 0.5678 GB, free: 11.04 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.192e-05/0.5718, allocations: 15.92 kB / 0.5679 GB, free: 11.02 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004188/0.5722, allocations: 39.73 kB / 0.5679 GB, free: 10.98 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.235e-05/0.5723, allocations: 24.34 kB / 0.5679 GB, free: 10.96 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.0002216/0.5725, allocations: 249.8 kB / 0.5681 GB, free: 10.7 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.756e-05/0.5726, allocations: 55.38 kB / 0.5682 GB, free: 10.64 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006454/0.5733, allocations: 362.5 kB / 0.5685 GB, free: 10.28 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.233e-06/0.5733, allocations: 3.938 kB / 0.5686 GB, free: 10.28 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.5733, allocations: 0 / 0.5686 GB, free: 10.28 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.5733, allocations: 0 / 0.5686 GB, free: 10.28 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005162/0.5738, allocations: 417.2 kB / 0.569 GB, free: 9.82 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.5738, allocations: 0 / 0.569 GB, free: 9.82 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001139/0.574, allocations: 28.05 kB / 0.569 GB, free: 9.793 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.574, allocations: 0 / 0.569 GB, free: 9.793 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.269e-05/0.574, allocations: 12 kB / 0.569 GB, free: 9.781 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.496e-06/0.574, allocations: 7.922 kB / 0.569 GB, free: 9.773 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.574, allocations: 7.938 kB / 0.569 GB, free: 9.766 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005339/0.5746, allocations: 354.1 kB / 0.5693 GB, free: 9.395 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001347/0.5747, allocations: 132.4 kB / 0.5695 GB, free: 9.246 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.408e-05/0.5748, allocations: 8 kB / 0.5695 GB, free: 9.238 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002175/0.575, allocations: 8 kB / 0.5695 GB, free: 9.23 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.614e-05/0.5751, allocations: 11.98 kB / 0.5695 GB, free: 9.219 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.437e-05/0.5751, allocations: 11.98 kB / 0.5695 GB, free: 9.207 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004736/0.5756, allocations: 370.8 kB / 0.5699 GB, free: 8.848 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5756, allocations: 0 / 0.5699 GB, free: 8.848 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001287/0.5769, allocations: 435.6 kB / 0.5703 GB, free: 8.422 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.00151/0.5784, allocations: 426.5 kB / 0.5707 GB, free: 7.996 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001098/0.5795, allocations: 0.6645 MB / 0.5713 GB, free: 7.309 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.5796, allocations: 4.062 kB / 0.5713 GB, free: 7.305 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002294/0.5798, allocations: 187.3 kB / 0.5715 GB, free: 7.109 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009686/0.5808, allocations: 210.1 kB / 0.5717 GB, free: 6.918 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001627/0.5824, allocations: 0.8205 MB / 0.5725 GB, free: 6.07 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000486/0.5829, allocations: 0.847 MB / 0.5733 GB, free: 5.195 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005234/0.5834, allocations: 172.1 kB / 0.5735 GB, free: 5.023 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001131/0.5836, allocations: 39.44 kB / 0.5735 GB, free: 4.984 MB / 430.1 MB Notification: Performance of SimCode: time 6.72e-07/0.5836, allocations: 4 kB / 0.5735 GB, free: 4.98 MB / 430.1 MB Notification: Performance of Templates: time 0.02368/0.6073, allocations: 12.21 MB / 0.5855 GB, free: 8.828 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