Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.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.001053/0.001053, allocations: 84.34 kB / 22.21 MB, free: 2.285 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.001342/0.001342, allocations: 166.8 kB / 25.61 MB, free: 8.582 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.951/0.951, allocations: 177 MB / 205.9 MB, free: 4.457 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.DoublePendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 0 / 274.1 MB, free: 4.367 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.718e-05/2.891e-05, allocations: 6.453 kB / 274.1 MB, free: 4.363 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01184/0.01187, allocations: 9.85 MB / 284 MB, free: 10.48 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00938/0.02125, allocations: 3.876 MB / 287.9 MB, free: 6.602 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002399/0.02365, allocations: 79.56 kB / 287.9 MB, free: 6.523 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004292/0.02794, allocations: 2.332 MB / 290.3 MB, free: 4.184 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005478/0.03342, allocations: 1.948 MB / 292.2 MB, free: 2.227 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001938/0.03536, allocations: 0.8342 MB / 293 MB, free: 1.391 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008919/0.04427, allocations: 6.006 MB / 299.1 MB, free: 11.38 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004866/0.04914, allocations: 3.01 MB / 302.1 MB, free: 8.309 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007216/0.05636, allocations: 3.291 MB / 305.4 MB, free: 5.012 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004337/0.06069, allocations: 2.366 MB / 307.7 MB, free: 2.641 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001164/0.06186, allocations: 312 kB / 308 MB, free: 2.336 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002802/0.06466, allocations: 1.135 MB / 309.2 MB, free: 1.199 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002365/0.06702, allocations: 1.983 MB / 311.1 MB, free: 15.21 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001953/0.06898, allocations: 1.215 MB / 312.4 MB, free: 13.99 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005233/0.07421, allocations: 4.504 MB / 316.9 MB, free: 9.473 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.07421, allocations: 0 / 316.9 MB, free: 9.473 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.07421, allocations: 0 / 316.9 MB, free: 9.473 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001258/0.07434, allocations: 0 / 316.9 MB, free: 9.473 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.006237/0.08058, allocations: 4.88 MB / 321.7 MB, free: 4.523 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/0.08061, allocations: 12.02 kB / 321.7 MB, free: 4.512 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01132/0.09193, allocations: 2.589 MB / 324.3 MB, free: 1.918 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003524/0.09546, allocations: 2.259 MB / 326.6 MB, free: 15.61 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001112/0.09557, allocations: 197.4 kB / 326.8 MB, free: 15.41 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003878/0.09596, allocations: 279.7 kB / 327.1 MB, free: 15.14 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00554/0.1015, allocations: 4.951 MB / 332 MB, free: 9.285 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-05/0.1016, allocations: 39.7 kB / 332.1 MB, free: 9.246 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002343/0.1018, allocations: 127.9 kB / 332.2 MB, free: 9.121 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001278/0.1031, allocations: 1.517 MB / 333.7 MB, free: 7.605 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004243/0.1073, allocations: 2.17 MB / 335.9 MB, free: 5.43 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1528/0.2601, allocations: 38.94 MB / 374.8 MB, free: 48.66 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004164/0.2643, allocations: 1.253 MB / 376.1 MB, free: 48.5 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006093/0.2649, allocations: 388.4 kB / 376.4 MB, free: 48.46 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005131/0.27, allocations: 3.456 MB / 379.9 MB, free: 47.56 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.506e-05/0.2701, allocations: 59.27 kB / 380 MB, free: 47.52 MB / 330.7 MB Notification: Performance of pre-optimization done (n=121): time 3.426e-06/0.2701, allocations: 0.875 kB / 380 MB, free: 47.52 MB / 330.7 MB Notification: Performance of matching and sorting (n=132): time 0.01863/0.2887, allocations: 5.96 MB / 385.9 MB, free: 46.65 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.411e-05/0.2887, allocations: 246.8 kB / 386.2 MB, free: 46.37 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003547/0.2923, allocations: 3.487 MB / 389.6 MB, free: 45.71 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.145e-05/0.2924, allocations: 41.7 kB / 389.7 MB, free: 45.68 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00139/0.2938, allocations: 3.192 MB / 392.9 MB, free: 43.44 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004149/0.2942, allocations: 0.5754 MB / 393.5 MB, free: 43.01 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00113/0.2953, allocations: 1.242 MB / 394.7 MB, free: 42.09 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.714e-05/0.2953, allocations: 476.8 kB / 395.2 MB, free: 41.62 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009432/0.2963, allocations: 0.5143 MB / 395.7 MB, free: 41.1 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002369/0.2987, allocations: 5.744 MB / 401.4 MB, free: 33.04 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00397/0.3026, allocations: 6.705 MB / 408.1 MB, free: 24.49 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.304e-05/0.3027, allocations: 36 kB / 408.2 MB, free: 24.46 MB / 330.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.005389/0.3081, allocations: 4.506 MB / 412.7 MB, free: 19.95 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.629e-05/0.3081, allocations: 59.98 kB / 412.7 MB, free: 19.89 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.114e-05/0.3082, allocations: 124 kB / 412.8 MB, free: 19.77 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008127/0.309, allocations: 397.5 kB / 413.2 MB, free: 19.38 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001733/0.3107, allocations: 1.228 MB / 414.5 MB, free: 18.15 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001767/0.3125, allocations: 2.766 MB / 417.2 MB, free: 15.29 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002437/0.3149, allocations: 243.7 kB / 417.5 MB, free: 15.05 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000213/0.3152, allocations: 292 kB / 417.8 MB, free: 14.77 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 551 * Number of states: 0 () * Number of discrete variables: 30 (boxBody2.color[3],boxBody2.color[2],boxBody2.color[1],boxBody2.body.sphereColor[3],boxBody2.body.sphereColor[2],boxBody2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],boxBody1.color[3],boxBody1.color[2],boxBody1.color[1],boxBody1.body.sphereColor[3],boxBody1.body.sphereColor[2],boxBody1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.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 (688): * Single equations (assignments): 684 * 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,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008994/0.3161, allocations: 0.608 MB / 418.4 MB, free: 14.14 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003572/0.3164, allocations: 357.9 kB / 418.7 MB, free: 13.79 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001104/0.3175, allocations: 0.878 MB / 419.6 MB, free: 12.9 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.572e-05/0.3175, allocations: 16 kB / 419.6 MB, free: 12.88 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/0.3175, allocations: 0 / 419.6 MB, free: 12.88 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.568e-06/0.3175, allocations: 14.88 kB / 419.6 MB, free: 12.87 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004902/0.3224, allocations: 4.166 MB / 423.8 MB, free: 8.559 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.386e-06/0.3225, allocations: 8 kB / 423.8 MB, free: 8.551 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004381/0.3229, allocations: 176.5 kB / 424 MB, free: 8.379 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005937/0.3235, allocations: 235.4 kB / 424.2 MB, free: 8.145 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.823e-05/0.3235, allocations: 35.98 kB / 424.2 MB, free: 8.109 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001365/0.3249, allocations: 2.468 MB / 426.7 MB, free: 5.543 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.207e-06/0.3249, allocations: 11.94 kB / 426.7 MB, free: 5.531 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001799/0.3267, allocations: 1.98 MB / 428.7 MB, free: 3.414 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004437/0.3272, allocations: 325.7 kB / 429 MB, free: 3.094 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002235/0.3274, allocations: 31.98 kB / 429 MB, free: 3.062 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006619/0.328, allocations: 32 kB / 429.1 MB, free: 3.031 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001141/0.3282, allocations: 96.16 kB / 429.2 MB, free: 2.934 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.852e-05/0.3282, allocations: 39.92 kB / 429.2 MB, free: 2.895 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001189/0.3294, allocations: 1.437 MB / 430.6 MB, free: 1.469 MB / 330.7 MB Notification: Performance of sort global known variables: time 2e-07/0.3294, allocations: 0 / 430.6 MB, free: 1.469 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002883/0.3323, allocations: 0.9686 MB / 431.6 MB, free: 0.5 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * Number of states: 4 (revolute1.w,damper.phi_rel,revolute2.phi,revolute2.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 (105): * Single equations (assignments): 101 * 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,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.0002874/0.3326, allocations: 176.6 kB / 431.8 MB, free: 328 kB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00307/0.3356, allocations: 2.483 MB / 434.3 MB, free: 13.84 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.246e-06/0.3356, allocations: 0.6875 kB / 434.3 MB, free: 13.84 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000609/0.3362, allocations: 0.5916 MB / 434.9 MB, free: 13.23 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001674/0.3379, allocations: 429.4 kB / 435.3 MB, free: 12.84 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008473/0.3464, allocations: 6.862 MB / 442.1 MB, free: 5.809 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009871/0.3474, allocations: 1.133 MB / 443.3 MB, free: 4.656 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001262/0.3486, allocations: 469.8 kB / 443.7 MB, free: 4.203 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007879/0.3494, allocations: 0.5645 MB / 444.3 MB, free: 3.637 MB / 346.7 MB Notification: Performance of SimCode: time 1.012e-06/0.3494, allocations: 0 / 444.3 MB, free: 3.637 MB / 346.7 MB Notification: Performance of Templates: time 0.04606/0.3955, allocations: 30.68 MB / 475 MB, free: 5.418 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.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.996137211099267]