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.001263/0.001262, allocations: 116.9 kB / 17.33 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0015/0.0015, allocations: 201.8 kB / 18.26 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.354/1.354, allocations: 227.4 MB / 246.4 MB, free: 9.102 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 72.58 kB / 306.5 MB, free: 0.707 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08919/0.09045, allocations: 50.52 MB / 357 MB, free: 14.19 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.01401/0.1045, allocations: 14.01 MB / 371 MB, free: 112 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1729/0.2774, allocations: 4.26 MB / 375.2 MB, free: 8.855 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002224/0.2796, allocations: 57.41 kB / 375.3 MB, free: 8.844 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001866/0.2816, allocations: 0.7379 MB / 376 MB, free: 8.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003227/0.2848, allocations: 1.208 MB / 377.2 MB, free: 8.551 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001135/0.286, allocations: 470.2 kB / 377.7 MB, free: 8.492 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003375/0.2894, allocations: 2.578 MB / 380.3 MB, free: 7.797 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001456/0.2908, allocations: 1.237 MB / 381.5 MB, free: 7.344 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009653/0.2918, allocations: 0.7526 MB / 382.3 MB, free: 7.086 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001373/0.2932, allocations: 1.237 MB / 383.5 MB, free: 6.758 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002507/0.2934, allocations: 134.2 kB / 383.6 MB, free: 6.758 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001521/0.295, allocations: 0.8826 MB / 384.5 MB, free: 6.578 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008535/0.2958, allocations: 1.004 MB / 385.5 MB, free: 6.238 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008118/0.2967, allocations: 1.202 MB / 386.7 MB, free: 5.383 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003334/0.3, allocations: 3.789 MB / 390.5 MB, free: 3.148 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.3, allocations: 5.062 kB / 390.5 MB, free: 3.145 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.3, allocations: 0 / 390.5 MB, free: 3.145 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.397e-05/0.3001, allocations: 0 / 390.5 MB, free: 3.145 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.004486/0.3046, allocations: 2.861 MB / 393.4 MB, free: 1.164 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.257e-05/0.3046, allocations: 9.625 kB / 393.4 MB, free: 1.164 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005776/0.3104, allocations: 1.638 MB / 395 MB, free: 324 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002964/0.3134, allocations: 1.287 MB / 396.3 MB, free: 15.46 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.052e-05/0.3135, allocations: 122.7 kB / 396.4 MB, free: 15.43 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003178/0.3138, allocations: 149.5 kB / 396.6 MB, free: 15.4 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008805/0.3227, allocations: 6.366 MB / 403 MB, free: 10.28 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.851e-05/0.3227, allocations: 35.64 kB / 403 MB, free: 10.25 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002301/0.323, allocations: 81.77 kB / 403.1 MB, free: 10.2 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00242/0.3254, allocations: 1.433 MB / 404.5 MB, free: 8.766 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009407/0.3348, allocations: 5.676 MB / 410.2 MB, free: 3.086 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03095/0.3658, allocations: 26.28 MB / 436.5 MB, free: 8.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004374/0.3702, allocations: 2.265 MB / 438.7 MB, free: 5.684 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001297/0.3715, allocations: 1.015 MB / 439.7 MB, free: 4.656 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.743e-05/0.3716, allocations: 15.05 kB / 439.8 MB, free: 4.645 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.11e-05/0.3716, allocations: 42.5 kB / 439.8 MB, free: 4.594 MB / 350.1 MB Notification: Performance of pre-optimization done (n=98): time 2.655e-06/0.3717, allocations: 0 / 439.8 MB, free: 4.594 MB / 350.1 MB Notification: Performance of matching and sorting (n=106): time 0.02057/0.3922, allocations: 8.58 MB / 448.4 MB, free: 11.88 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.045e-05/0.3923, allocations: 144.4 kB / 448.5 MB, free: 11.71 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003579/0.3959, allocations: 2.815 MB / 451.3 MB, free: 8.875 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.833e-05/0.396, allocations: 41.7 kB / 451.4 MB, free: 8.828 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001284/0.3973, allocations: 2.067 MB / 453.4 MB, free: 6.766 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003819/0.3977, allocations: 437 kB / 453.9 MB, free: 6.344 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00107/0.3988, allocations: 0.8808 MB / 454.7 MB, free: 5.449 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.295e-05/0.3989, allocations: 313.1 kB / 455.1 MB, free: 5.141 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00204/0.4009, allocations: 1.414 MB / 456.5 MB, free: 3.719 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003922/0.4049, allocations: 4.242 MB / 460.7 MB, free: 14.05 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006357/0.4112, allocations: 6.132 MB / 466.8 MB, free: 6.504 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.139e-05/0.4113, allocations: 28 kB / 466.9 MB, free: 6.477 MB / 382.1 MB Notification: Performance of matching and sorting (n=573) (initialization): time 0.009968/0.4213, allocations: 6.113 MB / 473 MB, free: 368 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.918e-05/0.4213, allocations: 48 kB / 473 MB, free: 320 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-05/0.4214, allocations: 100 kB / 473.1 MB, free: 220 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002251/0.4237, allocations: 0.7974 MB / 473.9 MB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002796/0.4265, allocations: 0.9903 MB / 474.9 MB, free: 14.42 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005723/0.4322, allocations: 4.471 MB / 479.4 MB, free: 9.816 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003113/0.4354, allocations: 247.6 kB / 479.6 MB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003955/0.4358, allocations: 279.9 kB / 479.9 MB, free: 9.301 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.002055/0.4378, allocations: 1.375 MB / 481.3 MB, free: 7.91 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003981/0.4382, allocations: 233 kB / 481.5 MB, free: 7.68 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003739/0.442, allocations: 1.849 MB / 483.3 MB, free: 5.816 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.474e-05/0.442, allocations: 14.89 kB / 483.4 MB, free: 5.805 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.442, allocations: 11.94 kB / 483.4 MB, free: 5.793 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.262e-05/0.4421, allocations: 7.922 kB / 483.4 MB, free: 5.785 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007847/0.4499, allocations: 4.798 MB / 488.2 MB, free: 0.9258 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.714e-06/0.4499, allocations: 4 kB / 488.2 MB, free: 0.9219 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000611/0.4506, allocations: 135.9 kB / 488.3 MB, free: 0.7891 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002001/0.4526, allocations: 0.6521 MB / 489 MB, free: 136 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.24e-05/0.4527, allocations: 16 kB / 489 MB, free: 120 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004843/0.4575, allocations: 3.95 MB / 492.9 MB, free: 12.03 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.4575, allocations: 0 / 492.9 MB, free: 12.03 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005703/0.4632, allocations: 3.691 MB / 496.6 MB, free: 8.309 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006737/0.4639, allocations: 289.9 kB / 496.9 MB, free: 8.004 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002503/0.4642, allocations: 16 kB / 496.9 MB, free: 7.988 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000848/0.465, allocations: 67.91 kB / 497 MB, free: 7.922 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000175/0.4652, allocations: 63.8 kB / 497.1 MB, free: 7.859 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.703e-05/0.4653, allocations: 24 kB / 497.1 MB, free: 7.836 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002583/0.4679, allocations: 1.753 MB / 498.8 MB, free: 6.074 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4679, allocations: 0 / 498.8 MB, free: 6.074 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003219/0.4711, allocations: 0.6351 MB / 499.5 MB, free: 5.441 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.0003333/0.4715, allocations: 145.5 kB / 499.6 MB, free: 5.293 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005755/0.4772, allocations: 3.638 MB / 0.4915 GB, free: 1.668 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.4773, allocations: 0 / 0.4915 GB, free: 1.668 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00135/0.4786, allocations: 0.9276 MB / 0.4924 GB, free: 0.7266 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002251/0.4809, allocations: 264.3 kB / 0.4926 GB, free: 480 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01044/0.4914, allocations: 6.623 MB / 0.4991 GB, free: 9.801 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002429/0.4938, allocations: 2.184 MB / 0.5012 GB, free: 7.578 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003304/0.4971, allocations: 1.4 MB / 0.5026 GB, free: 6.172 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003741/0.4975, allocations: 163.4 kB / 0.5027 GB, free: 6.016 MB / 430.1 MB Notification: Performance of SimCode: time 1.242e-06/0.4975, allocations: 0 / 0.5027 GB, free: 6.016 MB / 430.1 MB Notification: Performance of Templates: time 0.1935/0.691, allocations: 22.85 MB / 0.525 GB, free: 146.4 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/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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches