Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009764/0.0009764, allocations: 83.89 kB / 21.19 MB, free: 3.387 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00148/0.00148, allocations: 141.5 kB / 24.54 MB, free: 36 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.975/0.975, allocations: 173.3 MB / 201.1 MB, free: 9.344 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.074e-06/2.074e-06, allocations: 0 / 268 MB, free: 6.434 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.645e-05/2.852e-05, allocations: 6.312 kB / 268 MB, free: 6.426 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.0127/0.01273, allocations: 10.18 MB / 278.2 MB, free: 12.19 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.009017/0.02175, allocations: 3.765 MB / 281.9 MB, free: 8.414 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001847/0.0236, allocations: 71.62 kB / 282 MB, free: 8.344 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003264/0.02686, allocations: 2.48 MB / 284.5 MB, free: 5.855 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003602/0.03046, allocations: 1.808 MB / 286.3 MB, free: 4.039 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001194/0.03166, allocations: 0.6665 MB / 287 MB, free: 3.371 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1373/0.169, allocations: 3.809 MB / 290.8 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004019/0.173, allocations: 2.786 MB / 293.6 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003617/0.1766, allocations: 2.091 MB / 295.7 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003295/0.1799, allocations: 1.998 MB / 297.7 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009304/0.1808, allocations: 296.1 kB / 297.9 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002118/0.1829, allocations: 1.099 MB / 299 MB, free: 15.21 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001554/0.1845, allocations: 1.835 MB / 300.9 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002015/0.1865, allocations: 1.147 MB / 302 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004611/0.1911, allocations: 4.09 MB / 306.1 MB, free: 13 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.1911, allocations: 0 / 306.1 MB, free: 13 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1911, allocations: 3.531 kB / 306.1 MB, free: 13 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001875/0.1913, allocations: 0 / 306.1 MB, free: 13 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.005643/0.197, allocations: 4.635 MB / 310.8 MB, free: 10.36 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.986e-05/0.197, allocations: 10.42 kB / 310.8 MB, free: 10.36 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003765/0.2008, allocations: 2.284 MB / 313 MB, free: 9.371 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002253/0.203, allocations: 1.836 MB / 314.9 MB, free: 8.293 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.715e-05/0.2031, allocations: 212.7 kB / 315.1 MB, free: 8.223 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004531/0.2036, allocations: 371.2 kB / 315.5 MB, free: 8.078 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005994/0.2096, allocations: 5.546 MB / 321 MB, free: 1.844 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.003e-05/0.2096, allocations: 32.12 kB / 321 MB, free: 1.828 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002288/0.2099, allocations: 138.2 kB / 321.2 MB, free: 1.727 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001221/0.2111, allocations: 1.643 MB / 322.8 MB, free: 112 kB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005944/0.217, allocations: 3.079 MB / 325.9 MB, free: 13.21 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03002/0.247, allocations: 38.74 MB / 364.6 MB, free: 5.691 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004358/0.2514, allocations: 2.019 MB / 366.6 MB, free: 3.637 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007201/0.2521, allocations: 0.5136 MB / 367.2 MB, free: 3.109 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005185/0.2573, allocations: 4.112 MB / 371.3 MB, free: 15.01 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.616e-05/0.2573, allocations: 50.05 kB / 371.3 MB, free: 14.95 MB / 330.7 MB Notification: Performance of pre-optimization done (n=132): time 3.837e-06/0.2574, allocations: 3.562 kB / 371.3 MB, free: 14.95 MB / 330.7 MB Notification: Performance of matching and sorting (n=139): time 0.01523/0.2726, allocations: 8.14 MB / 379.5 MB, free: 6.762 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001119/0.2737, allocations: 2.042 MB / 381.5 MB, free: 4.566 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004146/0.2778, allocations: 3.157 MB / 384.7 MB, free: 1.383 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001162/0.278, allocations: 41.7 kB / 384.7 MB, free: 1.336 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002184/0.2801, allocations: 3.054 MB / 387.8 MB, free: 14.29 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000613/0.2808, allocations: 0.6132 MB / 388.4 MB, free: 13.69 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001395/0.2822, allocations: 1.183 MB / 389.6 MB, free: 12.5 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.2823, allocations: 492.5 kB / 390 MB, free: 12.02 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00136/0.2836, allocations: 0.6313 MB / 390.7 MB, free: 11.38 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004319/0.288, allocations: 5.745 MB / 396.4 MB, free: 3.324 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007301/0.2953, allocations: 7.06 MB / 403.5 MB, free: 10.05 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001128/0.2954, allocations: 36 kB / 403.5 MB, free: 10.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.01495/0.3103, allocations: 6.188 MB / 409.7 MB, free: 3.809 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.869e-05/0.3104, allocations: 59.94 kB / 409.8 MB, free: 3.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.007056/0.3175, allocations: 2.103 MB / 411.9 MB, free: 1.637 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006984/0.3245, allocations: 1.738 MB / 413.6 MB, free: 15.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0039/0.3284, allocations: 1.255 MB / 414.8 MB, free: 14.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005677/0.334, allocations: 4.776 MB / 419.6 MB, free: 9.594 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003191/0.3372, allocations: 423.4 kB / 420 MB, free: 9.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006875/0.3379, allocations: 345.2 kB / 420.4 MB, free: 8.844 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.001505/0.3394, allocations: 0.6203 MB / 421 MB, free: 8.211 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005112/0.3399, allocations: 322.1 kB / 421.3 MB, free: 7.895 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002535/0.3425, allocations: 1.497 MB / 422.8 MB, free: 6.371 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001981/0.3444, allocations: 1.144 MB / 424 MB, free: 5.199 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.035e-05/0.3445, allocations: 7.938 kB / 424 MB, free: 5.191 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.285e-05/0.3445, allocations: 3.984 kB / 424 MB, free: 5.188 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1335/0.478, allocations: 5.576 MB / 429.5 MB, free: 114.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.213e-05/0.478, allocations: 2.906 kB / 429.5 MB, free: 114.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001005/0.479, allocations: 230 kB / 429.8 MB, free: 114.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00208/0.4811, allocations: 0.5627 MB / 430.3 MB, free: 114.5 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002159/0.4813, allocations: 34.75 kB / 430.4 MB, free: 114.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003205/0.4845, allocations: 4.231 MB / 434.6 MB, free: 111 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006594/0.4852, allocations: 1.903 MB / 436.5 MB, free: 109.1 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004627/0.4898, allocations: 2.545 MB / 439 MB, free: 108.4 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006618/0.4905, allocations: 284.2 kB / 439.3 MB, free: 108.4 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003366/0.4908, allocations: 31.7 kB / 439.3 MB, free: 108.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001057/0.4919, allocations: 146.9 kB / 439.5 MB, free: 108.4 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002476/0.4921, allocations: 93.86 kB / 439.6 MB, free: 108.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000107/0.4922, allocations: 42.56 kB / 439.6 MB, free: 108.4 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002359/0.4946, allocations: 1.343 MB / 441 MB, free: 108.2 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4946, allocations: 0 / 441 MB, free: 108.2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004218/0.4988, allocations: 1.019 MB / 442 MB, free: 108.2 MB / 378.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.0004587/0.4993, allocations: 192 kB / 442.2 MB, free: 108.2 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005883/0.5051, allocations: 3.377 MB / 445.6 MB, free: 107.7 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.5051, allocations: 0 / 445.6 MB, free: 107.7 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00212/0.5073, allocations: 1.316 MB / 446.9 MB, free: 107.3 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001423/0.5087, allocations: 362 kB / 447.2 MB, free: 107.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008722/0.5174, allocations: 6.864 MB / 454.1 MB, free: 104.3 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009215/0.5183, allocations: 1.07 MB / 455.2 MB, free: 104.1 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002006/0.5203, allocations: 1.442 MB / 456.6 MB, free: 104 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004291/0.5208, allocations: 202.9 kB / 456.8 MB, free: 104 MB / 378.7 MB Notification: Performance of SimCode: time 1.643e-06/0.5208, allocations: 4 kB / 456.8 MB, free: 104 MB / 378.7 MB Notification: Performance of Templates: time 0.0408/0.5616, allocations: 32.04 MB / 488.8 MB, free: 75.93 MB / 378.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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: 4.08448496600613]