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.0007865/0.0007865, allocations: 93.41 kB / 17.31 MB, free: 6.539 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.0008417/0.0008416, allocations: 177.7 kB / 18.21 MB, free: 5.68 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.122/1.122, allocations: 223.3 MB / 242.3 MB, free: 14.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002168/0.0002168, allocations: 11.94 kB / 302.1 MB, free: 5.891 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06985/0.07007, allocations: 50.41 MB / 352.5 MB, free: 3.469 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.0108/0.08091, allocations: 13.51 MB / 366 MB, free: 5.898 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006341/0.08727, allocations: 4.296 MB / 370.3 MB, free: 1.59 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001148/0.08844, allocations: 59.81 kB / 370.4 MB, free: 1.531 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005869/0.08904, allocations: 266.8 kB / 370.6 MB, free: 1.27 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002135/0.09119, allocations: 1.241 MB / 371.9 MB, free: 28 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1244/0.2155, allocations: 452.3 kB / 372.3 MB, free: 9.191 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003655/0.2192, allocations: 3.424 MB / 375.7 MB, free: 9.191 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002074/0.2213, allocations: 1.404 MB / 377.1 MB, free: 9 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001058/0.2224, allocations: 0.6319 MB / 377.8 MB, free: 8.977 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001596/0.224, allocations: 1.148 MB / 378.9 MB, free: 8.836 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003523/0.2244, allocations: 78.5 kB / 379 MB, free: 8.836 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001543/0.2259, allocations: 0.8883 MB / 379.9 MB, free: 8.832 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009664/0.2269, allocations: 0.9752 MB / 380.9 MB, free: 8.711 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001321/0.2282, allocations: 1.163 MB / 382 MB, free: 8.211 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002621/0.2309, allocations: 2.951 MB / 385 MB, free: 7.625 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.2309, allocations: 1.469 kB / 385 MB, free: 7.625 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.2309, allocations: 0 / 385 MB, free: 7.625 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.984e-05/0.231, allocations: 0 / 385 MB, free: 7.625 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.004392/0.2354, allocations: 2.395 MB / 387.4 MB, free: 6.043 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.122e-05/0.2354, allocations: 10.03 kB / 387.4 MB, free: 6.043 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005374/0.2408, allocations: 1.686 MB / 389.1 MB, free: 5.246 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001734/0.2426, allocations: 1.319 MB / 390.4 MB, free: 4.691 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.295e-05/0.2426, allocations: 122.7 kB / 390.5 MB, free: 4.684 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002697/0.2429, allocations: 157.5 kB / 390.7 MB, free: 4.676 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006337/0.2493, allocations: 6.374 MB / 397 MB, free: 1.02 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.821e-05/0.2493, allocations: 33.5 kB / 397.1 MB, free: 1.012 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001954/0.2495, allocations: 81.97 kB / 397.1 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00184/0.2514, allocations: 1.443 MB / 398.6 MB, free: 284 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007593/0.259, allocations: 5.676 MB / 404.3 MB, free: 10.75 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02147/0.2805, allocations: 26.28 MB / 430.5 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003594/0.2841, allocations: 2.262 MB / 432.8 MB, free: 13.44 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001087/0.2852, allocations: 1.018 MB / 433.8 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.77e-05/0.2852, allocations: 11.36 kB / 433.8 MB, free: 12.4 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.887e-05/0.2853, allocations: 58.48 kB / 433.9 MB, free: 12.33 MB / 350.1 MB Notification: Performance of pre-optimization done (n=98): time 2.465e-06/0.2853, allocations: 0 / 433.9 MB, free: 12.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=106): time 0.01756/0.3028, allocations: 8.545 MB / 442.4 MB, free: 3.648 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.328e-05/0.3029, allocations: 136.5 kB / 442.6 MB, free: 3.484 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003006/0.3059, allocations: 2.819 MB / 445.4 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.895e-05/0.306, allocations: 41.7 kB / 445.4 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001115/0.3071, allocations: 2.074 MB / 447.5 MB, free: 14.53 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002954/0.3074, allocations: 436 kB / 447.9 MB, free: 14.11 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003716/0.3078, allocations: 379.4 kB / 448.3 MB, free: 13.73 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.687e-05/0.3079, allocations: 301.1 kB / 448.6 MB, free: 13.43 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001765/0.3096, allocations: 1.414 MB / 450 MB, free: 12.01 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003229/0.3129, allocations: 4.254 MB / 454.3 MB, free: 6.332 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005337/0.3182, allocations: 6.133 MB / 460.4 MB, free: 14.8 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.162e-05/0.3183, allocations: 28 kB / 460.4 MB, free: 14.78 MB / 382.1 MB Notification: Performance of matching and sorting (n=573) (initialization): time 0.008483/0.3268, allocations: 6.11 MB / 466.5 MB, free: 8.656 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.15e-05/0.3268, allocations: 48.94 kB / 466.6 MB, free: 8.609 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.559e-05/0.3269, allocations: 100 kB / 466.7 MB, free: 8.512 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002009/0.3289, allocations: 0.8015 MB / 467.5 MB, free: 7.707 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002271/0.3312, allocations: 0.9864 MB / 468.5 MB, free: 6.719 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004649/0.3359, allocations: 4.157 MB / 472.6 MB, free: 2.434 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002113/0.338, allocations: 250.3 kB / 472.9 MB, free: 2.191 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002799/0.3383, allocations: 276 kB / 473.1 MB, free: 1.922 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.001594/0.3399, allocations: 1.375 MB / 474.5 MB, free: 0.5352 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002751/0.3402, allocations: 229 kB / 474.7 MB, free: 316 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003487/0.3436, allocations: 1.854 MB / 476.6 MB, free: 14.45 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.741e-05/0.3437, allocations: 15.98 kB / 476.6 MB, free: 14.44 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/0.3437, allocations: 8 kB / 476.6 MB, free: 14.43 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.013e-05/0.3437, allocations: 7.984 kB / 476.6 MB, free: 14.42 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006902/0.3506, allocations: 4.8 MB / 481.4 MB, free: 9.559 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.3506, allocations: 64 / 481.4 MB, free: 9.559 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005204/0.3512, allocations: 143.8 kB / 481.6 MB, free: 9.418 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001807/0.353, allocations: 0.6405 MB / 482.2 MB, free: 8.773 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.056e-05/0.353, allocations: 19.44 kB / 482.2 MB, free: 8.758 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004049/0.3571, allocations: 3.691 MB / 485.9 MB, free: 4.934 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.3571, allocations: 4.031 kB / 485.9 MB, free: 4.93 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004885/0.362, allocations: 3.694 MB / 489.6 MB, free: 1.207 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002912/0.3623, allocations: 294 kB / 489.9 MB, free: 0.8984 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001942/0.3625, allocations: 12 kB / 489.9 MB, free: 0.8867 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007618/0.3633, allocations: 66.64 kB / 490 MB, free: 0.8242 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001316/0.3634, allocations: 59.92 kB / 490 MB, free: 0.7656 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.508e-05/0.3635, allocations: 32 kB / 490.1 MB, free: 0.7344 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001947/0.3654, allocations: 1.754 MB / 491.8 MB, free: 14.97 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.432e-06/0.3654, allocations: 0 / 491.8 MB, free: 14.97 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002339/0.3678, allocations: 0.6522 MB / 492.5 MB, free: 14.32 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.0002576/0.3681, allocations: 150.5 kB / 492.6 MB, free: 14.17 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003857/0.3719, allocations: 3.409 MB / 496 MB, free: 10.77 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.3719, allocations: 4 kB / 496 MB, free: 10.77 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001033/0.373, allocations: 0.9286 MB / 497 MB, free: 9.828 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001547/0.3745, allocations: 251.6 kB / 497.2 MB, free: 9.582 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007248/0.3818, allocations: 6.961 MB / 0.4923 GB, free: 2.566 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001782/0.3836, allocations: 2.188 MB / 0.4945 GB, free: 348 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003987/0.384, allocations: 195.4 kB / 0.4947 GB, free: 152 kB / 414.1 MB Notification: Performance of SimCode: time 2.51e-07/0.384, allocations: 4 kB / 0.4947 GB, free: 148 kB / 414.1 MB Notification: Performance of Templates: time 0.1645/0.5485, allocations: 46.6 MB / 0.5402 GB, free: 146.6 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/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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches