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.00112/0.00112, allocations: 79.59 kB / 21.18 MB, free: 3.383 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.001075/0.001075, allocations: 161 kB / 24.55 MB, free: 16 kB / 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.951/0.951, allocations: 177.2 MB / 205 MB, free: 5.305 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 2.004e-06/2.004e-06, allocations: 0 / 273 MB, free: 1.395 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.325e-05/2.526e-05, allocations: 6.312 kB / 273 MB, free: 1.387 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.01232/0.01234, allocations: 10.16 MB / 283.1 MB, free: 7.184 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006659/0.019, allocations: 3.762 MB / 286.9 MB, free: 3.41 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001111/0.02011, allocations: 75.62 kB / 287 MB, free: 3.336 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003745/0.02386, allocations: 2.476 MB / 289.5 MB, free: 0.8516 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1508/0.1747, allocations: 1.759 MB / 291.2 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001339/0.176, allocations: 0.6739 MB / 291.9 MB, free: 14.74 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004571/0.1806, allocations: 3.879 MB / 295.8 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003157/0.1838, allocations: 2.777 MB / 298.5 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002646/0.1864, allocations: 2.079 MB / 300.6 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002659/0.1891, allocations: 1.986 MB / 302.6 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007361/0.1898, allocations: 296.8 kB / 302.9 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001658/0.1915, allocations: 1.094 MB / 304 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001021/0.1925, allocations: 1.805 MB / 305.8 MB, free: 12 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001122/0.1936, allocations: 1.128 MB / 306.9 MB, free: 11.41 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003054/0.1967, allocations: 4.046 MB / 311 MB, free: 9.25 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.1967, allocations: 0 / 311 MB, free: 9.25 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1967, allocations: 0 / 311 MB, free: 9.25 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.833e-05/0.1967, allocations: 0 / 311 MB, free: 9.25 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.003848/0.2006, allocations: 4.61 MB / 315.6 MB, free: 4.93 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.2006, allocations: 15.31 kB / 315.6 MB, free: 4.918 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003485/0.2041, allocations: 2.332 MB / 317.9 MB, free: 2.613 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001721/0.2058, allocations: 1.836 MB / 319.8 MB, free: 0.8789 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.299e-05/0.2059, allocations: 214.8 kB / 320 MB, free: 0.6992 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004408/0.2063, allocations: 371.9 kB / 320.3 MB, free: 384 kB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00592/0.2123, allocations: 5.574 MB / 325.9 MB, free: 10.11 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.119e-05/0.2123, allocations: 43.25 kB / 326 MB, free: 10.08 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000226/0.2125, allocations: 130.8 kB / 326.1 MB, free: 9.984 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001388/0.2139, allocations: 1.648 MB / 327.7 MB, free: 8.363 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005009/0.2189, allocations: 3.089 MB / 330.8 MB, free: 5.449 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02361/0.2426, allocations: 38.73 MB / 369.5 MB, free: 13.96 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004015/0.2466, allocations: 2.032 MB / 371.6 MB, free: 11.89 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006266/0.2472, allocations: 0.5059 MB / 372.1 MB, free: 11.38 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004414/0.2516, allocations: 4.129 MB / 376.2 MB, free: 7.254 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.528e-05/0.2516, allocations: 50.05 kB / 376.3 MB, free: 7.195 MB / 330.7 MB Notification: Performance of pre-optimization done (n=132): time 3.076e-06/0.2517, allocations: 4 kB / 376.3 MB, free: 7.191 MB / 330.7 MB Notification: Performance of matching and sorting (n=139): time 0.01312/0.2648, allocations: 8.171 MB / 384.4 MB, free: 14.96 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001067/0.2658, allocations: 2.048 MB / 386.5 MB, free: 12.76 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002719/0.2686, allocations: 3.145 MB / 389.6 MB, free: 9.586 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.386e-05/0.2686, allocations: 45.7 kB / 389.7 MB, free: 9.535 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00144/0.2701, allocations: 3.049 MB / 392.7 MB, free: 6.5 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004368/0.2705, allocations: 0.6137 MB / 393.3 MB, free: 5.895 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001036/0.2715, allocations: 1.185 MB / 394.5 MB, free: 4.703 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.729e-05/0.2716, allocations: 476.8 kB / 395 MB, free: 4.234 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009788/0.2726, allocations: 0.6431 MB / 395.6 MB, free: 3.586 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00345/0.2761, allocations: 5.739 MB / 401.4 MB, free: 11.53 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004775/0.2808, allocations: 7.064 MB / 408.4 MB, free: 2.141 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.595e-05/0.2809, allocations: 36 kB / 408.5 MB, free: 2.105 MB / 362.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.009096/0.29, allocations: 6.254 MB / 414.7 MB, free: 11.82 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.016e-05/0.29, allocations: 60.94 kB / 414.8 MB, free: 11.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004762/0.2948, allocations: 2.17 MB / 417 MB, free: 9.578 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005019/0.2998, allocations: 1.828 MB / 418.8 MB, free: 7.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002101/0.3019, allocations: 1.259 MB / 420 MB, free: 6.469 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004304/0.3062, allocations: 4.795 MB / 424.8 MB, free: 1.434 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00217/0.3084, allocations: 423.4 kB / 425.3 MB, free: 1.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003077/0.3087, allocations: 341.5 kB / 425.6 MB, free: 0.6875 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.001046/0.3097, allocations: 0.622 MB / 426.2 MB, free: 56 kB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003437/0.3101, allocations: 326.1 kB / 426.5 MB, free: 15.73 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002997/0.3104, allocations: 323.4 kB / 426.8 MB, free: 15.41 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001993/0.3124, allocations: 1.141 MB / 428 MB, free: 14.24 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.116e-06/0.3124, allocations: 0 / 428 MB, free: 14.24 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.475e-05/0.3124, allocations: 11.92 kB / 428 MB, free: 14.23 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0076/0.32, allocations: 5.584 MB / 433.6 MB, free: 8.559 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.895e-06/0.32, allocations: 8.094 kB / 433.6 MB, free: 8.551 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005764/0.3206, allocations: 227.7 kB / 433.8 MB, free: 8.328 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001378/0.322, allocations: 0.5602 MB / 434.4 MB, free: 7.75 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.134e-05/0.322, allocations: 42.41 kB / 434.4 MB, free: 7.711 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002656/0.3247, allocations: 4.226 MB / 438.6 MB, free: 3.242 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007119/0.3254, allocations: 1.905 MB / 440.5 MB, free: 1.203 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1417/0.4671, allocations: 2.538 MB / 443.1 MB, free: 124.4 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007319/0.4678, allocations: 281.9 kB / 443.4 MB, free: 124.4 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002865/0.4681, allocations: 27.78 kB / 443.4 MB, free: 124.4 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008751/0.469, allocations: 152.2 kB / 443.5 MB, free: 124.4 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002315/0.4692, allocations: 90.86 kB / 443.6 MB, free: 124.4 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.875e-05/0.4693, allocations: 41.19 kB / 443.7 MB, free: 124.4 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00203/0.4713, allocations: 1.343 MB / 445 MB, free: 124.3 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4713, allocations: 0 / 445 MB, free: 124.3 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003629/0.475, allocations: 0.9967 MB / 446 MB, free: 124.3 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.0004072/0.4754, allocations: 181 kB / 446.2 MB, free: 124.2 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005345/0.4807, allocations: 3.37 MB / 449.5 MB, free: 123.7 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.4807, allocations: 0 / 449.5 MB, free: 123.7 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001849/0.4826, allocations: 1.314 MB / 450.9 MB, free: 123.3 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001251/0.4838, allocations: 369.3 kB / 451.2 MB, free: 123.3 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007338/0.4912, allocations: 6.856 MB / 458.1 MB, free: 120.4 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008163/0.492, allocations: 1.059 MB / 459.1 MB, free: 120.3 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001816/0.4938, allocations: 1.441 MB / 460.6 MB, free: 120.1 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003516/0.4941, allocations: 210.5 kB / 460.8 MB, free: 120.1 MB / 394.7 MB Notification: Performance of SimCode: time 1.092e-06/0.4941, allocations: 0 / 460.8 MB, free: 120.1 MB / 394.7 MB Notification: Performance of Templates: time 0.03563/0.5298, allocations: 31.91 MB / 492.7 MB, free: 94.99 MB / 394.7 MB " [Timeout remaining time 659] 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.083697074092925]