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.0009309/0.0009309, allocations: 80.06 kB / 21.19 MB, free: 3.383 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.0008829/0.0008829, allocations: 141.1 kB / 24.54 MB, free: 32 kB / 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.9648/0.9648, allocations: 173.3 MB / 201.1 MB, free: 9.336 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.863e-06/1.863e-06, allocations: 0 / 268 MB, free: 6.434 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.738e-05/2.924e-05, allocations: 6.25 kB / 268 MB, free: 6.426 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.007986/0.008015, allocations: 6.985 MB / 275 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005132/0.01315, allocations: 3.099 MB / 278.1 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00079/0.01394, allocations: 39.81 kB / 278.1 MB, free: 12.26 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001416/0.01535, allocations: 0.8365 MB / 279 MB, free: 11.42 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00238/0.01773, allocations: 1.404 MB / 280.4 MB, free: 10.01 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000856/0.01859, allocations: 0.5377 MB / 280.9 MB, free: 9.469 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002574/0.02116, allocations: 2.846 MB / 283.7 MB, free: 6.617 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001592/0.02275, allocations: 1.391 MB / 285.1 MB, free: 5.207 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001418/0.02417, allocations: 1.208 MB / 286.3 MB, free: 3.996 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001435/0.02561, allocations: 1.301 MB / 287.6 MB, free: 2.691 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002566/0.02586, allocations: 140 kB / 287.8 MB, free: 2.555 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001039/0.0269, allocations: 0.8189 MB / 288.6 MB, free: 1.734 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006368/0.02754, allocations: 1.075 MB / 289.7 MB, free: 0.6562 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005804/0.02812, allocations: 0.6423 MB / 290.3 MB, free: 12 kB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1109/0.1391, allocations: 2.784 MB / 293.1 MB, free: 18.86 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.1391, allocations: 1.281 kB / 293.1 MB, free: 18.86 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1391, allocations: 0 / 293.1 MB, free: 18.86 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001179/0.1392, allocations: 0 / 293.1 MB, free: 18.86 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.005379/0.1446, allocations: 3.191 MB / 296.3 MB, free: 17.49 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.331e-05/0.1446, allocations: 11.8 kB / 296.3 MB, free: 17.49 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004008/0.1486, allocations: 1.985 MB / 298.3 MB, free: 17.31 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001817/0.1504, allocations: 1.156 MB / 299.4 MB, free: 16.97 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.619e-05/0.1505, allocations: 118.8 kB / 299.6 MB, free: 16.97 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000253/0.1508, allocations: 150.3 kB / 299.7 MB, free: 16.96 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004674/0.1554, allocations: 3.894 MB / 303.6 MB, free: 14.9 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.461e-05/0.1555, allocations: 29.23 kB / 303.6 MB, free: 14.9 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001934/0.1557, allocations: 85.17 kB / 303.7 MB, free: 14.9 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001389/0.1571, allocations: 1.431 MB / 305.1 MB, free: 14.89 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00399/0.1611, allocations: 2.112 MB / 307.3 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01696/0.178, allocations: 30.43 MB / 337.7 MB, free: 2.477 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001987/0.18, allocations: 0.912 MB / 338.6 MB, free: 1.531 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004434/0.1805, allocations: 331 kB / 338.9 MB, free: 1.191 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.395e-05/0.1805, allocations: 27.16 kB / 338.9 MB, free: 1.168 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.05e-05/0.1805, allocations: 45.39 kB / 339 MB, free: 1.113 MB / 282.7 MB Notification: Performance of pre-optimization done (n=98): time 4.628e-06/0.1805, allocations: 0 / 339 MB, free: 1.113 MB / 282.7 MB Notification: Performance of matching and sorting (n=106): time 0.01073/0.1913, allocations: 6.183 MB / 345.2 MB, free: 10.89 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.512e-05/0.1913, allocations: 140.5 kB / 345.3 MB, free: 10.72 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00252/0.1938, allocations: 2.48 MB / 347.8 MB, free: 8.211 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.828e-05/0.1939, allocations: 41.7 kB / 347.8 MB, free: 8.164 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001127/0.195, allocations: 2.302 MB / 350.1 MB, free: 5.883 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003518/0.1954, allocations: 472.6 kB / 350.6 MB, free: 5.426 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007986/0.1962, allocations: 0.9556 MB / 351.6 MB, free: 4.457 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.1963, allocations: 0.5369 MB / 352.1 MB, free: 3.914 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007684/0.1971, allocations: 456.5 kB / 352.5 MB, free: 3.461 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002583/0.1997, allocations: 4.646 MB / 357.2 MB, free: 12.9 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003948/0.2036, allocations: 5.631 MB / 362.8 MB, free: 5.387 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.243e-05/0.2037, allocations: 28 kB / 362.8 MB, free: 5.359 MB / 314.7 MB Notification: Performance of matching and sorting (n=573) (initialization): time 0.005673/0.2093, allocations: 4.241 MB / 367.1 MB, free: 1.109 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.886e-05/0.2094, allocations: 52.25 kB / 367.1 MB, free: 1.059 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.119e-05/0.2095, allocations: 100 kB / 367.2 MB, free: 0.9609 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001191/0.2107, allocations: 0.5607 MB / 367.8 MB, free: 408 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001691/0.2124, allocations: 0.9864 MB / 368.8 MB, free: 15.41 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002638/0.215, allocations: 2.982 MB / 371.8 MB, free: 12.31 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001843/0.2168, allocations: 287.5 kB / 372 MB, free: 12.03 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002453/0.2171, allocations: 278.6 kB / 372.3 MB, free: 11.76 MB / 330.7 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.0009014/0.218, allocations: 0.5195 MB / 372.8 MB, free: 11.23 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002999/0.2183, allocations: 246.5 kB / 373.1 MB, free: 10.99 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00169/0.22, allocations: 1.078 MB / 374.1 MB, free: 9.898 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.72e-05/0.22, allocations: 16 kB / 374.2 MB, free: 9.883 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.22, allocations: 3.984 kB / 374.2 MB, free: 9.879 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.215e-06/0.22, allocations: 7.984 kB / 374.2 MB, free: 9.871 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004907/0.2249, allocations: 3.394 MB / 377.6 MB, free: 6.426 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.051e-06/0.2249, allocations: 0 / 377.6 MB, free: 6.426 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003458/0.2253, allocations: 135.8 kB / 377.7 MB, free: 6.293 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009876/0.2262, allocations: 430.8 kB / 378.1 MB, free: 5.867 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.648e-05/0.2263, allocations: 16 kB / 378.1 MB, free: 5.852 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002144/0.2284, allocations: 2.463 MB / 380.6 MB, free: 3.27 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/0.2285, allocations: 10.22 kB / 380.6 MB, free: 3.262 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002629/0.2311, allocations: 2.007 MB / 382.6 MB, free: 1.223 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003832/0.2315, allocations: 210.4 kB / 382.8 MB, free: 1.016 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001341/0.2316, allocations: 19.05 kB / 382.8 MB, free: 1 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005396/0.2321, allocations: 91.84 kB / 382.9 MB, free: 0.9102 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001174/0.2323, allocations: 59.89 kB / 383 MB, free: 0.8516 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.257e-05/0.2323, allocations: 24 kB / 383 MB, free: 0.8281 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001372/0.2337, allocations: 1.046 MB / 384.1 MB, free: 15.77 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.21e-07/0.2337, allocations: 4.031 kB / 384.1 MB, free: 15.77 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002602/0.2363, allocations: 0.7342 MB / 384.8 MB, free: 15.03 MB / 346.7 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.0003577/0.2366, allocations: 163 kB / 385 MB, free: 14.87 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002986/0.2396, allocations: 2.195 MB / 387.2 MB, free: 12.67 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.2396, allocations: 4 kB / 387.2 MB, free: 12.66 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005641/0.2402, allocations: 0.5398 MB / 387.7 MB, free: 12.1 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009712/0.2412, allocations: 232 kB / 387.9 MB, free: 11.88 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005823/0.247, allocations: 4.395 MB / 392.3 MB, free: 7.414 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006157/0.2476, allocations: 0.7412 MB / 393.1 MB, free: 6.645 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001685/0.2493, allocations: 1.195 MB / 394.3 MB, free: 5.441 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003046/0.2496, allocations: 152.5 kB / 394.4 MB, free: 5.293 MB / 346.7 MB Notification: Performance of SimCode: time 1.703e-06/0.2496, allocations: 0 / 394.4 MB, free: 5.293 MB / 346.7 MB Notification: Performance of Templates: time 0.02851/0.2781, allocations: 19.78 MB / 414.2 MB, free: 1.875 MB / 362.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.6717894631437957]