Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001149/0.001156, allocations: 109.2 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00132/0.00132, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.331/1.331, allocations: 227.4 MB / 246.9 MB, free: 9.016 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 60.53 kB / 306.9 MB, free: 0.8086 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09491/0.09624, allocations: 50.54 MB / 357.4 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.01384/0.1101, allocations: 14 MB / 371.4 MB, free: 212 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.175/0.2852, allocations: 4.356 MB / 375.8 MB, free: 8.824 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001965/0.2872, allocations: 58.47 kB / 375.9 MB, free: 8.812 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00179/0.2891, allocations: 0.7528 MB / 376.6 MB, free: 8.719 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003183/0.2923, allocations: 1.199 MB / 377.8 MB, free: 8.516 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001213/0.2935, allocations: 464.4 kB / 378.3 MB, free: 8.426 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004342/0.2978, allocations: 3.458 MB / 381.7 MB, free: 7.629 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001591/0.2995, allocations: 1.134 MB / 382.9 MB, free: 7.27 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009769/0.3004, allocations: 0.661 MB / 383.5 MB, free: 7.043 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001321/0.3018, allocations: 1.191 MB / 384.7 MB, free: 6.75 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002336/0.302, allocations: 93.25 kB / 384.8 MB, free: 6.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00157/0.3036, allocations: 0.8879 MB / 385.7 MB, free: 6.555 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007719/0.3044, allocations: 0.9656 MB / 386.6 MB, free: 6.148 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008631/0.3053, allocations: 1.154 MB / 387.8 MB, free: 5.277 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002631/0.3079, allocations: 2.978 MB / 390.8 MB, free: 3.445 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.3079, allocations: 0 / 390.8 MB, free: 3.445 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.3079, allocations: 5.375 kB / 390.8 MB, free: 3.441 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.163e-05/0.308, allocations: 0 / 390.8 MB, free: 3.441 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.005586/0.3136, allocations: 2.864 MB / 393.7 MB, free: 1.457 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.376e-05/0.3136, allocations: 9.281 kB / 393.7 MB, free: 1.457 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005586/0.3192, allocations: 1.638 MB / 395.3 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002778/0.322, allocations: 1.286 MB / 396.6 MB, free: 15.76 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.649e-05/0.3221, allocations: 128.7 kB / 396.7 MB, free: 15.72 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003473/0.3225, allocations: 156.7 kB / 396.9 MB, free: 15.69 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009147/0.3317, allocations: 6.359 MB / 403.2 MB, free: 10.45 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.413e-05/0.3318, allocations: 31.66 kB / 403.3 MB, free: 10.42 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00023/0.332, allocations: 85.36 kB / 403.3 MB, free: 10.36 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00243/0.3344, allocations: 1.443 MB / 404.8 MB, free: 8.93 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01011/0.3446, allocations: 5.662 MB / 410.4 MB, free: 3.258 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0324/0.377, allocations: 26.28 MB / 436.7 MB, free: 8.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004392/0.3814, allocations: 2.261 MB / 439 MB, free: 5.867 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001323/0.3828, allocations: 1.022 MB / 440 MB, free: 4.832 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.76e-05/0.3829, allocations: 18.52 kB / 440 MB, free: 4.816 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.991e-05/0.3829, allocations: 38.56 kB / 440.1 MB, free: 4.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=98): time 4.378e-06/0.3829, allocations: 0 / 440.1 MB, free: 4.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=106): time 0.02167/0.4046, allocations: 8.575 MB / 448.6 MB, free: 12.06 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.455e-05/0.4047, allocations: 148.5 kB / 448.8 MB, free: 11.88 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004769/0.4095, allocations: 2.818 MB / 451.6 MB, free: 9.047 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001828/0.4097, allocations: 41.7 kB / 451.6 MB, free: 9 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001568/0.4113, allocations: 2.065 MB / 453.7 MB, free: 6.941 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005853/0.4119, allocations: 438.8 kB / 454.1 MB, free: 6.516 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001502/0.4134, allocations: 0.8869 MB / 455 MB, free: 5.617 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001119/0.4135, allocations: 301.1 kB / 455.3 MB, free: 5.32 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002425/0.416, allocations: 1.422 MB / 456.7 MB, free: 3.891 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004295/0.4203, allocations: 4.242 MB / 461 MB, free: 14.22 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00693/0.4272, allocations: 6.133 MB / 467.1 MB, free: 6.672 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.317e-05/0.4273, allocations: 28 kB / 467.1 MB, free: 6.645 MB / 382.1 MB Notification: Performance of matching and sorting (n=573) (initialization): time 0.01186/0.4392, allocations: 6.104 MB / 473.2 MB, free: 0.5352 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.084e-05/0.4393, allocations: 48 kB / 473.3 MB, free: 500 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001425/0.4395, allocations: 100 kB / 473.4 MB, free: 400 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002278/0.4417, allocations: 0.7973 MB / 474.2 MB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0029/0.4447, allocations: 0.9902 MB / 475.2 MB, free: 14.6 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005567/0.4502, allocations: 4.155 MB / 479.3 MB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003067/0.4533, allocations: 243.6 kB / 479.6 MB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006391/0.454, allocations: 278.2 kB / 479.8 MB, free: 9.801 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 459 * Number of states: 0 () * Number of discrete variables: 18 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (537): * Single equations (assignments): 533 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002462/0.4565, allocations: 1.383 MB / 481.2 MB, free: 8.402 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004862/0.457, allocations: 229 kB / 481.4 MB, free: 8.176 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003821/0.4608, allocations: 1.853 MB / 483.3 MB, free: 6.305 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.15e-05/0.4608, allocations: 12 kB / 483.3 MB, free: 6.293 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.006e-05/0.4608, allocations: 11.94 kB / 483.3 MB, free: 6.281 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.202e-05/0.4609, allocations: 7.969 kB / 483.3 MB, free: 6.273 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009167/0.47, allocations: 4.802 MB / 488.1 MB, free: 1.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.125e-06/0.4701, allocations: 0 / 488.1 MB, free: 1.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006415/0.4707, allocations: 135.9 kB / 488.3 MB, free: 1.277 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001995/0.4727, allocations: 0.6482 MB / 488.9 MB, free: 0.625 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.429e-05/0.4728, allocations: 23.2 kB / 488.9 MB, free: 0.6055 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004871/0.4777, allocations: 3.7 MB / 492.6 MB, free: 12.78 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.4777, allocations: 3.984 kB / 492.6 MB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005864/0.4836, allocations: 3.684 MB / 496.3 MB, free: 9.059 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000733/0.4844, allocations: 297.9 kB / 496.6 MB, free: 8.746 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005223/0.4849, allocations: 18.25 kB / 496.6 MB, free: 8.73 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001079/0.486, allocations: 63.91 kB / 496.7 MB, free: 8.668 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001702/0.4862, allocations: 51.88 kB / 496.7 MB, free: 8.617 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.612e-05/0.4863, allocations: 31.98 kB / 496.8 MB, free: 8.586 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003326/0.4896, allocations: 1.746 MB / 498.5 MB, free: 6.832 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4896, allocations: 0 / 498.5 MB, free: 6.832 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003746/0.4934, allocations: 0.6426 MB / 499.2 MB, free: 6.191 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 71 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003844/0.4938, allocations: 148.2 kB / 499.3 MB, free: 6.043 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005447/0.4992, allocations: 3.405 MB / 0.4909 GB, free: 2.645 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.107e-06/0.4992, allocations: 0 / 0.4909 GB, free: 2.645 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001205/0.5005, allocations: 0.927 MB / 0.4918 GB, free: 1.707 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001805/0.5023, allocations: 254.6 kB / 0.4921 GB, free: 1.461 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01203/0.5143, allocations: 6.887 MB / 0.4988 GB, free: 10.52 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002795/0.5172, allocations: 2.192 MB / 0.5009 GB, free: 8.293 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006452/0.5178, allocations: 195.4 kB / 0.5011 GB, free: 8.102 MB / 430.1 MB Notification: Performance of SimCode: time 9.62e-07/0.5178, allocations: 0 / 0.5011 GB, free: 8.102 MB / 430.1 MB Notification: Performance of Templates: time 0.2155/0.7334, allocations: 46.92 MB / 0.547 GB, free: 131.8 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/Pendulum/Pendulum.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches