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.001426/0.001426, allocations: 76.72 kB / 22.21 MB, free: 2.289 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.001366/0.001366, allocations: 144.9 kB / 25.59 MB, free: 8.605 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.9728/0.9728, allocations: 173.4 MB / 202.3 MB, free: 8.305 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.673e-06/1.673e-06, allocations: 0 / 269.2 MB, free: 9.77 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.537e-05/2.704e-05, allocations: 2.312 kB / 269.2 MB, free: 9.766 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.006453/0.00648, allocations: 6.792 MB / 276 MB, free: 2.953 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004309/0.01079, allocations: 3.064 MB / 279.1 MB, free: 15.89 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005583/0.01135, allocations: 35.88 kB / 279.1 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001205/0.01255, allocations: 0.8247 MB / 279.9 MB, free: 15.03 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002159/0.01471, allocations: 1.408 MB / 281.3 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008153/0.01553, allocations: 0.5378 MB / 281.9 MB, free: 13.08 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002292/0.01782, allocations: 2.866 MB / 284.7 MB, free: 10.21 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00126/0.01908, allocations: 1.387 MB / 286.1 MB, free: 8.801 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001107/0.02019, allocations: 1.235 MB / 287.4 MB, free: 7.562 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001131/0.02132, allocations: 1.282 MB / 288.6 MB, free: 6.277 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001624/0.02148, allocations: 136 kB / 288.8 MB, free: 6.145 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009221/0.0224, allocations: 0.8266 MB / 289.6 MB, free: 5.316 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005971/0.023, allocations: 1.067 MB / 290.7 MB, free: 4.246 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004695/0.02347, allocations: 0.6423 MB / 291.3 MB, free: 3.602 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002169/0.02564, allocations: 2.774 MB / 294.1 MB, free: 0.8164 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.02564, allocations: 3.938 kB / 294.1 MB, free: 0.8125 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.02564, allocations: 4 kB / 294.1 MB, free: 0.8086 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.866e-05/0.02567, allocations: 0 / 294.1 MB, free: 0.8086 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.003095/0.02877, allocations: 3.057 MB / 297.1 MB, free: 13.7 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.73e-05/0.0288, allocations: 8.031 kB / 297.2 MB, free: 13.69 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002513/0.03132, allocations: 1.072 MB / 298.2 MB, free: 12.62 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001055/0.03237, allocations: 1.074 MB / 299.3 MB, free: 11.52 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.271e-05/0.03243, allocations: 115.2 kB / 299.4 MB, free: 11.4 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001951/0.03263, allocations: 159.7 kB / 299.6 MB, free: 11.25 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003093/0.03572, allocations: 3.548 MB / 303.1 MB, free: 6.98 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.017e-05/0.03577, allocations: 27.75 kB / 303.1 MB, free: 6.953 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001489/0.03592, allocations: 83.89 kB / 303.2 MB, free: 6.871 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001026/0.03695, allocations: 1.211 MB / 304.4 MB, free: 5.66 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002248/0.03919, allocations: 1.59 MB / 306 MB, free: 4.07 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01555/0.05475, allocations: 29.64 MB / 335.7 MB, free: 5.363 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001451/0.0562, allocations: 0.7159 MB / 336.4 MB, free: 4.602 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002337/0.05643, allocations: 210.7 kB / 336.6 MB, free: 4.379 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002387/0.05882, allocations: 2.055 MB / 338.6 MB, free: 2.297 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.87e-05/0.05885, allocations: 49.33 kB / 338.7 MB, free: 2.238 MB / 314.7 MB Notification: Performance of pre-optimization done (n=74): time 2.314e-06/0.05885, allocations: 0 / 338.7 MB, free: 2.238 MB / 314.7 MB Notification: Performance of matching and sorting (n=75): time 0.003951/0.0628, allocations: 1.89 MB / 340.6 MB, free: 312 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.883e-05/0.06285, allocations: 136.5 kB / 340.7 MB, free: 144 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001894/0.06474, allocations: 2.55 MB / 343.3 MB, free: 13.55 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.08e-05/0.06478, allocations: 37.7 kB / 343.3 MB, free: 13.51 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001134/0.06591, allocations: 2.386 MB / 345.7 MB, free: 11.1 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000214/0.06612, allocations: 369.5 kB / 346 MB, free: 10.73 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007398/0.06686, allocations: 0.9639 MB / 347 MB, free: 9.754 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.06701, allocations: 0.5276 MB / 347.5 MB, free: 9.219 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005045/0.06752, allocations: 360.3 kB / 347.9 MB, free: 8.859 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002395/0.06991, allocations: 4.733 MB / 352.6 MB, free: 2.086 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1318/0.2017, allocations: 5.584 MB / 358.2 MB, free: 74.6 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.14e-05/0.2018, allocations: 34.77 kB / 358.2 MB, free: 74.59 MB / 330.7 MB Notification: Performance of matching and sorting (n=562) (initialization): time 0.005343/0.2071, allocations: 3.469 MB / 361.7 MB, free: 73.84 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.839e-05/0.2072, allocations: 48.94 kB / 361.8 MB, free: 73.84 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.854e-05/0.2073, allocations: 111 kB / 361.9 MB, free: 73.84 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003454/0.2076, allocations: 178.7 kB / 362 MB, free: 73.82 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001603/0.2092, allocations: 0.9664 MB / 363 MB, free: 73.73 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009788/0.2102, allocations: 1.985 MB / 365 MB, free: 71.98 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001576/0.2118, allocations: 202.6 kB / 365.2 MB, free: 71.98 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001958/0.212, allocations: 241.9 kB / 365.4 MB, free: 71.98 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.0007126/0.2127, allocations: 0.5165 MB / 365.9 MB, free: 71.72 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002211/0.2129, allocations: 225.3 kB / 366.2 MB, free: 71.72 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004299/0.2133, allocations: 371.6 kB / 366.5 MB, free: 71.65 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.12e-05/0.2134, allocations: 15.5 kB / 366.5 MB, free: 71.64 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.2134, allocations: 7.234 kB / 366.5 MB, free: 71.64 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.2134, allocations: 0 / 366.5 MB, free: 71.64 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002703/0.2161, allocations: 2.244 MB / 368.8 MB, free: 71.23 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/0.2161, allocations: 7.781 kB / 368.8 MB, free: 71.23 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000215/0.2163, allocations: 78.67 kB / 368.9 MB, free: 71.22 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001385/0.2164, allocations: 48.12 kB / 368.9 MB, free: 71.21 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.609e-05/0.2165, allocations: 14.17 kB / 368.9 MB, free: 71.21 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000642/0.2171, allocations: 1.788 MB / 370.7 MB, free: 69.5 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.2171, allocations: 3.719 kB / 370.7 MB, free: 69.5 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007784/0.2179, allocations: 1.224 MB / 372 MB, free: 68.74 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001601/0.218, allocations: 196.3 kB / 372.1 MB, free: 68.62 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001151/0.2182, allocations: 11.5 kB / 372.2 MB, free: 68.62 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000348/0.2185, allocations: 11.34 kB / 372.2 MB, free: 68.62 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.642e-05/0.2186, allocations: 49.34 kB / 372.2 MB, free: 68.61 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.864e-05/0.2186, allocations: 18.88 kB / 372.2 MB, free: 68.61 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007386/0.2193, allocations: 1.008 MB / 373.2 MB, free: 68.42 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.2193, allocations: 0.6875 kB / 373.2 MB, free: 68.42 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002396/0.2217, allocations: 0.6241 MB / 373.9 MB, free: 68.42 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.0003326/0.2221, allocations: 165.9 kB / 374 MB, free: 68.33 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002515/0.2246, allocations: 1.872 MB / 375.9 MB, free: 66.95 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.833e-06/0.2246, allocations: 7.281 kB / 375.9 MB, free: 66.95 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003235/0.2249, allocations: 366.5 kB / 376.3 MB, free: 66.62 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001195/0.2261, allocations: 223.6 kB / 376.5 MB, free: 66.53 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00486/0.231, allocations: 4.219 MB / 380.7 MB, free: 62.9 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004881/0.2314, allocations: 0.7159 MB / 381.4 MB, free: 62.42 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006859/0.2321, allocations: 327.8 kB / 381.7 MB, free: 62.18 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003286/0.2325, allocations: 375.1 kB / 382.1 MB, free: 61.84 MB / 330.7 MB Notification: Performance of SimCode: time 1.673e-06/0.2325, allocations: 0 / 382.1 MB, free: 61.84 MB / 330.7 MB Notification: Performance of Templates: time 0.02458/0.257, allocations: 16.18 MB / 398.3 MB, free: 46.7 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.620195141993463]