Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001604/0.001604, allocations: 81.97 kB / 22.21 MB, free: 2.289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001681/0.001681, allocations: 163.9 kB / 25.61 MB, free: 8.582 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9902/0.9902, allocations: 177.1 MB / 206.1 MB, free: 4.473 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.503e-06/1.503e-06, allocations: 0 / 274.2 MB, free: 4.391 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.807e-05/1.958e-05, allocations: 3.188 kB / 274.2 MB, free: 4.387 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.008165/0.008185, allocations: 9.834 MB / 284 MB, free: 10.52 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005792/0.01398, allocations: 3.738 MB / 287.8 MB, free: 6.777 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001037/0.01501, allocations: 71.62 kB / 287.8 MB, free: 6.707 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002761/0.01778, allocations: 2.433 MB / 290.3 MB, free: 4.266 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002776/0.02055, allocations: 1.777 MB / 292.1 MB, free: 2.48 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001033/0.02158, allocations: 0.6665 MB / 292.7 MB, free: 1.812 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003441/0.02503, allocations: 3.891 MB / 296.6 MB, free: 13.91 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002591/0.02762, allocations: 2.77 MB / 299.4 MB, free: 11.09 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002068/0.02968, allocations: 2.097 MB / 301.5 MB, free: 8.988 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00191/0.03159, allocations: 1.987 MB / 303.5 MB, free: 6.996 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003692/0.03196, allocations: 296 kB / 303.8 MB, free: 6.707 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001664/0.03363, allocations: 1.084 MB / 304.8 MB, free: 5.621 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001095/0.03472, allocations: 1.815 MB / 306.7 MB, free: 3.801 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009869/0.03571, allocations: 1.129 MB / 307.8 MB, free: 2.668 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003766/0.03948, allocations: 4.044 MB / 311.8 MB, free: 14.61 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.03948, allocations: 4 kB / 311.8 MB, free: 14.61 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.03948, allocations: 0 / 311.8 MB, free: 14.61 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.128e-05/0.03955, allocations: 0 / 311.8 MB, free: 14.61 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: 1330 * Number of variables: 1330 Notification: Performance of Generate backend data structure: time 0.004722/0.04427, allocations: 4.442 MB / 316.3 MB, free: 10.1 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.353e-05/0.04431, allocations: 8.031 kB / 316.3 MB, free: 10.09 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003059/0.04736, allocations: 1.399 MB / 317.7 MB, free: 8.691 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002145/0.04951, allocations: 1.71 MB / 319.4 MB, free: 6.934 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001045/0.04961, allocations: 217.6 kB / 319.6 MB, free: 6.719 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000497/0.05011, allocations: 363.6 kB / 320 MB, free: 6.363 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005342/0.05545, allocations: 5.019 MB / 325 MB, free: 484 kB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.808e-05/0.05553, allocations: 47.61 kB / 325 MB, free: 436 kB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005495/0.05608, allocations: 135.8 kB / 325.2 MB, free: 300 kB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001248/0.05733, allocations: 1.47 MB / 326.6 MB, free: 14.82 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003973/0.0613, allocations: 2.435 MB / 329.1 MB, free: 12.38 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1561/0.2174, allocations: 38.25 MB / 367.3 MB, free: 48.84 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004269/0.2216, allocations: 1.773 MB / 369.1 MB, free: 48.69 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006365/0.2223, allocations: 445.9 kB / 369.5 MB, free: 48.64 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004657/0.2269, allocations: 3.949 MB / 373.5 MB, free: 47.66 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.247e-05/0.227, allocations: 56.17 kB / 373.5 MB, free: 47.61 MB / 330.7 MB Notification: Performance of pre-optimization done (n=132): time 3.868e-06/0.227, allocations: 2.281 kB / 373.5 MB, free: 47.61 MB / 330.7 MB Notification: Performance of matching and sorting (n=139): time 0.01109/0.2381, allocations: 4.785 MB / 378.3 MB, free: 46.95 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0006779/0.2387, allocations: 2.013 MB / 380.3 MB, free: 44.93 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002701/0.2414, allocations: 3.141 MB / 383.5 MB, free: 44.42 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001085/0.2416, allocations: 47.39 kB / 383.5 MB, free: 44.39 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001138/0.2427, allocations: 3.078 MB / 386.6 MB, free: 42.69 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004538/0.2431, allocations: 0.6107 MB / 387.2 MB, free: 42.35 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009614/0.2441, allocations: 1.214 MB / 388.4 MB, free: 41.81 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.228e-05/0.2442, allocations: 480.6 kB / 388.9 MB, free: 41.34 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009233/0.2451, allocations: 0.5724 MB / 389.5 MB, free: 41.23 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002084/0.2472, allocations: 5.705 MB / 395.2 MB, free: 33.4 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003944/0.2511, allocations: 6.959 MB / 402.1 MB, free: 24.6 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00014/0.2512, allocations: 32 kB / 402.2 MB, free: 24.57 MB / 330.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.008463/0.2597, allocations: 4.896 MB / 407.1 MB, free: 19.65 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.732e-05/0.2598, allocations: 60 kB / 407.1 MB, free: 19.59 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003721/0.2635, allocations: 1.087 MB / 408.2 MB, free: 18.49 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003873/0.2674, allocations: 0.5714 MB / 408.8 MB, free: 17.9 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002285/0.2696, allocations: 1.211 MB / 410 MB, free: 16.69 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003244/0.2729, allocations: 4.266 MB / 414.2 MB, free: 12.21 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002966/0.2759, allocations: 255.7 kB / 414.5 MB, free: 11.96 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004506/0.2763, allocations: 292 kB / 414.8 MB, free: 11.67 MB / 330.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.001212/0.2775, allocations: 0.6178 MB / 415.4 MB, free: 11.04 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000493/0.278, allocations: 330 kB / 415.7 MB, free: 10.72 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003789/0.2784, allocations: 327.4 kB / 416 MB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001502/0.2799, allocations: 0.805 MB / 416.8 MB, free: 9.562 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.071e-05/0.2799, allocations: 8 kB / 416.9 MB, free: 9.555 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.194e-05/0.2799, allocations: 7.922 kB / 416.9 MB, free: 9.547 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006479/0.2864, allocations: 4.381 MB / 421.2 MB, free: 5.059 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.2864, allocations: 0 / 421.2 MB, free: 5.059 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005519/0.2869, allocations: 175.8 kB / 421.4 MB, free: 4.887 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001134/0.2881, allocations: 366.1 kB / 421.8 MB, free: 4.512 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.545e-05/0.2882, allocations: 35.97 kB / 421.8 MB, free: 4.477 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00201/0.2902, allocations: 3.991 MB / 425.8 MB, free: 272 kB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008097/0.291, allocations: 1.865 MB / 427.7 MB, free: 14.28 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003241/0.2942, allocations: 2.167 MB / 429.8 MB, free: 12.07 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005493/0.2948, allocations: 269.9 kB / 430.1 MB, free: 11.8 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002508/0.295, allocations: 31.5 kB / 430.1 MB, free: 11.77 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006587/0.2957, allocations: 31.98 kB / 430.2 MB, free: 11.74 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000175/0.2959, allocations: 92.36 kB / 430.2 MB, free: 11.65 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.109e-05/0.2959, allocations: 39.95 kB / 430.3 MB, free: 11.61 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.00149/0.2974, allocations: 1.244 MB / 431.5 MB, free: 10.37 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.2974, allocations: 0 / 431.5 MB, free: 10.37 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003796/0.3012, allocations: 0.996 MB / 432.5 MB, free: 9.375 MB / 346.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.0003708/0.3016, allocations: 176.4 kB / 432.7 MB, free: 9.191 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.004446/0.306, allocations: 2.996 MB / 435.7 MB, free: 6.172 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.306, allocations: 0 / 435.7 MB, free: 6.172 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001445/0.3075, allocations: 1.028 MB / 436.7 MB, free: 5.09 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001368/0.3089, allocations: 373.8 kB / 437.1 MB, free: 4.746 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009148/0.318, allocations: 6.827 MB / 443.9 MB, free: 13.84 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00113/0.3191, allocations: 1.064 MB / 445 MB, free: 12.75 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001182/0.3203, allocations: 429.3 kB / 445.4 MB, free: 12.32 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008263/0.3211, allocations: 0.5293 MB / 445.9 MB, free: 11.79 MB / 362.7 MB Notification: Performance of SimCode: time 1.854e-06/0.3211, allocations: 0 / 445.9 MB, free: 11.79 MB / 362.7 MB Notification: Performance of Templates: time 0.05081/0.3719, allocations: 35.3 MB / 481.2 MB, free: 8.883 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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: 4.123536557890475]