Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.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.0009377/0.0009377, allocations: 82.59 kB / 21.43 MB, free: 3.07 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.001018/0.001018, allocations: 166.1 kB / 24.82 MB, free: 9.258 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 1.015/1.015, allocations: 177 MB / 205.1 MB, free: 5.488 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.FreeBody,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body.body.frame_a.r_0.[0-9,]+.|body.body.w_a.[0-9,]+.|body.v_0.[0-9,]+.",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body.body.frame_a.r_0.[0-9,]+.|body.body.w_a.[0-9,]+.|body.v_0.[0-9,]+.",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.024e-06/2.024e-06, allocations: 0 / 273.3 MB, free: 1.227 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.397e-05/3.6e-05, allocations: 5.266 kB / 273.3 MB, free: 1.223 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.01286/0.01289, allocations: 9.841 MB / 283.2 MB, free: 7.332 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007778/0.02067, allocations: 3.73 MB / 286.9 MB, free: 3.59 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001854/0.02252, allocations: 71.62 kB / 287 MB, free: 3.52 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003085/0.02561, allocations: 2.437 MB / 289.4 MB, free: 1.074 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1425/0.1681, allocations: 1.764 MB / 291.2 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001368/0.1694, allocations: 0.6735 MB / 291.9 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004771/0.1742, allocations: 3.877 MB / 295.7 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003748/0.1779, allocations: 2.78 MB / 298.5 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0039/0.1818, allocations: 2.09 MB / 300.6 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002948/0.1848, allocations: 1.992 MB / 302.6 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009036/0.1857, allocations: 295.9 kB / 302.9 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001939/0.1876, allocations: 1.086 MB / 304 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00112/0.1888, allocations: 1.811 MB / 305.8 MB, free: 12.02 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00155/0.1903, allocations: 1.135 MB / 306.9 MB, free: 11.49 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003658/0.194, allocations: 4.038 MB / 311 MB, free: 9.266 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.194, allocations: 0 / 311 MB, free: 9.266 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.194, allocations: 0 / 311 MB, free: 9.266 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001462/0.1941, allocations: 3.938 kB / 311 MB, free: 9.262 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: 1330 * Number of variables: 1330 Notification: Performance of Generate backend data structure: time 0.004889/0.199, allocations: 4.443 MB / 315.4 MB, free: 5.102 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.1991, allocations: 15.98 kB / 315.4 MB, free: 5.086 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002945/0.202, allocations: 1.395 MB / 316.8 MB, free: 3.723 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001775/0.2038, allocations: 1.712 MB / 318.5 MB, free: 2.113 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.745e-05/0.2038, allocations: 215.4 kB / 318.7 MB, free: 1.934 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000438/0.2043, allocations: 364.5 kB / 319.1 MB, free: 1.617 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005185/0.2095, allocations: 5.024 MB / 324.1 MB, free: 12.12 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.876e-05/0.2095, allocations: 38.47 kB / 324.2 MB, free: 12.1 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002253/0.2098, allocations: 135.5 kB / 324.3 MB, free: 12 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001216/0.211, allocations: 1.48 MB / 325.8 MB, free: 10.55 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004293/0.2153, allocations: 2.421 MB / 328.2 MB, free: 8.312 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02829/0.2436, allocations: 38.28 MB / 366.5 MB, free: 1.949 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004001/0.2476, allocations: 1.767 MB / 368.2 MB, free: 184 kB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005349/0.2481, allocations: 448 kB / 368.7 MB, free: 15.73 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00482/0.2529, allocations: 3.953 MB / 372.6 MB, free: 11.82 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.608e-05/0.253, allocations: 53.33 kB / 372.7 MB, free: 11.76 MB / 330.7 MB Notification: Performance of pre-optimization done (n=132): time 3.627e-06/0.253, allocations: 0 / 372.7 MB, free: 11.76 MB / 330.7 MB Notification: Performance of matching and sorting (n=139): time 0.01084/0.2638, allocations: 4.794 MB / 377.5 MB, free: 6.945 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0008705/0.2647, allocations: 1.996 MB / 379.5 MB, free: 4.809 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002734/0.2674, allocations: 3.14 MB / 382.6 MB, free: 2.066 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.048e-05/0.2675, allocations: 41.7 kB / 382.6 MB, free: 2.02 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001663/0.2692, allocations: 3.077 MB / 385.7 MB, free: 14.91 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004911/0.2697, allocations: 0.6166 MB / 386.3 MB, free: 14.29 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009854/0.2706, allocations: 1.211 MB / 387.6 MB, free: 13.07 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.992e-05/0.2707, allocations: 484.7 kB / 388 MB, free: 12.59 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000942/0.2717, allocations: 0.5787 MB / 388.6 MB, free: 12.01 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003181/0.2749, allocations: 5.702 MB / 394.3 MB, free: 3.996 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004973/0.2798, allocations: 6.962 MB / 401.3 MB, free: 10.73 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.555e-05/0.2799, allocations: 36 kB / 401.3 MB, free: 10.7 MB / 362.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.007981/0.2879, allocations: 4.888 MB / 406.2 MB, free: 5.793 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.989e-05/0.2879, allocations: 56 kB / 406.2 MB, free: 5.738 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003389/0.2913, allocations: 1.094 MB / 407.3 MB, free: 4.625 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003437/0.2947, allocations: 0.5683 MB / 407.9 MB, free: 4.039 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002715/0.2975, allocations: 1.212 MB / 409.1 MB, free: 2.824 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003576/0.301, allocations: 4.278 MB / 413.4 MB, free: 14.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002692/0.3037, allocations: 251.7 kB / 413.6 MB, free: 14.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003737/0.3041, allocations: 300 kB / 413.9 MB, free: 13.78 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 557 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[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 (676): * Single equations (assignments): 667 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001206/0.3053, allocations: 0.6109 MB / 414.5 MB, free: 13.16 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004156/0.3057, allocations: 322.1 kB / 414.9 MB, free: 12.84 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003252/0.306, allocations: 331.3 kB / 415.2 MB, free: 12.51 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001756/0.3078, allocations: 0.8089 MB / 416 MB, free: 11.67 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.655e-06/0.3078, allocations: 4 kB / 416 MB, free: 11.67 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.228e-06/0.3078, allocations: 7.969 kB / 416 MB, free: 11.66 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006056/0.3139, allocations: 4.381 MB / 420.4 MB, free: 7.172 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.3139, allocations: 0 / 420.4 MB, free: 7.172 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005203/0.3144, allocations: 179.8 kB / 420.6 MB, free: 6.996 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001093/0.3155, allocations: 374 kB / 420.9 MB, free: 6.613 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.756e-05/0.3156, allocations: 39.97 kB / 421 MB, free: 6.574 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00272/0.3183, allocations: 3.982 MB / 424.9 MB, free: 2.367 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007678/0.3191, allocations: 1.871 MB / 426.8 MB, free: 380 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003086/0.3222, allocations: 2.164 MB / 429 MB, free: 14.16 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006806/0.3228, allocations: 273.9 kB / 429.3 MB, free: 13.89 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002035/0.3231, allocations: 24 kB / 429.3 MB, free: 13.86 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006027/0.3237, allocations: 31.98 kB / 429.3 MB, free: 13.83 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001709/0.3238, allocations: 92.36 kB / 429.4 MB, free: 13.74 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.778e-05/0.3239, allocations: 43.95 kB / 429.4 MB, free: 13.7 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001555/0.3254, allocations: 1.24 MB / 430.7 MB, free: 12.46 MB / 394.7 MB Notification: Performance of sort global known variables: time 7e-08/0.3254, allocations: 0 / 430.7 MB, free: 12.46 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003267/0.3287, allocations: 1.004 MB / 431.7 MB, free: 11.46 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.v_0[1],body.v_0[2],body.v_0[3],body.body.frame_a.r_0[1],body.body.frame_a.r_0[2],body.body.frame_a.r_0[3],body.body.w_a[1],body.body.w_a[2],body.body.w_a[3]) * 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): 98 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003703/0.3291, allocations: 183 kB / 431.9 MB, free: 11.27 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004471/0.3336, allocations: 2.984 MB / 434.8 MB, free: 8.242 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.221e-06/0.3336, allocations: 4 kB / 434.9 MB, free: 8.238 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001494/0.3351, allocations: 1.036 MB / 435.9 MB, free: 7.156 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001734/0.3368, allocations: 371.8 kB / 436.2 MB, free: 6.801 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1185/0.4553, allocations: 6.806 MB / 443.1 MB, free: 126.1 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002235/0.4575, allocations: 1.065 MB / 444.1 MB, free: 125.9 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001787/0.4593, allocations: 427.4 kB / 444.5 MB, free: 125.9 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001018/0.4603, allocations: 0.5274 MB / 445.1 MB, free: 125.8 MB / 394.7 MB Notification: Performance of SimCode: time 2.454e-06/0.4603, allocations: 0 / 445.1 MB, free: 125.8 MB / 394.7 MB Notification: Performance of Templates: time 0.05367/0.514, allocations: 34.57 MB / 479.6 MB, free: 108.2 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/FreeBody/FreeBody.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.8936319458298385]