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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009056/0.0009056, allocations: 85.05 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009069/0.0009069, allocations: 147 kB / 24.89 MB, free: 8.781 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8825/0.8825, allocations: 173.4 MB / 201.5 MB, free: 8.766 MB / 186.7 MB " [Timeout remaining time 179] 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=5002,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=5002,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 0 / 268.5 MB, free: 6.031 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.034e-05/2.185e-05, allocations: 2.312 kB / 268.5 MB, free: 6.027 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.007577/0.007599, allocations: 6.796 MB / 275.3 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005627/0.01323, allocations: 3.168 MB / 278.4 MB, free: 12.02 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005965/0.01382, allocations: 35.88 kB / 278.5 MB, free: 11.98 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001549/0.01537, allocations: 0.8325 MB / 279.3 MB, free: 11.14 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00254/0.01791, allocations: 1.412 MB / 280.7 MB, free: 9.727 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009112/0.01882, allocations: 0.5416 MB / 281.3 MB, free: 9.184 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002486/0.02131, allocations: 2.862 MB / 284.1 MB, free: 6.32 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001052/0.02236, allocations: 1.428 MB / 285.6 MB, free: 4.863 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009942/0.02336, allocations: 1.231 MB / 286.8 MB, free: 3.629 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009935/0.02435, allocations: 1.223 MB / 288 MB, free: 2.402 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001689/0.02452, allocations: 136 kB / 288.1 MB, free: 2.27 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007877/0.02531, allocations: 0.8111 MB / 289 MB, free: 1.457 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005807/0.02589, allocations: 1.071 MB / 290 MB, free: 392 kB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.1071/0.133, allocations: 0.6366 MB / 290.7 MB, free: 18.66 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003925/0.137, allocations: 2.778 MB / 293.4 MB, free: 18.46 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.137, allocations: 0 / 293.4 MB, free: 18.46 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.492e-06/0.137, allocations: 1.719 kB / 293.4 MB, free: 18.46 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001141/0.1371, allocations: 0 / 293.4 MB, free: 18.46 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.004632/0.1417, allocations: 2.639 MB / 296.1 MB, free: 17.25 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.1418, allocations: 17.06 kB / 296.1 MB, free: 17.25 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002476/0.1442, allocations: 0.7895 MB / 296.9 MB, free: 17.23 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00142/0.1456, allocations: 0.9859 MB / 297.9 MB, free: 16.89 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.993e-05/0.1457, allocations: 117.1 kB / 298 MB, free: 16.89 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002212/0.1459, allocations: 155.1 kB / 298.1 MB, free: 16.89 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00357/0.1495, allocations: 3.107 MB / 301.2 MB, free: 15.45 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.031e-05/0.1496, allocations: 26.34 kB / 301.3 MB, free: 15.45 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001766/0.1498, allocations: 81.67 kB / 301.3 MB, free: 15.45 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001186/0.1509, allocations: 1.208 MB / 302.6 MB, free: 15.45 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002904/0.1538, allocations: 1.612 MB / 304.2 MB, free: 15.36 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01347/0.1673, allocations: 21.1 MB / 325.3 MB, free: 14.6 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001419/0.1687, allocations: 0.7291 MB / 326 MB, free: 14.35 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002127/0.1689, allocations: 170.8 kB / 326.2 MB, free: 14.3 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002535/0.1715, allocations: 1.781 MB / 327.9 MB, free: 12.69 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.063e-05/0.1715, allocations: 38.56 kB / 328 MB, free: 12.64 MB / 282.7 MB Notification: Performance of pre-optimization done (n=74): time 4.288e-06/0.1715, allocations: 0 / 328 MB, free: 12.64 MB / 282.7 MB Notification: Performance of matching and sorting (n=75): time 0.004208/0.1757, allocations: 1.693 MB / 329.7 MB, free: 10.95 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.51e-05/0.1758, allocations: 148 kB / 329.8 MB, free: 10.78 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002242/0.178, allocations: 2.261 MB / 332.1 MB, free: 8.891 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.935e-05/0.1781, allocations: 33.7 kB / 332.1 MB, free: 8.852 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009257/0.179, allocations: 2.152 MB / 334.3 MB, free: 6.82 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002205/0.1792, allocations: 339.5 kB / 334.6 MB, free: 6.504 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000634/0.1798, allocations: 0.8283 MB / 335.4 MB, free: 5.758 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.448e-05/0.1799, allocations: 350.9 kB / 335.8 MB, free: 5.43 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007859/0.1807, allocations: 0.4956 MB / 336.3 MB, free: 4.926 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001942/0.1827, allocations: 3.32 MB / 339.6 MB, free: 292 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003134/0.1858, allocations: 4.22 MB / 343.8 MB, free: 10.79 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.432e-05/0.1859, allocations: 28 kB / 343.8 MB, free: 10.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=562) (initialization): time 0.003397/0.1893, allocations: 2.976 MB / 346.8 MB, free: 7.777 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.719e-05/0.1893, allocations: 48 kB / 346.9 MB, free: 7.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-05/0.1894, allocations: 104 kB / 347 MB, free: 7.629 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002847/0.1897, allocations: 183.3 kB / 347.1 MB, free: 7.449 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00152/0.1912, allocations: 0.9743 MB / 348.1 MB, free: 6.477 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001005/0.1922, allocations: 1.444 MB / 349.6 MB, free: 4.938 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001762/0.1939, allocations: 203.7 kB / 349.7 MB, free: 4.738 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000206/0.1942, allocations: 245.7 kB / 350 MB, free: 4.5 MB / 298.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.0008738/0.195, allocations: 490.7 kB / 350.5 MB, free: 4.012 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002045/0.1952, allocations: 119.9 kB / 350.6 MB, free: 3.895 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004145/0.1956, allocations: 344.1 kB / 350.9 MB, free: 3.547 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.15e-05/0.1957, allocations: 8 kB / 350.9 MB, free: 3.539 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.1957, allocations: 4 kB / 350.9 MB, free: 3.535 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.1957, allocations: 3.984 kB / 350.9 MB, free: 3.531 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0025/0.1982, allocations: 1.926 MB / 352.9 MB, free: 1.871 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.1982, allocations: 0 / 352.9 MB, free: 1.871 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002095/0.1984, allocations: 75.91 kB / 352.9 MB, free: 1.797 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001351/0.1985, allocations: 58.73 kB / 353 MB, free: 1.738 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.485e-05/0.1985, allocations: 8 kB / 353 MB, free: 1.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008627/0.1994, allocations: 1.369 MB / 354.4 MB, free: 280 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.1994, allocations: 4 kB / 354.4 MB, free: 276 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008182/0.2002, allocations: 1.032 MB / 355.4 MB, free: 15.2 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002451/0.2005, allocations: 202.4 kB / 355.6 MB, free: 15 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000122/0.2006, allocations: 8 kB / 355.6 MB, free: 15 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003501/0.2009, allocations: 15.94 kB / 355.6 MB, free: 14.98 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.837e-05/0.201, allocations: 39.88 kB / 355.7 MB, free: 14.94 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.755e-05/0.201, allocations: 25.47 kB / 355.7 MB, free: 14.92 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007115/0.2017, allocations: 0.7763 MB / 356.5 MB, free: 14.16 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2017, allocations: 0 / 356.5 MB, free: 14.16 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002445/0.2042, allocations: 0.6323 MB / 357.1 MB, free: 13.53 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.0003208/0.2045, allocations: 144.3 kB / 357.2 MB, free: 13.38 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002034/0.2065, allocations: 1.693 MB / 358.9 MB, free: 11.68 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001012/0.2066, allocations: 55.94 kB / 359 MB, free: 11.62 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002955/0.2069, allocations: 278.2 kB / 359.3 MB, free: 11.34 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001256/0.2082, allocations: 367.7 kB / 359.6 MB, free: 10.98 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005314/0.2135, allocations: 4.185 MB / 363.8 MB, free: 6.719 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000588/0.2141, allocations: 0.7082 MB / 364.5 MB, free: 5.98 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0007951/0.2149, allocations: 328.8 kB / 364.8 MB, free: 5.656 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003827/0.2153, allocations: 345.3 kB / 365.2 MB, free: 5.32 MB / 314.7 MB Notification: Performance of SimCode: time 1.753e-06/0.2153, allocations: 0 / 365.2 MB, free: 5.32 MB / 314.7 MB Notification: Performance of Templates: time 0.02822/0.2435, allocations: 15.78 MB / 381 MB, free: 5.695 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) [Timeout 240] 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","",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.2048099390231073]