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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009615/0.0009615, allocations: 84.34 kB / 22.21 MB, free: 2.281 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008983/0.0008983, allocations: 159.6 kB / 25.61 MB, free: 8.594 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9237/0.9237, allocations: 177 MB / 205.9 MB, free: 4.469 MB / 186.7 MB " [Timeout remaining time 179] 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=5002,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=5002,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 274.1 MB, free: 4.27 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.674e-05/1.824e-05, allocations: 5.188 kB / 274.1 MB, free: 4.266 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.005603/0.005621, allocations: 6.764 MB / 280.9 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004435/0.01006, allocations: 3.087 MB / 284 MB, free: 10.39 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005345/0.01059, allocations: 39.81 kB / 284 MB, free: 10.35 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001117/0.01171, allocations: 0.8248 MB / 284.8 MB, free: 9.523 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001933/0.01364, allocations: 1.369 MB / 286.2 MB, free: 8.148 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006596/0.0143, allocations: 0.5416 MB / 286.7 MB, free: 7.605 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002361/0.01666, allocations: 2.914 MB / 289.7 MB, free: 4.688 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001196/0.01786, allocations: 1.379 MB / 291 MB, free: 3.289 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001059/0.01892, allocations: 1.224 MB / 292.3 MB, free: 2.062 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001151/0.02007, allocations: 1.282 MB / 293.5 MB, free: 0.7773 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001318/0.0202, allocations: 136 kB / 293.7 MB, free: 0.6445 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001054/0.02125, allocations: 0.8071 MB / 294.5 MB, free: 15.84 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005434/0.0218, allocations: 1.052 MB / 295.5 MB, free: 14.78 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004205/0.02222, allocations: 0.6305 MB / 296.2 MB, free: 14.15 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001782/0.024, allocations: 2.732 MB / 298.9 MB, free: 11.41 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.365e-06/0.024, allocations: 4 kB / 298.9 MB, free: 11.4 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.11e-07/0.024, allocations: 0 / 298.9 MB, free: 11.4 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.707e-05/0.02402, allocations: 0 / 298.9 MB, free: 11.4 MB / 282.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.002993/0.02701, allocations: 3.038 MB / 301.9 MB, free: 8.312 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.002e-05/0.02704, allocations: 8.031 kB / 301.9 MB, free: 8.305 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002473/0.02951, allocations: 1.076 MB / 303 MB, free: 7.227 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001033/0.03055, allocations: 1.062 MB / 304.1 MB, free: 6.137 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.18e-05/0.03061, allocations: 115.2 kB / 304.2 MB, free: 6.023 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001962/0.03081, allocations: 163.7 kB / 304.4 MB, free: 5.863 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003058/0.03386, allocations: 3.532 MB / 307.9 MB, free: 1.617 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003519/0.03422, allocations: 31.7 kB / 307.9 MB, free: 1.586 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001636/0.03438, allocations: 87.89 kB / 308 MB, free: 1.5 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00119/0.03557, allocations: 1.214 MB / 309.2 MB, free: 292 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002181/0.03775, allocations: 1.588 MB / 310.8 MB, free: 14.7 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01477/0.05252, allocations: 29.65 MB / 340.5 MB, free: 15.98 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001324/0.05385, allocations: 0.7112 MB / 341.2 MB, free: 15.22 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002229/0.05407, allocations: 214.7 kB / 341.4 MB, free: 14.99 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002/0.05607, allocations: 2.059 MB / 343.4 MB, free: 12.91 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.323e-05/0.05609, allocations: 53.31 kB / 343.5 MB, free: 12.84 MB / 330.7 MB Notification: Performance of pre-optimization done (n=74): time 1.924e-06/0.05609, allocations: 0 / 343.5 MB, free: 12.84 MB / 330.7 MB Notification: Performance of matching and sorting (n=75): time 0.003945/0.06004, allocations: 1.888 MB / 345.4 MB, free: 10.91 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.881e-05/0.06009, allocations: 132.5 kB / 345.5 MB, free: 10.75 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001814/0.0619, allocations: 2.561 MB / 348.1 MB, free: 8.156 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.867e-05/0.06193, allocations: 29.7 kB / 348.1 MB, free: 8.121 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009907/0.06292, allocations: 2.386 MB / 350.5 MB, free: 5.711 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001934/0.06311, allocations: 369.5 kB / 350.8 MB, free: 5.348 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009694/0.06408, allocations: 0.9639 MB / 351.8 MB, free: 4.367 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.06421, allocations: 0.5276 MB / 352.3 MB, free: 3.832 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004921/0.06471, allocations: 356.3 kB / 352.7 MB, free: 3.477 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1093/0.174, allocations: 4.73 MB / 357.4 MB, free: 73.6 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003299/0.1773, allocations: 5.59 MB / 363 MB, free: 67.83 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.932e-05/0.1774, allocations: 30.03 kB / 363 MB, free: 67.83 MB / 330.7 MB Notification: Performance of matching and sorting (n=562) (initialization): time 0.004181/0.1816, allocations: 3.47 MB / 366.5 MB, free: 67.04 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.485e-05/0.1816, allocations: 50.53 kB / 366.5 MB, free: 67.04 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.875e-05/0.1817, allocations: 105 kB / 366.7 MB, free: 67.04 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003065/0.182, allocations: 186.8 kB / 366.8 MB, free: 67.02 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001376/0.1834, allocations: 0.9666 MB / 367.8 MB, free: 66.93 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008148/0.1842, allocations: 1.98 MB / 369.8 MB, free: 65.18 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001513/0.1857, allocations: 200.7 kB / 370 MB, free: 65.18 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001741/0.1859, allocations: 242.4 kB / 370.2 MB, free: 65.18 MB / 330.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.0005665/0.1864, allocations: 0.5239 MB / 370.7 MB, free: 64.92 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001996/0.1866, allocations: 224.7 kB / 371 MB, free: 64.92 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004268/0.1871, allocations: 376.6 kB / 371.3 MB, free: 64.84 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.161e-05/0.1871, allocations: 12.45 kB / 371.3 MB, free: 64.84 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.1871, allocations: 0 / 371.3 MB, free: 64.84 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.373e-06/0.1871, allocations: 7.828 kB / 371.3 MB, free: 64.84 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002538/0.1896, allocations: 2.239 MB / 373.6 MB, free: 64.42 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.1896, allocations: 4.359 kB / 373.6 MB, free: 64.42 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002025/0.1898, allocations: 82.48 kB / 373.7 MB, free: 64.42 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001232/0.19, allocations: 42.14 kB / 373.7 MB, free: 64.4 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.533e-05/0.19, allocations: 14.62 kB / 373.7 MB, free: 64.4 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005881/0.1906, allocations: 1.783 MB / 375.5 MB, free: 62.7 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.1906, allocations: 3.469 kB / 375.5 MB, free: 62.7 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007556/0.1913, allocations: 1.228 MB / 376.7 MB, free: 61.94 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001574/0.1915, allocations: 203.5 kB / 376.9 MB, free: 61.82 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001163/0.1916, allocations: 12.41 kB / 376.9 MB, free: 61.82 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003411/0.192, allocations: 7.844 kB / 377 MB, free: 61.82 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.767e-05/0.192, allocations: 44.88 kB / 377 MB, free: 61.81 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.677e-05/0.192, allocations: 19.72 kB / 377 MB, free: 61.81 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006792/0.1927, allocations: 1.004 MB / 378 MB, free: 61.62 MB / 330.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1927, allocations: 0 / 378 MB, free: 61.62 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001772/0.1945, allocations: 0.6052 MB / 378.6 MB, free: 61.62 MB / 330.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.0002291/0.1947, allocations: 151.8 kB / 378.8 MB, free: 61.53 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001607/0.1963, allocations: 1.872 MB / 380.6 MB, free: 60.25 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1963, allocations: 3.719 kB / 380.7 MB, free: 60.25 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002386/0.1966, allocations: 370.7 kB / 381 MB, free: 59.93 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007684/0.1973, allocations: 225 kB / 381.2 MB, free: 59.83 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003996/0.2013, allocations: 4.211 MB / 385.4 MB, free: 56.05 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004568/0.2018, allocations: 0.7147 MB / 386.2 MB, free: 55.52 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006003/0.2024, allocations: 330.1 kB / 386.5 MB, free: 55.29 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003034/0.2027, allocations: 372.5 kB / 386.8 MB, free: 54.94 MB / 330.7 MB Notification: Performance of SimCode: time 7.11e-07/0.2027, allocations: 0 / 386.8 MB, free: 54.94 MB / 330.7 MB Notification: Performance of Templates: time 0.02083/0.2235, allocations: 16.04 MB / 402.9 MB, free: 39.98 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.555171330925077]