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.001434/0.001434, allocations: 91.5 kB / 21.19 MB, free: 3.375 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.001684/0.001684, allocations: 156.5 kB / 24.55 MB, free: 20 kB / 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.9638/0.9638, allocations: 177 MB / 204.8 MB, free: 5.59 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 2.214e-06/2.214e-06, allocations: 3.938 kB / 272.9 MB, free: 1.453 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.041e-05/3.262e-05, allocations: 2.312 kB / 272.9 MB, free: 1.449 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.006752/0.006784, allocations: 6.965 MB / 279.9 MB, free: 10.45 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004622/0.01141, allocations: 3.111 MB / 283 MB, free: 7.332 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007197/0.01213, allocations: 35.88 kB / 283 MB, free: 7.297 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001278/0.0134, allocations: 0.8325 MB / 283.9 MB, free: 6.461 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002245/0.01565, allocations: 1.381 MB / 285.2 MB, free: 5.074 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008211/0.01647, allocations: 0.5338 MB / 285.8 MB, free: 4.539 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002798/0.01927, allocations: 2.912 MB / 288.7 MB, free: 1.621 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001959/0.02123, allocations: 1.375 MB / 290.1 MB, free: 232 kB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1086/0.1299, allocations: 1.213 MB / 291.3 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00183/0.1317, allocations: 1.277 MB / 292.6 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004813/0.1322, allocations: 140.8 kB / 292.7 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001349/0.1335, allocations: 0.8044 MB / 293.5 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008381/0.1344, allocations: 1.058 MB / 294.6 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007295/0.1351, allocations: 0.6273 MB / 295.2 MB, free: 15.26 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003121/0.1382, allocations: 2.732 MB / 297.9 MB, free: 14.85 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1382, allocations: 0.7188 kB / 297.9 MB, free: 14.85 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1382, allocations: 0.5938 kB / 297.9 MB, free: 14.85 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.07e-05/0.1383, allocations: 0 / 297.9 MB, free: 14.85 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.0039/0.1422, allocations: 3.187 MB / 301.1 MB, free: 13.5 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.1422, allocations: 13.58 kB / 301.1 MB, free: 13.49 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003591/0.1458, allocations: 1.983 MB / 303.1 MB, free: 13.3 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001406/0.1472, allocations: 1.179 MB / 304.3 MB, free: 12.97 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.75e-05/0.1473, allocations: 119.8 kB / 304.4 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001985/0.1475, allocations: 156.5 kB / 304.6 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003601/0.1511, allocations: 3.878 MB / 308.4 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.263e-05/0.1511, allocations: 27.28 kB / 308.5 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001512/0.1513, allocations: 80.62 kB / 308.5 MB, free: 10.58 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001076/0.1523, allocations: 1.374 MB / 309.9 MB, free: 10.06 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003163/0.1555, allocations: 2.006 MB / 311.9 MB, free: 9 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01878/0.1743, allocations: 30.6 MB / 342.5 MB, free: 9.637 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00212/0.1764, allocations: 0.809 MB / 343.3 MB, free: 8.789 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003597/0.1768, allocations: 250.2 kB / 343.6 MB, free: 8.531 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0029/0.1797, allocations: 2.173 MB / 345.7 MB, free: 6.348 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.094e-05/0.1797, allocations: 43.92 kB / 345.8 MB, free: 6.297 MB / 298.7 MB Notification: Performance of pre-optimization done (n=74): time 3.727e-06/0.1797, allocations: 0 / 345.8 MB, free: 6.297 MB / 298.7 MB Notification: Performance of matching and sorting (n=75): time 0.006132/0.1858, allocations: 3.646 MB / 349.4 MB, free: 2.609 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.915e-05/0.1859, allocations: 139.1 kB / 349.6 MB, free: 2.445 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003302/0.1892, allocations: 2.559 MB / 352.1 MB, free: 15.85 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001241/0.1893, allocations: 37.7 kB / 352.2 MB, free: 15.8 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001277/0.1906, allocations: 2.365 MB / 354.5 MB, free: 13.45 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004262/0.191, allocations: 368.2 kB / 354.9 MB, free: 13.1 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008463/0.1919, allocations: 0.951 MB / 355.8 MB, free: 12.13 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.192, allocations: 0.5277 MB / 356.4 MB, free: 11.6 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006943/0.1927, allocations: 392.3 kB / 356.8 MB, free: 11.21 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002846/0.1955, allocations: 4.752 MB / 361.5 MB, free: 4.453 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004063/0.1996, allocations: 5.663 MB / 367.2 MB, free: 12.79 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.845e-05/0.1997, allocations: 35.62 kB / 367.2 MB, free: 12.76 MB / 330.7 MB Notification: Performance of matching and sorting (n=562) (initialization): time 0.005125/0.2048, allocations: 3.708 MB / 370.9 MB, free: 9.039 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.335e-05/0.2049, allocations: 48 kB / 371 MB, free: 8.992 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.513e-05/0.205, allocations: 104 kB / 371.1 MB, free: 8.891 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003165/0.2053, allocations: 189.9 kB / 371.2 MB, free: 8.703 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001746/0.207, allocations: 0.9903 MB / 372.2 MB, free: 7.711 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001329/0.2083, allocations: 2.013 MB / 374.2 MB, free: 5.57 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001905/0.2102, allocations: 271.6 kB / 374.5 MB, free: 5.305 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002894/0.2105, allocations: 276.6 kB / 374.8 MB, free: 5.035 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 (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 (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.001348/0.2119, allocations: 0.5223 MB / 375.3 MB, free: 4.504 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003814/0.2123, allocations: 226.6 kB / 375.5 MB, free: 4.281 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006619/0.2129, allocations: 395.3 kB / 375.9 MB, free: 3.883 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.725e-05/0.2129, allocations: 8 kB / 375.9 MB, free: 3.875 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.213, allocations: 4 kB / 375.9 MB, free: 3.871 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.163e-06/0.213, allocations: 0 / 375.9 MB, free: 3.871 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003879/0.2168, allocations: 2.281 MB / 378.2 MB, free: 1.527 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.652e-06/0.2168, allocations: 0 / 378.2 MB, free: 1.527 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003291/0.2172, allocations: 99.81 kB / 378.3 MB, free: 1.43 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001714/0.2173, allocations: 47.8 kB / 378.3 MB, free: 1.379 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.057e-05/0.2174, allocations: 12 kB / 378.4 MB, free: 1.367 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001095/0.2185, allocations: 1.814 MB / 380.2 MB, free: 15.44 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.2185, allocations: 4 kB / 380.2 MB, free: 15.43 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001345/0.2198, allocations: 1.291 MB / 381.5 MB, free: 14.09 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003015/0.2201, allocations: 206.4 kB / 381.7 MB, free: 13.89 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001689/0.2203, allocations: 15.98 kB / 381.7 MB, free: 13.88 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005816/0.2209, allocations: 59.91 kB / 381.7 MB, free: 13.82 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.132e-05/0.221, allocations: 39.88 kB / 381.8 MB, free: 13.78 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.458e-05/0.221, allocations: 24 kB / 381.8 MB, free: 13.75 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001664/0.2227, allocations: 1.072 MB / 382.9 MB, free: 12.67 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2227, allocations: 0 / 382.9 MB, free: 12.67 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0028/0.2255, allocations: 0.6044 MB / 383.5 MB, free: 12.07 MB / 346.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.0003155/0.2258, allocations: 166 kB / 383.6 MB, free: 11.9 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002815/0.2286, allocations: 1.964 MB / 385.6 MB, free: 9.926 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.2286, allocations: 0 / 385.6 MB, free: 9.926 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000422/0.229, allocations: 380.7 kB / 386 MB, free: 9.535 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001088/0.2301, allocations: 236.7 kB / 386.2 MB, free: 9.312 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006149/0.2363, allocations: 4.21 MB / 390.4 MB, free: 5.016 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006916/0.237, allocations: 0.7119 MB / 391.1 MB, free: 4.277 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.002047/0.239, allocations: 1.181 MB / 392.3 MB, free: 3.094 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002682/0.2393, allocations: 140.5 kB / 392.5 MB, free: 2.957 MB / 346.7 MB Notification: Performance of SimCode: time 1.173e-06/0.2393, allocations: 4 kB / 392.5 MB, free: 2.953 MB / 346.7 MB Notification: Performance of Templates: time 0.03403/0.2733, allocations: 14.46 MB / 406.9 MB, free: 4.879 MB / 362.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.357435964047909]