Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001006/0.001006, allocations: 102.9 kB / 17.16 MB, free: 6.316 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.001022/0.001023, allocations: 190 kB / 18.07 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.381/1.381, allocations: 205.1 MB / 223.9 MB, free: 12.46 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001294, allocations: 43.94 kB / 280 MB, free: 3.582 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1091, allocations: 46.62 MB / 326.6 MB, free: 4.891 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.01467/0.1238, allocations: 14.1 MB / 340.7 MB, free: 6.719 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009921/0.1338, allocations: 4.363 MB / 345.1 MB, free: 2.344 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003367/0.1372, allocations: 51.88 kB / 345.1 MB, free: 2.293 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002412/0.1397, allocations: 0.7594 MB / 345.9 MB, free: 1.531 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003375/0.1431, allocations: 1.215 MB / 347.1 MB, free: 320 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001283/0.1444, allocations: 471.2 kB / 347.5 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004495/0.1489, allocations: 3.456 MB / 351 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002308/0.1513, allocations: 1.144 MB / 352.1 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001461/0.1527, allocations: 0.6691 MB / 352.8 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002101/0.1549, allocations: 1.195 MB / 354 MB, free: 9.348 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004833/0.1554, allocations: 99.94 kB / 354.1 MB, free: 9.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001966/0.1573, allocations: 0.889 MB / 355 MB, free: 8.359 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001396/0.1587, allocations: 0.9854 MB / 356 MB, free: 7.371 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001768/0.1605, allocations: 1.168 MB / 357.2 MB, free: 6.195 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004557/0.1651, allocations: 3.769 MB / 360.9 MB, free: 2.414 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.1651, allocations: 0 / 360.9 MB, free: 2.414 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.996e-06/0.1651, allocations: 4 kB / 360.9 MB, free: 2.41 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001189/0.1653, allocations: 3.938 kB / 360.9 MB, free: 2.406 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.005663/0.1709, allocations: 2.886 MB / 363.8 MB, free: 15.46 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.888e-05/0.171, allocations: 12.03 kB / 363.8 MB, free: 15.45 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005863/0.1769, allocations: 1.639 MB / 365.5 MB, free: 13.8 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002801/0.1797, allocations: 1.359 MB / 366.8 MB, free: 12.4 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001381/0.1798, allocations: 126.8 kB / 367 MB, free: 12.27 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003476/0.1802, allocations: 159.8 kB / 367.1 MB, free: 12.12 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00961/0.1898, allocations: 6.355 MB / 373.5 MB, free: 5.242 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.547e-05/0.1899, allocations: 31.75 kB / 373.5 MB, free: 5.211 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002208/0.1901, allocations: 79.89 kB / 373.6 MB, free: 5.133 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002382/0.1925, allocations: 1.445 MB / 375 MB, free: 3.688 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.189/0.3816, allocations: 5.661 MB / 380.7 MB, free: 50.13 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02694/0.4086, allocations: 26.3 MB / 407 MB, free: 30.72 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003674/0.4123, allocations: 2.26 MB / 409.2 MB, free: 29.26 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001094/0.4134, allocations: 1.019 MB / 410.3 MB, free: 28.71 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.054e-05/0.4135, allocations: 22.77 kB / 410.3 MB, free: 28.7 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.947e-05/0.4135, allocations: 40.22 kB / 410.3 MB, free: 28.66 MB / 318.1 MB Notification: Performance of pre-optimization done (n=98): time 3.907e-06/0.4135, allocations: 4 kB / 410.3 MB, free: 28.66 MB / 318.1 MB Notification: Performance of matching and sorting (n=106): time 0.01844/0.4319, allocations: 8.605 MB / 418.9 MB, free: 21.99 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.665e-05/0.432, allocations: 140.5 kB / 419.1 MB, free: 21.82 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002824/0.4348, allocations: 2.835 MB / 421.9 MB, free: 18.97 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001047/0.435, allocations: 37.7 kB / 421.9 MB, free: 18.93 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008288/0.4358, allocations: 2.073 MB / 424 MB, free: 16.86 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003014/0.4361, allocations: 433.5 kB / 424.4 MB, free: 16.44 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007953/0.4369, allocations: 0.8921 MB / 425.3 MB, free: 15.54 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.922e-05/0.437, allocations: 301.1 kB / 425.6 MB, free: 15.24 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001572/0.4385, allocations: 1.418 MB / 427 MB, free: 13.81 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002578/0.4411, allocations: 4.246 MB / 431.3 MB, free: 8.137 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00457/0.4457, allocations: 6.138 MB / 437.4 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.714e-05/0.4458, allocations: 31.94 kB / 437.4 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of matching and sorting (n=573) (initialization): time 0.009877/0.4557, allocations: 6.103 MB / 443.6 MB, free: 10.44 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.769e-05/0.4557, allocations: 48 kB / 443.6 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.85e-05/0.4558, allocations: 100.8 kB / 443.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00211/0.4579, allocations: 0.795 MB / 444.5 MB, free: 9.496 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002605/0.4606, allocations: 0.9902 MB / 445.5 MB, free: 8.504 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005209/0.4658, allocations: 4.157 MB / 449.6 MB, free: 4.227 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002984/0.4688, allocations: 251.6 kB / 449.9 MB, free: 3.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000376/0.4692, allocations: 272 kB / 450.1 MB, free: 3.715 MB / 334.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.001838/0.471, allocations: 1.368 MB / 451.5 MB, free: 2.336 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003952/0.4714, allocations: 232.9 kB / 451.7 MB, free: 2.105 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003682/0.4751, allocations: 1.861 MB / 453.6 MB, free: 228 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.93e-05/0.4752, allocations: 12 kB / 453.6 MB, free: 216 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.068e-05/0.4752, allocations: 10.62 kB / 453.6 MB, free: 208 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.32e-05/0.4752, allocations: 3.984 kB / 453.6 MB, free: 204 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008075/0.4833, allocations: 4.813 MB / 458.4 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.704e-06/0.4833, allocations: 0 / 458.4 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005853/0.4839, allocations: 135.8 kB / 458.6 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002012/0.4859, allocations: 0.6447 MB / 459.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.643e-05/0.486, allocations: 24.05 kB / 459.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004821/0.4908, allocations: 3.694 MB / 462.9 MB, free: 6.699 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.4909, allocations: 0 / 462.9 MB, free: 6.699 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005948/0.4968, allocations: 3.688 MB / 466.6 MB, free: 2.98 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009317/0.4978, allocations: 445.8 kB / 467.1 MB, free: 2.523 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002401/0.498, allocations: 16 kB / 467.1 MB, free: 2.508 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008524/0.4989, allocations: 63.84 kB / 467.1 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001747/0.4991, allocations: 59.86 kB / 467.2 MB, free: 2.387 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.589e-05/0.4991, allocations: 30.97 kB / 467.2 MB, free: 2.363 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002704/0.5019, allocations: 1.766 MB / 469 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.5019, allocations: 4.062 kB / 469 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003098/0.505, allocations: 0.6432 MB / 469.6 MB, free: 15.94 MB / 366.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.0003553/0.5053, allocations: 140.4 kB / 469.8 MB, free: 15.8 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004775/0.5101, allocations: 3.414 MB / 473.2 MB, free: 12.4 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.5101, allocations: 0 / 473.2 MB, free: 12.4 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001164/0.5113, allocations: 0.9251 MB / 474.1 MB, free: 11.46 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001432/0.5128, allocations: 257.3 kB / 474.4 MB, free: 11.21 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008396/0.5212, allocations: 6.648 MB / 481 MB, free: 4.523 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002008/0.5232, allocations: 2.188 MB / 483.2 MB, free: 2.305 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.003236/0.5264, allocations: 1.396 MB / 484.6 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004027/0.5269, allocations: 163.4 kB / 484.8 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of SimCode: time 1.133e-06/0.5269, allocations: 0 / 484.8 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of Templates: time 0.04128/0.5682, allocations: 22.12 MB / 0.495 GB, free: 10.61 MB / 398.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/Pendulum/Pendulum.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches