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.002006/0.002006, allocations: 86.56 kB / 20.68 MB, free: 1.035 MB / 14.72 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.002172/0.002172, allocations: 159 kB / 23.95 MB, free: 4.168 MB / 14.72 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 1.521/1.521, allocations: 177 MB / 204.1 MB, free: 9.172 MB / 190.1 MB " [Timeout remaining time 178] 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.774e-06/1.774e-06, allocations: 1.062 kB / 325 MB, free: 500 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.123e-05/2.3e-05, allocations: 2.281 kB / 325 MB, free: 496 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01158/0.0116, allocations: 9.139 MB / 334.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008182/0.01979, allocations: 3.802 MB / 338 MB, free: 7.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001665/0.02145, allocations: 79.91 kB / 338 MB, free: 7.453 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004786/0.02624, allocations: 2.257 MB / 340.3 MB, free: 5.766 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004897/0.03113, allocations: 1.948 MB / 342.2 MB, free: 3.805 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001848/0.03298, allocations: 0.8147 MB / 343.1 MB, free: 2.988 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007747/0.04073, allocations: 5.994 MB / 349.1 MB, free: 12.98 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00425/0.04498, allocations: 2.903 MB / 352 MB, free: 10.03 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003917/0.0489, allocations: 2.3 MB / 354.3 MB, free: 7.727 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003527/0.05242, allocations: 2.358 MB / 356.6 MB, free: 5.363 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005836/0.05301, allocations: 308 kB / 356.9 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002063/0.05507, allocations: 1.131 MB / 358 MB, free: 3.93 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001915/0.05698, allocations: 1.967 MB / 360 MB, free: 1.957 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001713/0.0587, allocations: 1.211 MB / 361.2 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007811/0.06651, allocations: 6.78 MB / 368 MB, free: 9.941 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.289e-06/0.06651, allocations: 0 / 368 MB, free: 9.941 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.06651, allocations: 0 / 368 MB, free: 9.941 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001134/0.06663, allocations: 0 / 368 MB, free: 9.941 MB / 334.1 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.01039/0.07702, allocations: 4.783 MB / 372.8 MB, free: 5.098 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.07706, allocations: 15.98 kB / 372.8 MB, free: 5.082 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0294/0.1065, allocations: 3.197 MB / 376 MB, free: 1.879 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007986/0.1144, allocations: 3.205 MB / 379.2 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001751/0.1146, allocations: 197.4 kB / 379.4 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006208/0.1152, allocations: 271.7 kB / 379.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01443/0.1297, allocations: 8.967 MB / 388.6 MB, free: 4.512 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001177/0.1298, allocations: 43.69 kB / 388.7 MB, free: 4.469 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003735/0.1302, allocations: 127.9 kB / 388.8 MB, free: 4.344 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00336/0.1335, allocations: 1.77 MB / 390.6 MB, free: 2.574 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0145/0.148, allocations: 7.764 MB / 398.3 MB, free: 10.8 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04218/0.1902, allocations: 33.68 MB / 432 MB, free: 8.164 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008588/0.1988, allocations: 3.327 MB / 435.3 MB, free: 4.801 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002731/0.2015, allocations: 2.023 MB / 437.4 MB, free: 2.773 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003002/0.2018, allocations: 92.81 kB / 437.5 MB, free: 2.684 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5e-05/0.2019, allocations: 55.5 kB / 437.5 MB, free: 2.617 MB / 398.1 MB Notification: Performance of pre-optimization done (n=160): time 4.138e-06/0.2019, allocations: 0 / 437.5 MB, free: 2.617 MB / 398.1 MB Notification: Performance of matching and sorting (n=190): time 0.0972/0.2991, allocations: 22.02 MB / 459.5 MB, free: 12.55 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000181/0.2993, allocations: 256.6 kB / 459.8 MB, free: 12.24 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005732/0.305, allocations: 3.874 MB / 463.7 MB, free: 8.363 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003704/0.3054, allocations: 53.7 kB / 463.7 MB, free: 8.305 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002458/0.3078, allocations: 2.874 MB / 466.6 MB, free: 5.402 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001026/0.3088, allocations: 0.7481 MB / 467.3 MB, free: 4.648 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001759/0.3106, allocations: 1.163 MB / 468.5 MB, free: 3.473 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.3108, allocations: 313.1 kB / 468.8 MB, free: 3.164 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003851/0.3146, allocations: 2.381 MB / 471.2 MB, free: 0.7773 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1639/0.4785, allocations: 5.741 MB / 476.9 MB, free: 121.4 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00956/0.488, allocations: 8.573 MB / 485.5 MB, free: 115 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001903/0.4882, allocations: 32.66 kB / 485.5 MB, free: 115 MB / 430.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01727/0.5055, allocations: 9.588 MB / 495.1 MB, free: 111.8 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001026/0.5056, allocations: 50.88 kB / 495.2 MB, free: 111.8 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001412/0.5057, allocations: 113 kB / 495.3 MB, free: 111.8 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005124/0.5109, allocations: 2.019 MB / 497.3 MB, free: 111.5 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00388/0.5147, allocations: 1.281 MB / 498.6 MB, free: 111.3 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01248/0.5272, allocations: 11.16 MB / 0.4978 GB, free: 102.3 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004598/0.5318, allocations: 404.4 kB / 0.4982 GB, free: 101.9 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007872/0.5326, allocations: 332 kB / 0.4985 GB, free: 101.6 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 515 * 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 {(3,35,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002848/0.5354, allocations: 1.941 MB / 0.5004 GB, free: 99.73 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007128/0.5362, allocations: 329.1 kB / 0.5007 GB, free: 99.59 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008287/0.5444, allocations: 4.831 MB / 0.5054 GB, free: 94.74 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.444e-05/0.5445, allocations: 20 kB / 0.5054 GB, free: 94.72 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.298e-05/0.5445, allocations: 11.94 kB / 0.5054 GB, free: 94.71 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.598e-05/0.5445, allocations: 7.969 kB / 0.5055 GB, free: 94.7 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0143/0.5588, allocations: 9.057 MB / 0.5143 GB, free: 85.69 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.126e-05/0.5588, allocations: 0 / 0.5143 GB, free: 85.69 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00125/0.5601, allocations: 264.5 kB / 0.5146 GB, free: 85.43 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004789/0.5648, allocations: 1.854 MB / 0.5164 GB, free: 83.57 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001672/0.565, allocations: 30.72 kB / 0.5164 GB, free: 83.55 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01125/0.5763, allocations: 10.22 MB / 0.5264 GB, free: 73.3 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.5763, allocations: 64 / 0.5264 GB, free: 73.3 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01087/0.5871, allocations: 7.914 MB / 0.5341 GB, free: 65.54 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009712/0.5881, allocations: 354.2 kB / 0.5344 GB, free: 65.2 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004167/0.5885, allocations: 32 kB / 0.5345 GB, free: 65.17 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001835/0.5904, allocations: 195.7 kB / 0.5347 GB, free: 64.98 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004019/0.5908, allocations: 121 kB / 0.5348 GB, free: 64.86 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001481/0.5909, allocations: 48 kB / 0.5348 GB, free: 64.82 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002708/0.5936, allocations: 2.317 MB / 0.5371 GB, free: 62.51 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5936, allocations: 0 / 0.5371 GB, free: 62.51 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004788/0.5984, allocations: 1.19 MB / 0.5382 GB, free: 61.32 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (revolute1.phi,revolute1.w,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 (136): * Single equations (assignments): 132 * 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,33,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004474/0.5989, allocations: 186.5 kB / 0.5384 GB, free: 61.14 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007281/0.6061, allocations: 5.562 MB / 0.5439 GB, free: 55.59 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.274e-05/0.6061, allocations: 0 / 0.5439 GB, free: 55.59 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002354/0.6085, allocations: 1.943 MB / 0.5457 GB, free: 53.64 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002763/0.6113, allocations: 423.3 kB / 0.5462 GB, free: 53.24 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01177/0.623, allocations: 9.517 MB / 0.5554 GB, free: 43.71 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0023/0.6253, allocations: 2.545 MB / 0.5579 GB, free: 41.14 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003209/0.6285, allocations: 1.793 MB / 0.5597 GB, free: 39.34 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006941/0.6292, allocations: 228.4 kB / 0.5599 GB, free: 39.12 MB / 430.1 MB Notification: Performance of SimCode: time 1.082e-06/0.6292, allocations: 0 / 0.5599 GB, free: 39.12 MB / 430.1 MB Notification: Performance of Templates: time 0.06076/0.69, allocations: 41.81 MB / 0.6007 GB, free: 13.75 MB / 446.1 MB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.471935737878084]