Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009675/0.0009678, allocations: 92.16 kB / 16.65 MB, free: 6.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009829/0.0009833, allocations: 183.8 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.329/1.329, allocations: 223.3 MB / 241.6 MB, free: 14.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002989/0.0002988, allocations: 11.94 kB / 301.4 MB, free: 5.871 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1022, allocations: 50.42 MB / 351.8 MB, free: 3.445 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.01301/0.1153, allocations: 13.5 MB / 365.4 MB, free: 5.879 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008992/0.1243, allocations: 4.288 MB / 369.6 MB, free: 1.578 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002631/0.127, allocations: 59.81 kB / 369.7 MB, free: 1.52 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00101/0.128, allocations: 274.8 kB / 370 MB, free: 1.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003338/0.1314, allocations: 1.23 MB / 371.2 MB, free: 16 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1665/0.2979, allocations: 458 kB / 371.6 MB, free: 9.207 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004253/0.3022, allocations: 3.43 MB / 375.1 MB, free: 9.203 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002002/0.3042, allocations: 1.401 MB / 376.5 MB, free: 9.008 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009253/0.3051, allocations: 0.6352 MB / 377.1 MB, free: 8.984 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001522/0.3067, allocations: 1.143 MB / 378.3 MB, free: 8.844 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002316/0.3069, allocations: 78.19 kB / 378.3 MB, free: 8.844 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001518/0.3084, allocations: 0.8895 MB / 379.2 MB, free: 8.84 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008635/0.3093, allocations: 0.9764 MB / 380.2 MB, free: 8.719 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008544/0.3102, allocations: 1.166 MB / 381.4 MB, free: 8.219 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003186/0.3134, allocations: 3.693 MB / 385.1 MB, free: 7.191 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.3134, allocations: 0 / 385.1 MB, free: 7.191 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3134, allocations: 3.938 kB / 385.1 MB, free: 7.188 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.199e-05/0.3134, allocations: 0 / 385.1 MB, free: 7.188 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.003748/0.3172, allocations: 2.394 MB / 387.5 MB, free: 5.609 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/0.3172, allocations: 9.5 kB / 387.5 MB, free: 5.609 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005691/0.3229, allocations: 1.692 MB / 389.2 MB, free: 4.801 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001971/0.3249, allocations: 1.317 MB / 390.5 MB, free: 4.25 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.023e-05/0.325, allocations: 118 kB / 390.6 MB, free: 4.246 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003279/0.3254, allocations: 158.3 kB / 390.7 MB, free: 4.238 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007492/0.3329, allocations: 6.376 MB / 397.1 MB, free: 0.5 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.894e-05/0.3329, allocations: 38.22 kB / 397.2 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002212/0.3332, allocations: 81.31 kB / 397.2 MB, free: 476 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002168/0.3353, allocations: 1.432 MB / 398.7 MB, free: 15.55 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009016/0.3444, allocations: 5.691 MB / 404.4 MB, free: 10 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02635/0.3707, allocations: 26.28 MB / 430.6 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004274/0.375, allocations: 2.258 MB / 432.9 MB, free: 12.69 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001292/0.3764, allocations: 1.026 MB / 433.9 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.299e-05/0.3764, allocations: 13.31 kB / 433.9 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.967e-05/0.3765, allocations: 50.5 kB / 434 MB, free: 11.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=98): time 2.956e-06/0.3765, allocations: 0 / 434 MB, free: 11.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=106): time 0.02109/0.3976, allocations: 8.535 MB / 442.5 MB, free: 2.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.885e-05/0.3977, allocations: 144.5 kB / 442.7 MB, free: 2.738 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003774/0.4014, allocations: 2.823 MB / 445.5 MB, free: 15.9 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001203/0.4016, allocations: 41.7 kB / 445.5 MB, free: 15.85 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001336/0.4029, allocations: 2.067 MB / 447.6 MB, free: 13.79 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004015/0.4033, allocations: 435.2 kB / 448 MB, free: 13.37 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004437/0.4038, allocations: 382.4 kB / 448.4 MB, free: 12.99 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.76e-05/0.4039, allocations: 301.1 kB / 448.7 MB, free: 12.69 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002036/0.4059, allocations: 1.414 MB / 450.1 MB, free: 11.27 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004031/0.41, allocations: 4.253 MB / 454.3 MB, free: 5.59 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006459/0.4164, allocations: 6.134 MB / 460.5 MB, free: 14.06 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.613e-05/0.4165, allocations: 32 kB / 460.5 MB, free: 14.03 MB / 382.1 MB Notification: Performance of matching and sorting (n=573) (initialization): time 0.01043/0.427, allocations: 6.096 MB / 466.6 MB, free: 7.922 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.521e-05/0.4271, allocations: 51.98 kB / 466.7 MB, free: 7.871 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001042/0.4272, allocations: 104 kB / 466.8 MB, free: 7.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002372/0.4295, allocations: 0.7937 MB / 467.6 MB, free: 6.973 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003011/0.4326, allocations: 0.9942 MB / 468.5 MB, free: 5.977 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005449/0.438, allocations: 4.16 MB / 472.7 MB, free: 1.691 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003073/0.4411, allocations: 247.5 kB / 473 MB, free: 1.449 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004433/0.4416, allocations: 276 kB / 473.2 MB, free: 1.18 MB / 382.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.002134/0.4437, allocations: 1.376 MB / 474.6 MB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003773/0.4441, allocations: 228.8 kB / 474.8 MB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003895/0.448, allocations: 1.85 MB / 476.7 MB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.442e-05/0.4481, allocations: 23.98 kB / 476.7 MB, free: 13.67 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.859e-06/0.4481, allocations: 4 kB / 476.7 MB, free: 13.67 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.388e-06/0.4481, allocations: 3.984 kB / 476.7 MB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008567/0.4567, allocations: 4.797 MB / 481.5 MB, free: 8.805 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.967e-06/0.4567, allocations: 8.062 kB / 481.5 MB, free: 8.797 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006238/0.4573, allocations: 135.8 kB / 481.6 MB, free: 8.664 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002052/0.4594, allocations: 0.6482 MB / 482.3 MB, free: 8.012 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.121e-05/0.4595, allocations: 16 kB / 482.3 MB, free: 7.996 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004697/0.4642, allocations: 3.689 MB / 486 MB, free: 4.176 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.4642, allocations: 3.938 kB / 486 MB, free: 4.172 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005879/0.4701, allocations: 3.694 MB / 489.7 MB, free: 460 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005735/0.4707, allocations: 294 kB / 490 MB, free: 144 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002422/0.471, allocations: 18.27 kB / 490 MB, free: 128 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009043/0.4719, allocations: 63.97 kB / 490.1 MB, free: 64 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001641/0.4721, allocations: 63.84 kB / 490.1 MB, free: 0 / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.353e-05/0.4722, allocations: 28.05 kB / 490.1 MB, free: 15.97 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002844/0.475, allocations: 1.754 MB / 491.9 MB, free: 14.21 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.475, allocations: 0 / 491.9 MB, free: 14.21 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003451/0.4785, allocations: 0.6506 MB / 492.5 MB, free: 13.56 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.000371/0.4789, allocations: 158.3 kB / 492.7 MB, free: 13.4 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005303/0.4842, allocations: 3.409 MB / 496.1 MB, free: 10.01 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.106e-05/0.4842, allocations: 4 kB / 496.1 MB, free: 10 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001324/0.4856, allocations: 0.9276 MB / 497 MB, free: 9.062 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002258/0.4878, allocations: 245.3 kB / 497.3 MB, free: 8.82 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01061/0.4984, allocations: 6.701 MB / 0.4922 GB, free: 2.074 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00224/0.5007, allocations: 2.189 MB / 0.4943 GB, free: 15.85 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003239/0.504, allocations: 1.4 MB / 0.4957 GB, free: 14.44 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003953/0.5044, allocations: 159.4 kB / 0.4958 GB, free: 14.29 MB / 430.1 MB Notification: Performance of SimCode: time 1.001e-06/0.5044, allocations: 0 / 0.4958 GB, free: 14.29 MB / 430.1 MB Notification: Performance of Templates: time 0.03933/0.5437, allocations: 21.79 MB / 0.5171 GB, free: 8.621 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/Pendulum/Pendulum.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches