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.001283/0.001283, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.001419/0.001419, allocations: 169.9 kB / 24.91 MB, free: 8.723 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.881/0.881, allocations: 177.1 MB / 205.3 MB, free: 5.105 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.743e-06/1.743e-06, allocations: 0 / 273.5 MB, free: 1.176 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.38e-05/1.554e-05, allocations: 2.312 kB / 273.5 MB, free: 1.172 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.007765/0.00778, allocations: 9.852 MB / 283.3 MB, free: 7.277 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005181/0.01296, allocations: 3.869 MB / 287.2 MB, free: 3.395 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006049/0.01357, allocations: 75.62 kB / 287.2 MB, free: 3.32 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002279/0.01584, allocations: 2.468 MB / 289.7 MB, free: 0.8438 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.102/0.1178, allocations: 1.762 MB / 291.5 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001105/0.1189, allocations: 0.6713 MB / 292.2 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003785/0.1227, allocations: 3.886 MB / 296 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003134/0.1258, allocations: 2.846 MB / 298.9 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002609/0.1284, allocations: 2.086 MB / 301 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002148/0.1306, allocations: 1.899 MB / 302.9 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003458/0.1309, allocations: 297.6 kB / 303.2 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001227/0.1322, allocations: 1.08 MB / 304.2 MB, free: 12.94 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007722/0.1329, allocations: 1.818 MB / 306.1 MB, free: 12.17 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006317/0.1336, allocations: 1.135 MB / 307.2 MB, free: 11.57 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002082/0.1356, allocations: 4.048 MB / 311.2 MB, free: 9.281 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.1356, allocations: 0 / 311.2 MB, free: 9.281 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.1356, allocations: 0 / 311.2 MB, free: 9.281 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.875e-05/0.1357, allocations: 0 / 311.2 MB, free: 9.281 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.002826/0.1385, allocations: 3.917 MB / 315.2 MB, free: 5.656 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.86e-05/0.1385, allocations: 12.03 kB / 315.2 MB, free: 5.645 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002166/0.1407, allocations: 1.047 MB / 316.2 MB, free: 4.645 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001299/0.142, allocations: 1.571 MB / 317.8 MB, free: 3.18 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.515e-05/0.1421, allocations: 208.5 kB / 318 MB, free: 3.004 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004301/0.1425, allocations: 364.7 kB / 318.3 MB, free: 2.688 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003682/0.1462, allocations: 4.499 MB / 322.8 MB, free: 13.94 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.817e-05/0.1462, allocations: 33.28 kB / 322.9 MB, free: 13.93 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002319/0.1465, allocations: 140 kB / 323 MB, free: 13.82 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001251/0.1477, allocations: 1.464 MB / 324.5 MB, free: 12.38 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003356/0.1511, allocations: 2.388 MB / 326.9 MB, free: 10.19 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0158/0.1669, allocations: 27.5 MB / 354.4 MB, free: 14.71 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003102/0.17, allocations: 1.663 MB / 356 MB, free: 13.06 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003911/0.1704, allocations: 357.8 kB / 356.4 MB, free: 12.71 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003652/0.174, allocations: 3.588 MB / 360 MB, free: 9.152 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.576e-05/0.1741, allocations: 47.22 kB / 360 MB, free: 9.098 MB / 314.7 MB Notification: Performance of pre-optimization done (n=132): time 3.106e-06/0.1741, allocations: 0 / 360 MB, free: 9.098 MB / 314.7 MB Notification: Performance of matching and sorting (n=139): time 0.008312/0.1824, allocations: 4.067 MB / 364.1 MB, free: 5.035 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0006797/0.183, allocations: 1.487 MB / 365.6 MB, free: 3.434 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001741/0.1848, allocations: 2.807 MB / 368.4 MB, free: 1.117 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.612e-05/0.1849, allocations: 51.5 kB / 368.4 MB, free: 1.062 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001045/0.1859, allocations: 2.736 MB / 371.2 MB, free: 14.29 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003122/0.1862, allocations: 0.5854 MB / 371.7 MB, free: 13.7 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008029/0.187, allocations: 1.033 MB / 372.8 MB, free: 12.66 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.333e-05/0.1871, allocations: 309 kB / 373.1 MB, free: 12.36 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00102/0.1881, allocations: 0.7329 MB / 373.8 MB, free: 11.62 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002282/0.1904, allocations: 4.045 MB / 377.9 MB, free: 5.895 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003353/0.1937, allocations: 5.353 MB / 383.2 MB, free: 14.86 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-05/0.1938, allocations: 36 kB / 383.2 MB, free: 14.82 MB / 346.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.006045/0.1998, allocations: 4.212 MB / 387.5 MB, free: 10.58 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.452e-05/0.1999, allocations: 60 kB / 387.5 MB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003223/0.2031, allocations: 0.9675 MB / 388.5 MB, free: 9.539 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00321/0.2063, allocations: 0.5605 MB / 389 MB, free: 8.961 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001808/0.2081, allocations: 1.209 MB / 390.3 MB, free: 7.75 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002934/0.211, allocations: 3.16 MB / 393.4 MB, free: 4.406 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001626/0.2127, allocations: 247.7 kB / 393.7 MB, free: 4.164 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002463/0.2129, allocations: 300 kB / 393.9 MB, free: 3.871 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.0008388/0.2137, allocations: 0.5798 MB / 394.5 MB, free: 3.277 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000241/0.214, allocations: 179.8 kB / 394.7 MB, free: 3.102 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002803/0.2143, allocations: 323.4 kB / 395 MB, free: 2.773 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001332/0.2156, allocations: 0.6898 MB / 395.7 MB, free: 2.059 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.2156, allocations: 4 kB / 395.7 MB, free: 2.055 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.2156, allocations: 3.984 kB / 395.7 MB, free: 2.051 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004712/0.2203, allocations: 3.706 MB / 399.4 MB, free: 14.24 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.2203, allocations: 0 / 399.4 MB, free: 14.24 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004824/0.2208, allocations: 179.8 kB / 399.6 MB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00117/0.222, allocations: 0.4952 MB / 400.1 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.83e-05/0.222, allocations: 39.91 kB / 400.1 MB, free: 13.51 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001905/0.2239, allocations: 2.855 MB / 403 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0004651/0.2244, allocations: 1.346 MB / 404.3 MB, free: 9.012 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002101/0.2265, allocations: 1.856 MB / 406.2 MB, free: 7.105 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002212/0.2267, allocations: 265.9 kB / 406.4 MB, free: 6.844 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001922/0.2269, allocations: 31.98 kB / 406.5 MB, free: 6.812 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005344/0.2275, allocations: 24 kB / 406.5 MB, free: 6.789 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000129/0.2276, allocations: 88.41 kB / 406.6 MB, free: 6.703 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.179e-05/0.2277, allocations: 39.97 kB / 406.6 MB, free: 6.664 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007302/0.2284, allocations: 1.002 MB / 407.6 MB, free: 5.66 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2284, allocations: 3.938 kB / 407.6 MB, free: 5.656 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002282/0.2307, allocations: 1.004 MB / 408.6 MB, free: 4.652 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.0002863/0.231, allocations: 160.1 kB / 408.8 MB, free: 4.488 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002911/0.2339, allocations: 2.693 MB / 411.5 MB, free: 1.777 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001272/0.234, allocations: 88.91 kB / 411.6 MB, free: 1.684 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001134/0.2351, allocations: 0.8512 MB / 412.4 MB, free: 0.7891 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001242/0.2364, allocations: 0.5344 MB / 413 MB, free: 268 kB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006124/0.2425, allocations: 6.584 MB / 419.5 MB, free: 9.582 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008229/0.2433, allocations: 1.057 MB / 420.6 MB, free: 8.5 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000929/0.2442, allocations: 439.9 kB / 421 MB, free: 8.066 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006979/0.2449, allocations: 0.4894 MB / 421.5 MB, free: 7.578 MB / 378.7 MB Notification: Performance of SimCode: time 1.162e-06/0.2449, allocations: 0 / 421.5 MB, free: 7.578 MB / 378.7 MB Notification: Performance of Templates: time 0.1324/0.3773, allocations: 34.41 MB / 455.9 MB, free: 104.8 MB / 378.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.5218313937075436]