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.0008827/0.0008827, allocations: 85.17 kB / 21.5 MB, free: 2.992 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.0009056/0.0009056, allocations: 143.4 kB / 24.89 MB, free: 8.727 MB / 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.8836/0.8836, allocations: 173.4 MB / 201.5 MB, free: 8.758 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 1.363e-06/1.363e-06, allocations: 0 / 268.5 MB, free: 6.027 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.167e-05/1.304e-05, allocations: 2.312 kB / 268.5 MB, free: 6.023 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.01057/0.01059, allocations: 9.883 MB / 278.4 MB, free: 12.09 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005954/0.01654, allocations: 3.857 MB / 282.2 MB, free: 8.219 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004506/0.01699, allocations: 79.56 kB / 282.3 MB, free: 8.141 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002223/0.01921, allocations: 2.476 MB / 284.8 MB, free: 5.656 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001823/0.02104, allocations: 1.812 MB / 286.6 MB, free: 3.836 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006343/0.02167, allocations: 0.6665 MB / 287.2 MB, free: 3.168 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1183/0.14, allocations: 3.82 MB / 291.1 MB, free: 15.72 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003292/0.1433, allocations: 2.861 MB / 293.9 MB, free: 15.54 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002802/0.1461, allocations: 2.102 MB / 296 MB, free: 15.54 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002546/0.1486, allocations: 1.905 MB / 297.9 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000599/0.1492, allocations: 296.1 kB / 298.2 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001457/0.1507, allocations: 1.096 MB / 299.3 MB, free: 15.42 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001139/0.1518, allocations: 1.837 MB / 301.2 MB, free: 15.06 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001323/0.1531, allocations: 1.144 MB / 302.3 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003044/0.1562, allocations: 4.099 MB / 306.4 MB, free: 13.12 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1562, allocations: 4 kB / 306.4 MB, free: 13.12 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1562, allocations: 1.906 kB / 306.4 MB, free: 13.12 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001191/0.1563, allocations: 0 / 306.4 MB, free: 13.12 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.003653/0.16, allocations: 3.945 MB / 310.3 MB, free: 11.01 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.868e-05/0.16, allocations: 14.58 kB / 310.4 MB, free: 11.01 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002194/0.1622, allocations: 0.9906 MB / 311.4 MB, free: 10.82 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00136/0.1635, allocations: 1.567 MB / 312.9 MB, free: 9.887 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.56e-05/0.1636, allocations: 212.8 kB / 313.1 MB, free: 9.816 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004275/0.164, allocations: 362.2 kB / 313.5 MB, free: 9.719 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003345/0.1674, allocations: 4.474 MB / 318 MB, free: 5.5 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.398e-05/0.1674, allocations: 37 kB / 318 MB, free: 5.48 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000208/0.1676, allocations: 132 kB / 318.1 MB, free: 5.383 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009565/0.1686, allocations: 1.474 MB / 319.6 MB, free: 3.938 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00275/0.1714, allocations: 2.364 MB / 322 MB, free: 1.766 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01582/0.1872, allocations: 27.5 MB / 349.5 MB, free: 6.293 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003177/0.1904, allocations: 1.647 MB / 351.1 MB, free: 4.66 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003911/0.1907, allocations: 356.7 kB / 351.5 MB, free: 4.309 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003606/0.1943, allocations: 3.589 MB / 355 MB, free: 0.7461 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.663e-05/0.1944, allocations: 47.22 kB / 355.1 MB, free: 0.6914 MB / 298.7 MB Notification: Performance of pre-optimization done (n=132): time 2.725e-06/0.1944, allocations: 0 / 355.1 MB, free: 0.6914 MB / 298.7 MB Notification: Performance of matching and sorting (n=139): time 0.008158/0.2025, allocations: 4.049 MB / 359.1 MB, free: 12.66 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0006771/0.2032, allocations: 1.487 MB / 360.6 MB, free: 11.06 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001784/0.205, allocations: 2.809 MB / 363.4 MB, free: 8.746 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.064e-05/0.2051, allocations: 49.86 kB / 363.5 MB, free: 8.691 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001264/0.2063, allocations: 2.741 MB / 366.2 MB, free: 6.09 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003184/0.2067, allocations: 0.5862 MB / 366.8 MB, free: 5.535 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000824/0.2075, allocations: 1.036 MB / 367.8 MB, free: 4.613 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.282e-05/0.2075, allocations: 305.1 kB / 368.1 MB, free: 4.312 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001036/0.2086, allocations: 0.7329 MB / 368.9 MB, free: 3.574 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002694/0.2113, allocations: 4.039 MB / 372.9 MB, free: 14.01 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003714/0.215, allocations: 5.36 MB / 378.3 MB, free: 7.18 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.054e-05/0.215, allocations: 36 kB / 378.3 MB, free: 7.145 MB / 330.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.006015/0.221, allocations: 4.205 MB / 382.5 MB, free: 2.914 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.485e-05/0.2211, allocations: 60 kB / 382.6 MB, free: 2.855 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003098/0.2242, allocations: 0.9718 MB / 383.5 MB, free: 1.863 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003122/0.2273, allocations: 0.5527 MB / 384.1 MB, free: 1.293 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002032/0.2293, allocations: 1.205 MB / 385.3 MB, free: 88 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002964/0.2323, allocations: 3.17 MB / 388.5 MB, free: 12.72 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001607/0.2339, allocations: 243.7 kB / 388.7 MB, free: 12.48 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002545/0.2342, allocations: 300 kB / 389 MB, free: 12.19 MB / 346.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.000907/0.2351, allocations: 0.5757 MB / 389.6 MB, free: 11.6 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000241/0.2353, allocations: 179.8 kB / 389.8 MB, free: 11.43 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001614/0.2369, allocations: 1.078 MB / 390.8 MB, free: 10.31 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001196/0.2381, allocations: 0.682 MB / 391.5 MB, free: 9.605 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.2381, allocations: 0 / 391.5 MB, free: 9.605 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.985e-06/0.2381, allocations: 11.92 kB / 391.5 MB, free: 9.594 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004832/0.243, allocations: 3.714 MB / 395.2 MB, free: 5.777 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.243, allocations: 4 kB / 395.2 MB, free: 5.773 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004775/0.2434, allocations: 183.7 kB / 395.4 MB, free: 5.594 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00116/0.2446, allocations: 0.4991 MB / 395.9 MB, free: 5.074 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.495e-05/0.2447, allocations: 31.98 kB / 396 MB, free: 5.043 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001921/0.2466, allocations: 2.85 MB / 398.8 MB, free: 2 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0004637/0.247, allocations: 1.346 MB / 400.1 MB, free: 0.543 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00207/0.2491, allocations: 1.855 MB / 402 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002315/0.2493, allocations: 269.9 kB / 402.3 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001885/0.2495, allocations: 28 kB / 402.3 MB, free: 14.35 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005277/0.2501, allocations: 20 kB / 402.3 MB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000124/0.2502, allocations: 92.41 kB / 402.4 MB, free: 14.24 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.84e-05/0.2502, allocations: 31.98 kB / 402.4 MB, free: 14.21 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007255/0.251, allocations: 1.007 MB / 403.4 MB, free: 13.2 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.251, allocations: 4 kB / 403.4 MB, free: 13.2 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002224/0.2532, allocations: 1.023 MB / 404.5 MB, free: 12.17 MB / 362.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.0003005/0.2535, allocations: 172 kB / 404.6 MB, free: 11.99 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002909/0.2564, allocations: 2.693 MB / 407.3 MB, free: 9.281 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001329/0.2565, allocations: 92.16 kB / 407.4 MB, free: 9.18 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001102/0.2576, allocations: 0.8502 MB / 408.3 MB, free: 8.297 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001192/0.2588, allocations: 0.5278 MB / 408.8 MB, free: 7.773 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006286/0.2651, allocations: 6.578 MB / 415.4 MB, free: 1.09 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007903/0.2659, allocations: 1.06 MB / 416.4 MB, free: 4 kB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0008625/0.2668, allocations: 437.6 kB / 416.9 MB, free: 15.57 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006508/0.2674, allocations: 0.4894 MB / 417.4 MB, free: 15.08 MB / 378.7 MB Notification: Performance of SimCode: time 1.283e-06/0.2674, allocations: 0 / 417.4 MB, free: 15.08 MB / 378.7 MB Notification: Performance of Templates: time 0.1337/0.4011, allocations: 34.61 MB / 452 MB, free: 114.1 MB / 378.7 MB " [Timeout remaining time 660] 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: 3.654191759414971]