Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009017/0.0009017, allocations: 80.8 kB / 21.49 MB, free: 2.996 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008763/0.0008763, allocations: 171.5 kB / 24.91 MB, free: 8.723 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.88/0.88, allocations: 177.1 MB / 205.3 MB, free: 5.078 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.282e-06/1.282e-06, allocations: 0 / 273.5 MB, free: 1.148 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.678e-05/1.806e-05, allocations: 4.703 kB / 273.5 MB, free: 1.145 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.00755/0.007568, allocations: 6.766 MB / 280.2 MB, free: 10.35 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005584/0.01315, allocations: 3.176 MB / 283.4 MB, free: 7.16 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006134/0.01377, allocations: 39.81 kB / 283.4 MB, free: 7.121 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00148/0.01525, allocations: 0.8403 MB / 284.3 MB, free: 6.277 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002504/0.01775, allocations: 1.377 MB / 285.7 MB, free: 4.895 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009458/0.0187, allocations: 0.5338 MB / 286.2 MB, free: 4.359 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003003/0.0217, allocations: 2.916 MB / 289.1 MB, free: 1.438 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.09444/0.1161, allocations: 1.422 MB / 290.5 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001832/0.118, allocations: 1.221 MB / 291.8 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001718/0.1197, allocations: 1.212 MB / 293 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003361/0.12, allocations: 137.8 kB / 293.1 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001156/0.1212, allocations: 0.7979 MB / 293.9 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00074/0.1219, allocations: 1.053 MB / 294.9 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007561/0.1227, allocations: 0.6338 MB / 295.6 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002683/0.1254, allocations: 2.729 MB / 298.3 MB, free: 14.84 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.1254, allocations: 0.8438 kB / 298.3 MB, free: 14.84 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1254, allocations: 0 / 298.3 MB, free: 14.84 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.274e-05/0.1254, allocations: 2.094 kB / 298.3 MB, free: 14.84 MB / 266.7 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.003538/0.129, allocations: 2.617 MB / 300.9 MB, free: 13.63 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.839e-05/0.129, allocations: 9.625 kB / 300.9 MB, free: 13.63 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002127/0.1311, allocations: 0.7956 MB / 301.7 MB, free: 13.62 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001068/0.1322, allocations: 0.9793 MB / 302.7 MB, free: 13.29 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.058e-05/0.1323, allocations: 118.9 kB / 302.8 MB, free: 13.28 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002159/0.1325, allocations: 155.9 kB / 303 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002444/0.1349, allocations: 3.104 MB / 306.1 MB, free: 11.84 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.124e-05/0.135, allocations: 36.53 kB / 306.1 MB, free: 11.84 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001517/0.1351, allocations: 81.92 kB / 306.2 MB, free: 11.84 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008954/0.136, allocations: 1.2 MB / 307.4 MB, free: 11.7 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001914/0.1379, allocations: 1.618 MB / 309 MB, free: 11.49 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01009/0.148, allocations: 21.09 MB / 330.1 MB, free: 6.898 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001308/0.1493, allocations: 0.7468 MB / 330.9 MB, free: 6.137 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002053/0.1495, allocations: 163.4 kB / 331 MB, free: 5.969 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002045/0.1516, allocations: 1.767 MB / 332.8 MB, free: 4.215 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.516e-05/0.1516, allocations: 45.19 kB / 332.8 MB, free: 4.164 MB / 282.7 MB Notification: Performance of pre-optimization done (n=74): time 2.024e-06/0.1516, allocations: 0 / 332.8 MB, free: 4.164 MB / 282.7 MB Notification: Performance of matching and sorting (n=75): time 0.003331/0.1549, allocations: 1.705 MB / 334.5 MB, free: 2.453 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.766e-05/0.155, allocations: 147.4 kB / 334.7 MB, free: 2.281 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001543/0.1565, allocations: 2.255 MB / 336.9 MB, free: 404 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.535e-05/0.1566, allocations: 37.7 kB / 337 MB, free: 360 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008096/0.1574, allocations: 2.14 MB / 339.1 MB, free: 14.32 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001766/0.1576, allocations: 349 kB / 339.5 MB, free: 13.99 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006157/0.1582, allocations: 0.823 MB / 340.3 MB, free: 13.25 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001761/0.1583, allocations: 352.8 kB / 340.6 MB, free: 12.92 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006976/0.159, allocations: 0.4986 MB / 341.1 MB, free: 12.41 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001774/0.1608, allocations: 3.318 MB / 344.4 MB, free: 7.773 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002651/0.1635, allocations: 4.219 MB / 348.7 MB, free: 2.23 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.927e-05/0.1635, allocations: 32 kB / 348.7 MB, free: 2.199 MB / 298.7 MB Notification: Performance of matching and sorting (n=562) (initialization): time 0.002779/0.1663, allocations: 2.972 MB / 351.7 MB, free: 15.21 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.327e-05/0.1663, allocations: 48 kB / 351.7 MB, free: 15.17 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.754e-05/0.1664, allocations: 108 kB / 351.8 MB, free: 15.06 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002264/0.1666, allocations: 179.4 kB / 352 MB, free: 14.89 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001519/0.1681, allocations: 0.9708 MB / 353 MB, free: 13.91 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008389/0.169, allocations: 1.435 MB / 354.4 MB, free: 12.39 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001242/0.1702, allocations: 199.8 kB / 354.6 MB, free: 12.19 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001968/0.1704, allocations: 246.8 kB / 354.8 MB, free: 11.95 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 479 * Number of states: 0 () * Number of discrete variables: 18 (world.gravitySphereColor[1],world.gravitySphereColor[2],world.gravitySphereColor[3],world.groundColor[1],world.groundColor[2],world.groundColor[3],world.axisColor_x[1],world.axisColor_x[2],world.axisColor_x[3],world.gravityArrowColor[1],world.gravityArrowColor[2],world.gravityArrowColor[3],rev.cylinderColor[1],rev.cylinderColor[2],rev.cylinderColor[3],body.sphereColor[1],body.sphereColor[2],body.sphereColor[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (536): * Single equations (assignments): 532 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006615/0.1711, allocations: 492.2 kB / 355.3 MB, free: 11.46 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001591/0.1712, allocations: 123.8 kB / 355.4 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003919/0.1716, allocations: 343.2 kB / 355.8 MB, free: 11 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.083e-05/0.1716, allocations: 12 kB / 355.8 MB, free: 10.98 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.1716, allocations: 1.062 kB / 355.8 MB, free: 10.98 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.002e-06/0.1716, allocations: 3.984 kB / 355.8 MB, free: 10.98 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002074/0.1737, allocations: 1.919 MB / 357.7 MB, free: 9.086 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.549e-06/0.1737, allocations: 7.938 kB / 357.7 MB, free: 9.078 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000201/0.1739, allocations: 75.91 kB / 357.8 MB, free: 9.004 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001139/0.174, allocations: 43.8 kB / 357.8 MB, free: 8.957 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.518e-05/0.1741, allocations: 12 kB / 357.8 MB, free: 8.945 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007579/0.1748, allocations: 1.388 MB / 359.2 MB, free: 7.461 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.1748, allocations: 0 / 359.2 MB, free: 7.461 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007985/0.1756, allocations: 1.048 MB / 360.3 MB, free: 6.367 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001658/0.1758, allocations: 190.4 kB / 360.5 MB, free: 6.18 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001271/0.1759, allocations: 15.98 kB / 360.5 MB, free: 6.164 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003369/0.1762, allocations: 15.94 kB / 360.5 MB, free: 6.148 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.564e-05/0.1763, allocations: 35.84 kB / 360.5 MB, free: 6.113 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.792e-05/0.1763, allocations: 20 kB / 360.5 MB, free: 6.094 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006115/0.1769, allocations: 0.7789 MB / 361.3 MB, free: 5.297 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1769, allocations: 7.938 kB / 361.3 MB, free: 5.289 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001764/0.1787, allocations: 0.6053 MB / 361.9 MB, free: 4.684 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (rev.w,damper.phi_rel) * 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 (51): * Single equations (assignments): 47 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002213/0.1789, allocations: 136.2 kB / 362.1 MB, free: 4.543 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001457/0.1804, allocations: 1.698 MB / 363.8 MB, free: 2.848 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 9.596e-05/0.1805, allocations: 59.94 kB / 363.8 MB, free: 2.785 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002535/0.1807, allocations: 288.6 kB / 364.1 MB, free: 2.492 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000857/0.1816, allocations: 346 kB / 364.4 MB, free: 2.156 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004282/0.1859, allocations: 4.176 MB / 368.6 MB, free: 13.89 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005642/0.1864, allocations: 0.7041 MB / 369.3 MB, free: 13.16 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006568/0.1871, allocations: 323.6 kB / 369.6 MB, free: 12.84 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003584/0.1875, allocations: 345.2 kB / 370 MB, free: 12.5 MB / 330.7 MB Notification: Performance of SimCode: time 1.443e-06/0.1875, allocations: 0 / 370 MB, free: 12.5 MB / 330.7 MB Notification: Performance of Templates: time 0.02319/0.2106, allocations: 15.63 MB / 385.6 MB, free: 13.04 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/Pendulum/Pendulum.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1376559352502227]