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.001329/0.001329, allocations: 75.75 kB / 21.69 MB, free: 2.852 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.000983/0.000983, allocations: 164.9 kB / 24.99 MB, free: 9.312 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.9742/0.9742, allocations: 177.1 MB / 205.3 MB, free: 5.602 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.463e-06/1.463e-06, allocations: 0 / 273.1 MB, free: 1.809 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.523e-05/1.669e-05, allocations: 2.312 kB / 273.1 MB, free: 1.805 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.007473/0.007489, allocations: 10.13 MB / 283.2 MB, free: 7.633 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004648/0.01214, allocations: 3.75 MB / 286.9 MB, free: 3.871 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005451/0.01268, allocations: 71.62 kB / 287 MB, free: 3.801 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002944/0.01563, allocations: 2.48 MB / 289.5 MB, free: 1.312 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.111/0.1266, allocations: 1.759 MB / 291.3 MB, free: 14 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001264/0.1279, allocations: 0.6665 MB / 291.9 MB, free: 14 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004053/0.1319, allocations: 3.883 MB / 295.8 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003334/0.1353, allocations: 2.773 MB / 298.6 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002899/0.1382, allocations: 2.078 MB / 300.7 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002409/0.1406, allocations: 1.991 MB / 302.6 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006514/0.1412, allocations: 296.2 kB / 302.9 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001387/0.1426, allocations: 1.083 MB / 304 MB, free: 12.47 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009199/0.1435, allocations: 1.82 MB / 305.8 MB, free: 11.74 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001055/0.1446, allocations: 1.127 MB / 307 MB, free: 11.24 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002874/0.1475, allocations: 4.037 MB / 311 MB, free: 9.168 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.1475, allocations: 0 / 311 MB, free: 9.168 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1475, allocations: 0.5938 kB / 311 MB, free: 9.168 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001267/0.1476, allocations: 0 / 311 MB, free: 9.168 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.004111/0.1517, allocations: 4.621 MB / 315.6 MB, free: 4.992 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/0.1517, allocations: 8.031 kB / 315.6 MB, free: 4.984 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003849/0.1556, allocations: 2.332 MB / 318 MB, free: 2.68 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001834/0.1574, allocations: 1.837 MB / 319.8 MB, free: 0.9453 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.724e-05/0.1575, allocations: 210.8 kB / 320 MB, free: 0.7695 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004784/0.158, allocations: 371.3 kB / 320.4 MB, free: 456 kB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006335/0.1643, allocations: 5.579 MB / 325.9 MB, free: 10.17 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-05/0.1644, allocations: 33.86 kB / 326 MB, free: 10.16 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002552/0.1647, allocations: 144.9 kB / 326.1 MB, free: 10.05 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001458/0.1661, allocations: 1.638 MB / 327.8 MB, free: 8.434 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005993/0.1721, allocations: 3.091 MB / 330.8 MB, free: 5.523 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02548/0.1976, allocations: 38.73 MB / 369.6 MB, free: 14.02 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004454/0.202, allocations: 2.029 MB / 371.6 MB, free: 11.96 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006817/0.2027, allocations: 0.5137 MB / 372.1 MB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004596/0.2073, allocations: 4.123 MB / 376.2 MB, free: 7.32 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.054e-05/0.2074, allocations: 54.48 kB / 376.3 MB, free: 7.262 MB / 330.7 MB Notification: Performance of pre-optimization done (n=132): time 3.998e-06/0.2074, allocations: 0 / 376.3 MB, free: 7.262 MB / 330.7 MB Notification: Performance of matching and sorting (n=139): time 0.01486/0.2222, allocations: 8.181 MB / 384.5 MB, free: 15.02 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001199/0.2234, allocations: 2.031 MB / 386.5 MB, free: 12.84 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003362/0.2268, allocations: 3.153 MB / 389.7 MB, free: 9.656 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000206/0.227, allocations: 51.58 kB / 389.7 MB, free: 9.602 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001543/0.2285, allocations: 3.047 MB / 392.8 MB, free: 6.57 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005305/0.2291, allocations: 0.6085 MB / 393.4 MB, free: 5.969 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001056/0.2301, allocations: 1.191 MB / 394.6 MB, free: 4.77 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.805e-05/0.2302, allocations: 476.8 kB / 395 MB, free: 4.301 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001123/0.2313, allocations: 0.6418 MB / 395.7 MB, free: 3.656 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003749/0.2351, allocations: 5.736 MB / 401.4 MB, free: 11.61 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005824/0.2409, allocations: 7.06 MB / 408.5 MB, free: 2.27 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-05/0.241, allocations: 36 kB / 408.5 MB, free: 2.234 MB / 362.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.01022/0.2512, allocations: 6.254 MB / 414.8 MB, free: 11.96 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.557e-05/0.2512, allocations: 59.94 kB / 414.8 MB, free: 11.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004988/0.2562, allocations: 2.179 MB / 417 MB, free: 9.707 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005316/0.2615, allocations: 1.824 MB / 418.8 MB, free: 7.863 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002619/0.2642, allocations: 1.259 MB / 420.1 MB, free: 6.602 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004498/0.2687, allocations: 4.8 MB / 424.9 MB, free: 1.559 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002735/0.2714, allocations: 413.4 kB / 425.3 MB, free: 1.156 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004392/0.2718, allocations: 344 kB / 425.6 MB, free: 0.8203 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.001191/0.273, allocations: 0.6257 MB / 426.2 MB, free: 188 kB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004328/0.2734, allocations: 318.3 kB / 426.5 MB, free: 15.87 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003744/0.2738, allocations: 331.4 kB / 426.9 MB, free: 15.53 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002132/0.276, allocations: 1.129 MB / 428 MB, free: 14.38 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.939e-06/0.276, allocations: 8 kB / 428 MB, free: 14.38 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.57e-05/0.276, allocations: 11.91 kB / 428 MB, free: 14.36 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00754/0.2835, allocations: 5.586 MB / 433.6 MB, free: 8.691 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.014e-06/0.2835, allocations: 0 / 433.6 MB, free: 8.691 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005986/0.2841, allocations: 231.7 kB / 433.8 MB, free: 8.465 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0014/0.2855, allocations: 0.5602 MB / 434.4 MB, free: 7.887 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.504e-05/0.2856, allocations: 35.97 kB / 434.4 MB, free: 7.852 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002668/0.2883, allocations: 4.233 MB / 438.7 MB, free: 3.379 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007804/0.2891, allocations: 1.913 MB / 440.6 MB, free: 1.332 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1129/0.402, allocations: 2.536 MB / 443.1 MB, free: 129.5 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007775/0.4027, allocations: 281.2 kB / 443.4 MB, free: 129.5 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002735/0.403, allocations: 25.33 kB / 443.4 MB, free: 129.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008197/0.4038, allocations: 151.6 kB / 443.6 MB, free: 129.5 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002264/0.4041, allocations: 101.7 kB / 443.7 MB, free: 129.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.071e-05/0.4041, allocations: 40.77 kB / 443.7 MB, free: 129.5 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001932/0.4061, allocations: 1.335 MB / 445 MB, free: 129.3 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4061, allocations: 0 / 445 MB, free: 129.3 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003008/0.4091, allocations: 1.001 MB / 446 MB, free: 129.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.0004001/0.4095, allocations: 174 kB / 446.2 MB, free: 129.2 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005018/0.4145, allocations: 3.38 MB / 449.6 MB, free: 128.5 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.157e-06/0.4145, allocations: 1.5 kB / 449.6 MB, free: 128.5 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001859/0.4164, allocations: 1.308 MB / 450.9 MB, free: 128.1 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001495/0.4179, allocations: 375.2 kB / 451.3 MB, free: 128.1 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00853/0.4264, allocations: 6.851 MB / 458.1 MB, free: 125.2 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008184/0.4272, allocations: 1.063 MB / 459.2 MB, free: 125 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.00205/0.4292, allocations: 1.444 MB / 460.6 MB, free: 124.9 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003783/0.4296, allocations: 200.9 kB / 460.8 MB, free: 124.9 MB / 394.7 MB Notification: Performance of SimCode: time 2.074e-06/0.4296, allocations: 4 kB / 460.8 MB, free: 124.9 MB / 394.7 MB Notification: Performance of Templates: time 0.0402/0.4698, allocations: 31.9 MB / 492.7 MB, free: 98.5 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: 3.8262639129534364]