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.00111/0.00111, allocations: 91.5 kB / 21.19 MB, free: 3.398 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.00123/0.00123, allocations: 164.5 kB / 24.56 MB, free: 36 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.9718/0.9718, allocations: 177 MB / 204.8 MB, free: 5.602 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.104e-06/2.104e-06, allocations: 0 / 272.9 MB, free: 1.473 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.138e-05/3.348e-05, allocations: 5.125 kB / 272.9 MB, free: 1.469 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.01216/0.01219, allocations: 10.16 MB / 283.1 MB, free: 7.258 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008127/0.02032, allocations: 3.769 MB / 286.8 MB, free: 3.477 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001751/0.02207, allocations: 71.62 kB / 286.9 MB, free: 3.406 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004273/0.02634, allocations: 2.48 MB / 289.4 MB, free: 0.918 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1198/0.1461, allocations: 1.765 MB / 291.2 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001244/0.1473, allocations: 0.6719 MB / 291.8 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004444/0.1518, allocations: 3.878 MB / 295.7 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003811/0.1556, allocations: 2.783 MB / 298.5 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003314/0.1589, allocations: 2.08 MB / 300.6 MB, free: 13 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002861/0.1618, allocations: 1.99 MB / 302.6 MB, free: 12.64 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008774/0.1627, allocations: 295.9 kB / 302.9 MB, free: 12.64 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001792/0.1644, allocations: 1.084 MB / 303.9 MB, free: 12.5 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001173/0.1656, allocations: 1.809 MB / 305.7 MB, free: 11.77 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001464/0.1671, allocations: 1.134 MB / 306.9 MB, free: 11.18 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003691/0.1708, allocations: 4.039 MB / 310.9 MB, free: 9.027 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.1708, allocations: 2.062 kB / 310.9 MB, free: 9.027 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1708, allocations: 3.531 kB / 310.9 MB, free: 9.027 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001778/0.171, allocations: 0 / 310.9 MB, free: 9.027 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.005104/0.1761, allocations: 4.608 MB / 315.5 MB, free: 4.73 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/0.1761, allocations: 11.98 kB / 315.5 MB, free: 4.719 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003677/0.1798, allocations: 2.331 MB / 317.9 MB, free: 2.414 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002092/0.1819, allocations: 1.872 MB / 319.7 MB, free: 0.6445 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.94e-05/0.182, allocations: 211.3 kB / 320 MB, free: 480 kB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004477/0.1824, allocations: 371.4 kB / 320.3 MB, free: 148 kB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007014/0.1894, allocations: 5.576 MB / 325.9 MB, free: 9.883 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.369e-05/0.1895, allocations: 32.5 kB / 325.9 MB, free: 9.867 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002427/0.1897, allocations: 137.4 kB / 326.1 MB, free: 9.762 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001653/0.1914, allocations: 1.643 MB / 327.7 MB, free: 8.145 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006129/0.1975, allocations: 3.086 MB / 330.8 MB, free: 5.238 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02716/0.2247, allocations: 38.73 MB / 369.5 MB, free: 13.74 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00596/0.2306, allocations: 2.031 MB / 371.5 MB, free: 11.67 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001237/0.2319, allocations: 0.5105 MB / 372.1 MB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006202/0.2381, allocations: 4.128 MB / 376.2 MB, free: 7.027 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.26e-05/0.2381, allocations: 56.73 kB / 376.2 MB, free: 6.969 MB / 330.7 MB Notification: Performance of pre-optimization done (n=132): time 4.228e-06/0.2381, allocations: 0 / 376.2 MB, free: 6.969 MB / 330.7 MB Notification: Performance of matching and sorting (n=139): time 0.01804/0.2562, allocations: 8.179 MB / 384.4 MB, free: 14.74 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001391/0.2576, allocations: 2.03 MB / 386.4 MB, free: 12.55 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003725/0.2613, allocations: 3.149 MB / 389.6 MB, free: 9.375 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001679/0.2615, allocations: 45.7 kB / 389.6 MB, free: 9.324 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00182/0.2633, allocations: 3.045 MB / 392.7 MB, free: 6.293 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005844/0.2639, allocations: 0.6167 MB / 393.3 MB, free: 5.684 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001574/0.2654, allocations: 1.187 MB / 394.5 MB, free: 4.488 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001026/0.2655, allocations: 480.3 kB / 395 MB, free: 4.02 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001281/0.2668, allocations: 0.6391 MB / 395.6 MB, free: 3.375 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004058/0.2709, allocations: 5.742 MB / 401.3 MB, free: 11.32 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006278/0.2772, allocations: 7.056 MB / 408.4 MB, free: 1.941 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.088e-05/0.2772, allocations: 32 kB / 408.4 MB, free: 1.91 MB / 362.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.01262/0.2899, allocations: 6.25 MB / 414.7 MB, free: 11.64 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.792e-05/0.2899, allocations: 71.75 kB / 414.7 MB, free: 11.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004838/0.2948, allocations: 2.173 MB / 416.9 MB, free: 9.387 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005273/0.3, allocations: 1.82 MB / 418.7 MB, free: 7.547 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002247/0.3023, allocations: 1.263 MB / 420 MB, free: 6.281 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004249/0.3065, allocations: 4.8 MB / 424.8 MB, free: 1.242 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002256/0.3088, allocations: 419.3 kB / 425.2 MB, free: 0.832 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005688/0.3093, allocations: 340 kB / 425.5 MB, free: 0.5 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.0009797/0.3103, allocations: 0.6257 MB / 426.2 MB, free: 15.86 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003454/0.3107, allocations: 322.1 kB / 426.5 MB, free: 15.54 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002863/0.311, allocations: 323.4 kB / 426.8 MB, free: 15.21 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002001/0.313, allocations: 1.137 MB / 427.9 MB, free: 14.05 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.977e-06/0.313, allocations: 4 kB / 427.9 MB, free: 14.05 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.497e-06/0.313, allocations: 11.92 kB / 428 MB, free: 14.04 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007352/0.3203, allocations: 5.591 MB / 433.5 MB, free: 8.359 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.3203, allocations: 0 / 433.5 MB, free: 8.359 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005852/0.3209, allocations: 227.7 kB / 433.8 MB, free: 8.137 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001404/0.3223, allocations: 0.5642 MB / 434.3 MB, free: 7.555 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.683e-05/0.3224, allocations: 31.97 kB / 434.4 MB, free: 7.523 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002564/0.325, allocations: 4.228 MB / 438.6 MB, free: 3.055 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008868/0.3259, allocations: 1.91 MB / 440.5 MB, free: 1.012 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1141/0.4399, allocations: 2.541 MB / 443 MB, free: 124.3 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006822/0.4406, allocations: 276.8 kB / 443.3 MB, free: 124.3 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002807/0.4409, allocations: 30.48 kB / 443.3 MB, free: 124.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007966/0.4417, allocations: 149.7 kB / 443.5 MB, free: 124.3 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002303/0.4419, allocations: 91.58 kB / 443.6 MB, free: 124.3 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.331e-05/0.442, allocations: 45.03 kB / 443.6 MB, free: 124.3 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001956/0.444, allocations: 1.335 MB / 445 MB, free: 124.1 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.444, allocations: 1.594 kB / 445 MB, free: 124.1 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003075/0.4471, allocations: 0.9966 MB / 446 MB, free: 124.1 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.0004664/0.4475, allocations: 178.5 kB / 446.1 MB, free: 124 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005065/0.4526, allocations: 3.38 MB / 449.5 MB, free: 123.6 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.4526, allocations: 1.188 kB / 449.5 MB, free: 123.6 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001895/0.4545, allocations: 1.31 MB / 450.8 MB, free: 123.2 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001662/0.4562, allocations: 374.4 kB / 451.2 MB, free: 123.1 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008642/0.4648, allocations: 6.838 MB / 458 MB, free: 120.3 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009004/0.4657, allocations: 1.069 MB / 459.1 MB, free: 120.1 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.00211/0.4678, allocations: 1.451 MB / 460.5 MB, free: 120 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004157/0.4682, allocations: 200.1 kB / 460.7 MB, free: 120 MB / 394.7 MB Notification: Performance of SimCode: time 1.763e-06/0.4682, allocations: 3.625 kB / 460.7 MB, free: 120 MB / 394.7 MB Notification: Performance of Templates: time 0.04012/0.5084, allocations: 32.91 MB / 493.6 MB, free: 93.62 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.8770823520608246]