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.0008684/0.0008684, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001223/0.002091, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0007986/0.0007986, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001122/0.00192, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.9997/0.9997, allocations: 177.2 MB / 189.6 MB, free: 5.309 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0955/1.095, allocations: 53.65 MB / 243.3 MB, free: 15.58 MB / 250.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.513e-06/1.513e-06, allocations: 0 / 244.5 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.002e-05/2.153e-05, allocations: 4.984 kB / 244.5 MB, free: 14.31 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.00541/0.005432, allocations: 6.875 MB / 251.4 MB, free: 7.402 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004323/0.009755, allocations: 3.204 MB / 254.6 MB, free: 4.188 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000717/0.01047, allocations: 43.81 kB / 254.7 MB, free: 4.145 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001048/0.01152, allocations: 0.817 MB / 255.5 MB, free: 3.324 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002175/0.01369, allocations: 1.342 MB / 256.8 MB, free: 1.977 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007816/0.01448, allocations: 0.4988 MB / 257.3 MB, free: 1.477 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00239/0.01687, allocations: 2.846 MB / 260.2 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001062/0.01793, allocations: 1.171 MB / 261.3 MB, free: 13.44 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001186/0.01911, allocations: 1.262 MB / 262.6 MB, free: 12.17 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001171/0.02029, allocations: 1.208 MB / 263.8 MB, free: 10.96 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000175/0.02046, allocations: 136 kB / 263.9 MB, free: 10.83 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001043/0.0215, allocations: 0.8267 MB / 264.8 MB, free: 10 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000578/0.02208, allocations: 0.9582 MB / 265.7 MB, free: 9.039 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004477/0.02253, allocations: 0.5177 MB / 266.2 MB, free: 8.52 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001979/0.02451, allocations: 2.513 MB / 268.7 MB, free: 5.996 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.312e-05/0.02452, allocations: 3.938 kB / 268.7 MB, free: 5.992 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.02452, allocations: 4 kB / 268.8 MB, free: 5.988 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.074e-05/0.02456, allocations: 4 kB / 268.8 MB, free: 5.984 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.003003/0.02757, allocations: 3.176 MB / 271.9 MB, free: 2.75 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.39e-05/0.0276, allocations: 12.03 kB / 271.9 MB, free: 2.738 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001964/0.02957, allocations: 0.7928 MB / 272.7 MB, free: 1.945 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001095/0.03066, allocations: 0.9736 MB / 273.7 MB, free: 0.9414 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.189e-05/0.03072, allocations: 115.2 kB / 273.8 MB, free: 0.8281 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001844/0.03091, allocations: 155.8 kB / 274 MB, free: 0.6758 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1063/0.1372, allocations: 3.097 MB / 277.1 MB, free: 11.61 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.09e-05/0.1373, allocations: 35.64 kB / 277.1 MB, free: 11.61 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002024/0.1375, allocations: 78.16 kB / 277.2 MB, free: 11.61 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001251/0.1387, allocations: 1.218 MB / 278.4 MB, free: 11.6 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003341/0.1421, allocations: 1.6 MB / 280 MB, free: 11.52 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01414/0.1562, allocations: 21.09 MB / 301.1 MB, free: 11.99 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001274/0.1575, allocations: 0.7332 MB / 301.8 MB, free: 11.73 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002026/0.1577, allocations: 169.9 kB / 302 MB, free: 11.69 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002099/0.1598, allocations: 1.758 MB / 303.7 MB, free: 10.66 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.635e-05/0.1598, allocations: 43.75 kB / 303.8 MB, free: 10.62 MB / 282.7 MB Notification: Performance of pre-optimization done (n=74): time 2.685e-06/0.1598, allocations: 0 / 303.8 MB, free: 10.62 MB / 282.7 MB Notification: Performance of matching and sorting (n=75): time 0.003288/0.1631, allocations: 1.668 MB / 305.5 MB, free: 10.06 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.768e-05/0.1631, allocations: 147.9 kB / 305.6 MB, free: 9.898 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001646/0.1648, allocations: 2.259 MB / 307.9 MB, free: 9.215 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.533e-05/0.1648, allocations: 29.7 kB / 307.9 MB, free: 9.18 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009348/0.1658, allocations: 2.145 MB / 310 MB, free: 7.586 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002652/0.166, allocations: 344.6 kB / 310.4 MB, free: 7.363 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005708/0.1666, allocations: 0.8176 MB / 311.2 MB, free: 6.996 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001084/0.1667, allocations: 358.5 kB / 311.5 MB, free: 6.68 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006798/0.1674, allocations: 0.4934 MB / 312 MB, free: 6.5 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001835/0.1692, allocations: 3.319 MB / 315.3 MB, free: 2.262 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002858/0.1721, allocations: 4.228 MB / 319.6 MB, free: 12.95 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.9e-05/0.1721, allocations: 28 kB / 319.6 MB, free: 12.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=562) (initialization): time 0.003299/0.1754, allocations: 2.971 MB / 322.6 MB, free: 9.945 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.767e-05/0.1755, allocations: 52 kB / 322.6 MB, free: 9.895 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.859e-05/0.1756, allocations: 104 kB / 322.7 MB, free: 9.793 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002558/0.1758, allocations: 180.1 kB / 322.9 MB, free: 9.613 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001588/0.1774, allocations: 1.076 MB / 324 MB, free: 8.535 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001018/0.1784, allocations: 1.45 MB / 325.4 MB, free: 7 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001508/0.1799, allocations: 199.8 kB / 325.6 MB, free: 6.805 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002006/0.1801, allocations: 248 kB / 325.9 MB, free: 6.562 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.0007291/0.1809, allocations: 491.6 kB / 326.3 MB, free: 6.074 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002353/0.1811, allocations: 119.8 kB / 326.5 MB, free: 5.957 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004408/0.1815, allocations: 344 kB / 326.8 MB, free: 5.605 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.128e-05/0.1815, allocations: 8 kB / 326.8 MB, free: 5.598 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.1816, allocations: 4 kB / 326.8 MB, free: 5.594 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.822e-06/0.1816, allocations: 3.984 kB / 326.8 MB, free: 5.59 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002454/0.184, allocations: 1.908 MB / 328.7 MB, free: 3.949 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.751e-06/0.184, allocations: 4 kB / 328.7 MB, free: 3.945 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002325/0.1843, allocations: 91.84 kB / 328.8 MB, free: 3.855 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002176/0.1845, allocations: 197.1 kB / 329 MB, free: 3.664 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001344/0.1846, allocations: 43.8 kB / 329.1 MB, free: 3.617 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.138e-05/0.1846, allocations: 15.94 kB / 329.1 MB, free: 3.602 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008516/0.1855, allocations: 1.385 MB / 330.5 MB, free: 2.129 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.091e-06/0.1855, allocations: 6.188 kB / 330.5 MB, free: 2.125 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007976/0.1863, allocations: 1.038 MB / 331.5 MB, free: 1.062 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001343/0.1864, allocations: 14.66 kB / 331.5 MB, free: 1.051 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003296/0.1868, allocations: 12 kB / 331.5 MB, free: 1.039 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.888e-05/0.1868, allocations: 43.86 kB / 331.6 MB, free: 0.9961 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.941e-05/0.1868, allocations: 20 kB / 331.6 MB, free: 0.9766 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006083/0.1874, allocations: 0.7744 MB / 332.4 MB, free: 288 kB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1874, allocations: 0 / 332.4 MB, free: 288 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.002049/0.1895, allocations: 0.6055 MB / 333 MB, free: 15.67 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.0002656/0.1898, allocations: 139.4 kB / 333.1 MB, free: 15.54 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001941/0.1917, allocations: 1.704 MB / 334.8 MB, free: 13.88 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 0.000104/0.1918, allocations: 63.94 kB / 334.9 MB, free: 13.81 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002841/0.1921, allocations: 278.7 kB / 335.1 MB, free: 13.53 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001238/0.1933, allocations: 480.2 kB / 335.6 MB, free: 13.06 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006539/0.1999, allocations: 4.259 MB / 339.9 MB, free: 8.746 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006119/0.2005, allocations: 0.7124 MB / 340.6 MB, free: 8.004 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0007834/0.2013, allocations: 324.9 kB / 340.9 MB, free: 7.684 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004081/0.2017, allocations: 337.3 kB / 341.2 MB, free: 7.355 MB / 314.7 MB Notification: Performance of SimCode: time 2.084e-06/0.2017, allocations: 4 kB / 341.2 MB, free: 7.352 MB / 314.7 MB Notification: Performance of Templates: time 0.02553/0.2272, allocations: 15.94 MB / 357.2 MB, free: 7.648 MB / 330.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 -ignoreHideResult -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.251956838183105]