Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.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.001276/0.001276, allocations: 87.62 kB / 21.43 MB, free: 3.121 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.006207/0.006207, allocations: 164.6 kB / 24.69 MB, free: 9.43 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9759/0.9759, allocations: 158.6 MB / 186.5 MB, free: 3.039 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.094e-06/2.094e-06, allocations: 0 / 298.4 MB, free: 3.512 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.881e-05/2.09e-05, allocations: 2.281 kB / 298.4 MB, free: 3.508 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.1744/0.1744, allocations: 6.214 MB / 304.7 MB, free: 12.5 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.004347/0.1788, allocations: 2.914 MB / 307.6 MB, free: 11.08 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005202/0.1793, allocations: 43.34 kB / 307.6 MB, free: 11.07 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0012/0.1805, allocations: 0.6864 MB / 308.3 MB, free: 10.79 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002317/0.1828, allocations: 1.466 MB / 309.8 MB, free: 10.17 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008727/0.1837, allocations: 0.559 MB / 310.3 MB, free: 9.961 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.003487/0.1872, allocations: 3.728 MB / 314.1 MB, free: 8.801 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008821/0.1881, allocations: 0.6889 MB / 314.7 MB, free: 8.5 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001479/0.1895, allocations: 1.312 MB / 316.1 MB, free: 8.012 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001555/0.1911, allocations: 1.609 MB / 317.7 MB, free: 7.277 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002517/0.1913, allocations: 137.9 kB / 317.8 MB, free: 7.277 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001291/0.1926, allocations: 0.9067 MB / 318.7 MB, free: 6.887 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006849/0.1933, allocations: 1.183 MB / 319.9 MB, free: 6.207 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005234/0.1938, allocations: 0.6945 MB / 320.6 MB, free: 5.824 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002582/0.1964, allocations: 4.145 MB / 324.7 MB, free: 3.125 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.1964, allocations: 5.688 kB / 324.7 MB, free: 3.121 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.504e-06/0.1964, allocations: 0 / 324.7 MB, free: 3.121 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.88e-05/0.1965, allocations: 0 / 324.7 MB, free: 3.121 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.004113/0.2006, allocations: 3.366 MB / 328.1 MB, free: 0.8164 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.718e-05/0.2006, allocations: 13.58 kB / 328.1 MB, free: 0.8125 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003321/0.201, allocations: 441.6 kB / 328.5 MB, free: 0.5078 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004594/0.2055, allocations: 2.076 MB / 330.6 MB, free: 14.45 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002306/0.2079, allocations: 1.993 MB / 332.6 MB, free: 12.43 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.384e-05/0.2079, allocations: 107.2 kB / 332.7 MB, free: 12.33 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006022/0.2085, allocations: 311.4 kB / 333 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009424/0.218, allocations: 8.265 MB / 341.3 MB, free: 3.195 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.677e-05/0.218, allocations: 39.69 kB / 341.3 MB, free: 3.156 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001912/0.2182, allocations: 75.89 kB / 341.4 MB, free: 3.078 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001344/0.2196, allocations: 1.397 MB / 342.8 MB, free: 1.68 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01128/0.2308, allocations: 9.652 MB / 352.4 MB, free: 8.016 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03135/0.2622, allocations: 29.96 MB / 382.4 MB, free: 9.207 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01071/0.2729, allocations: 3.984 MB / 386.4 MB, free: 5.176 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002855/0.2758, allocations: 2.074 MB / 388.5 MB, free: 3.086 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.151e-05/0.2758, allocations: 16 kB / 388.5 MB, free: 3.07 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.97e-05/0.2759, allocations: 54.48 kB / 388.5 MB, free: 3.008 MB / 346.7 MB Notification: Performance of pre-optimization done (n=122): time 5.801e-06/0.2759, allocations: 0 / 388.5 MB, free: 3.008 MB / 346.7 MB Notification: Performance of matching and sorting (n=136): time 0.03105/0.3069, allocations: 18.52 MB / 407.1 MB, free: 364 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001968/0.3089, allocations: 3.021 MB / 410.1 MB, free: 13.05 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004246/0.3131, allocations: 3.585 MB / 413.7 MB, free: 9.445 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003007/0.3134, allocations: 41.7 kB / 413.7 MB, free: 9.398 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001248/0.3147, allocations: 2.168 MB / 415.9 MB, free: 7.211 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006183/0.3153, allocations: 0.5815 MB / 416.5 MB, free: 6.625 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001149/0.3164, allocations: 1.004 MB / 417.5 MB, free: 5.609 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.931e-05/0.3165, allocations: 301.1 kB / 417.8 MB, free: 5.312 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002904/0.3194, allocations: 2.726 MB / 420.5 MB, free: 2.578 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004336/0.3238, allocations: 5.684 MB / 426.2 MB, free: 11.42 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007474/0.3312, allocations: 8.754 MB / 434.9 MB, free: 1.199 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.741e-05/0.3313, allocations: 32 kB / 434.9 MB, free: 1.168 MB / 394.7 MB Notification: Performance of matching and sorting (n=636) (initialization): time 0.01887/0.3501, allocations: 11.96 MB / 446.9 MB, free: 5.164 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.045e-05/0.3502, allocations: 48.97 kB / 447 MB, free: 5.117 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01274/0.363, allocations: 7.13 MB / 454.1 MB, free: 13.96 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01157/0.3745, allocations: 4.55 MB / 458.6 MB, free: 9.375 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003604/0.3781, allocations: 1.252 MB / 459.9 MB, free: 8.121 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1572/0.5353, allocations: 12.05 MB / 471.9 MB, free: 131.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004293/0.5396, allocations: 0.7174 MB / 472.7 MB, free: 131.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004155/0.5401, allocations: 320.8 kB / 473 MB, free: 131.5 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 475 * Number of states: 0 () * Number of discrete variables: 18 (body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (584): * Single equations (assignments): 569 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 4 systems {(3,100.0%), (4,100.0%), (3,100.0%), (4,100.0%)} * Non-linear Jacobian (size): 2 systems {4, 4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001846/0.5419, allocations: 1.414 MB / 474.4 MB, free: 131.4 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003485/0.5422, allocations: 273.4 kB / 474.7 MB, free: 131.4 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004114/0.5427, allocations: 419.1 kB / 475.1 MB, free: 131.2 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007237/0.5499, allocations: 4.994 MB / 480.1 MB, free: 130 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.701e-05/0.5499, allocations: 5.062 kB / 480.1 MB, free: 130 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.841e-05/0.5499, allocations: 10.67 kB / 480.1 MB, free: 130 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006209/0.5561, allocations: 4.946 MB / 485 MB, free: 128.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.224e-06/0.5561, allocations: 6.094 kB / 485 MB, free: 128.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001008/0.5572, allocations: 374.2 kB / 485.4 MB, free: 128.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004394/0.5615, allocations: 2.384 MB / 487.8 MB, free: 127.8 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001344/0.5617, allocations: 50.41 kB / 487.8 MB, free: 127.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004866/0.5665, allocations: 9.011 MB / 496.8 MB, free: 121.9 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008358/0.5674, allocations: 2.847 MB / 499.7 MB, free: 119.2 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008629/0.576, allocations: 8.769 MB / 0.4965 GB, free: 116.4 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006159/0.5766, allocations: 334.7 kB / 0.4969 GB, free: 116.3 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002773/0.5769, allocations: 39.23 kB / 0.4969 GB, free: 116.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001295/0.5782, allocations: 411.3 kB / 0.4973 GB, free: 116.2 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003022/0.5785, allocations: 105.9 kB / 0.4974 GB, free: 116.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001012/0.5786, allocations: 54.14 kB / 0.4974 GB, free: 116.1 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002025/0.5806, allocations: 2.189 MB / 0.4996 GB, free: 114.9 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.5806, allocations: 0 / 0.4996 GB, free: 114.9 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002982/0.5836, allocations: 1.17 MB / 0.5007 GB, free: 113.7 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 24 ($STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.w_a[3],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.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 (92): * Single equations (assignments): 81 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 4 systems {(3,100.0%), (4,100.0%), (3,100.0%), (4,100.0%)} * Non-linear Jacobian (size): 2 systems {4, 4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (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.008735/0.5923, allocations: 9.444 MB / 0.5099 GB, free: 104.3 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007002/0.5993, allocations: 6.977 MB / 0.5167 GB, free: 97.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.5994, allocations: 0 / 0.5167 GB, free: 97.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003088/0.6024, allocations: 3.261 MB / 0.5199 GB, free: 93.97 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001716/0.6042, allocations: 323.3 kB / 0.5202 GB, free: 93.67 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0495/0.6537, allocations: 48.59 MB / 0.5677 GB, free: 40.77 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001196/0.6549, allocations: 1.731 MB / 0.5694 GB, free: 39 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002293/0.6571, allocations: 1.687 MB / 0.571 GB, free: 37.31 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001184/0.6583, allocations: 1.184 MB / 0.5722 GB, free: 36.12 MB / 426.7 MB Notification: Performance of SimCode: time 1.714e-06/0.6583, allocations: 4 kB / 0.5722 GB, free: 36.12 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2616/0.9199, allocations: 73.19 MB / 0.6437 GB, free: 143.5 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.17/11.09, allocations: 3.047 kB / 0.6437 GB, free: 143.5 MB / 442.7 MB " [Timeout remaining time 649] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravity/PointGravity.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.178974504582584]