Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.002775/0.002775, allocations: 113.2 kB / 20.43 MB, free: 1.449 MB / 14.72 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.003381/0.003381, allocations: 214.4 kB / 23.74 MB, free: 4.656 MB / 14.72 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 1.772/1.772, allocations: 230.6 MB / 257.5 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001756/0.001756, allocations: 47.92 kB / 377.8 MB, free: 3.121 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2765/0.2783, allocations: 53.37 MB / 431.1 MB, free: 6.84 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.01036/0.2886, allocations: 7.011 MB / 438.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00675/0.2954, allocations: 3.15 MB / 441.3 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001059/0.2964, allocations: 35.88 kB / 441.3 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001795/0.2982, allocations: 0.6808 MB / 442 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003429/0.3017, allocations: 1.394 MB / 443.4 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001074/0.3027, allocations: 0.4913 MB / 443.9 MB, free: 10.03 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004291/0.307, allocations: 3.206 MB / 447.1 MB, free: 6.816 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007398/0.3078, allocations: 498.3 kB / 447.6 MB, free: 6.316 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001089/0.3089, allocations: 0.8018 MB / 448.4 MB, free: 5.512 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001937/0.3108, allocations: 1.335 MB / 449.7 MB, free: 4.172 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003184/0.3111, allocations: 132 kB / 449.9 MB, free: 4.043 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001898/0.313, allocations: 0.9749 MB / 450.8 MB, free: 3.066 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001187/0.3142, allocations: 1.094 MB / 451.9 MB, free: 1.969 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001391/0.3156, allocations: 1.215 MB / 453.2 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005299/0.3209, allocations: 4.03 MB / 457.2 MB, free: 12.7 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.3209, allocations: 3.984 kB / 457.2 MB, free: 12.7 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.3209, allocations: 4 kB / 457.2 MB, free: 12.7 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.643e-05/0.3209, allocations: 0 / 457.2 MB, free: 12.7 MB / 366.1 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.006641/0.3276, allocations: 3.203 MB / 460.4 MB, free: 9.445 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.395e-05/0.3276, allocations: 8.031 kB / 460.4 MB, free: 9.438 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005656/0.3282, allocations: 437.4 kB / 460.8 MB, free: 9 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008439/0.3366, allocations: 2.043 MB / 462.9 MB, free: 6.953 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004296/0.3409, allocations: 2.002 MB / 464.9 MB, free: 4.918 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001089/0.3411, allocations: 106.6 kB / 465 MB, free: 4.812 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000922/0.342, allocations: 307.5 kB / 465.3 MB, free: 4.512 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01555/0.3575, allocations: 8.215 MB / 473.5 MB, free: 11.73 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.06e-05/0.3576, allocations: 39.64 kB / 473.5 MB, free: 11.69 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002905/0.3579, allocations: 75.89 kB / 473.6 MB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002243/0.3601, allocations: 1.401 MB / 475 MB, free: 10.21 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01938/0.3795, allocations: 9.585 MB / 484.6 MB, free: 0.6211 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0423/0.4218, allocations: 30.44 MB / 0.503 GB, free: 1.309 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01179/0.4336, allocations: 3.881 MB / 0.5068 GB, free: 13.38 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003205/0.4368, allocations: 2.078 MB / 0.5088 GB, free: 11.29 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001021/0.4369, allocations: 15.98 kB / 0.5088 GB, free: 11.27 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.276e-05/0.437, allocations: 50.5 kB / 0.5088 GB, free: 11.21 MB / 430.1 MB Notification: Performance of pre-optimization done (n=122): time 4.709e-06/0.437, allocations: 0 / 0.5088 GB, free: 11.21 MB / 430.1 MB Notification: Performance of matching and sorting (n=136): time 0.04727/0.4843, allocations: 17.86 MB / 0.5263 GB, free: 9.223 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002784/0.4871, allocations: 3.017 MB / 0.5292 GB, free: 5.918 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004469/0.4915, allocations: 3.007 MB / 0.5322 GB, free: 2.891 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004914/0.492, allocations: 45.64 kB / 0.5322 GB, free: 2.84 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001842/0.4939, allocations: 2.167 MB / 0.5343 GB, free: 0.6523 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001054/0.4949, allocations: 0.5854 MB / 0.5349 GB, free: 64 kB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.237/0.7319, allocations: 1.007 MB / 0.5359 GB, free: 101.6 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.702e-05/0.732, allocations: 309 kB / 0.5362 GB, free: 101.3 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005184/0.7371, allocations: 2.575 MB / 0.5387 GB, free: 100.9 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006515/0.7436, allocations: 5.532 MB / 0.5441 GB, free: 96.15 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008677/0.7523, allocations: 8.506 MB / 0.5524 GB, free: 89.89 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.905e-05/0.7524, allocations: 31.28 kB / 0.5524 GB, free: 89.89 MB / 446.1 MB Notification: Performance of matching and sorting (n=636) (initialization): time 0.02009/0.7725, allocations: 9.871 MB / 0.5621 GB, free: 83.98 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.625e-05/0.7725, allocations: 48 kB / 0.5621 GB, free: 83.93 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01057/0.7831, allocations: 5.098 MB / 0.5671 GB, free: 79.08 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008219/0.7913, allocations: 2.355 MB / 0.5694 GB, free: 76.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004328/0.7957, allocations: 1.233 MB / 0.5706 GB, free: 75.46 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007059/0.8027, allocations: 8.272 MB / 0.5787 GB, free: 66.81 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005461/0.8082, allocations: 0.5603 MB / 0.5792 GB, free: 66.27 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001111/0.8093, allocations: 323.8 kB / 0.5795 GB, free: 65.95 MB / 446.1 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.003468/0.8128, allocations: 1.41 MB / 0.5809 GB, free: 64.59 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000898/0.8137, allocations: 266.6 kB / 0.5812 GB, free: 64.48 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001169/0.8148, allocations: 419.1 kB / 0.5816 GB, free: 64.06 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01016/0.825, allocations: 4.999 MB / 0.5865 GB, free: 59.04 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.585e-05/0.825, allocations: 7.938 kB / 0.5865 GB, free: 59.03 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.446e-05/0.8251, allocations: 6.609 kB / 0.5865 GB, free: 59.03 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009197/0.8342, allocations: 5.285 MB / 0.5916 GB, free: 53.76 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.496e-05/0.8343, allocations: 0 / 0.5916 GB, free: 53.76 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001716/0.836, allocations: 371.4 kB / 0.592 GB, free: 53.39 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007631/0.8436, allocations: 2.383 MB / 0.5943 GB, free: 50.98 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005073/0.8441, allocations: 47.94 kB / 0.5944 GB, free: 50.94 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007663/0.8518, allocations: 9.03 MB / 0.6032 GB, free: 41.46 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001629/0.8534, allocations: 2.868 MB / 0.606 GB, free: 38.34 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01566/0.8691, allocations: 8.771 MB / 0.6145 GB, free: 29.53 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007932/0.8699, allocations: 263.4 kB / 0.6148 GB, free: 29.28 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009662/0.8708, allocations: 39.98 kB / 0.6148 GB, free: 29.24 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002648/0.8735, allocations: 315.4 kB / 0.6151 GB, free: 28.93 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005834/0.8741, allocations: 107.8 kB / 0.6152 GB, free: 28.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002869/0.8744, allocations: 51.95 kB / 0.6153 GB, free: 28.77 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003059/0.8774, allocations: 1.875 MB / 0.6171 GB, free: 26.89 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.81e-07/0.8774, allocations: 0 / 0.6171 GB, free: 26.89 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005076/0.8825, allocations: 0.9454 MB / 0.618 GB, free: 25.96 MB / 446.1 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.01468/0.8972, allocations: 9.412 MB / 0.6272 GB, free: 16.49 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01081/0.908, allocations: 6.768 MB / 0.6338 GB, free: 9.684 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.274e-06/0.908, allocations: 192 / 0.6338 GB, free: 9.684 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005682/0.9137, allocations: 3.258 MB / 0.637 GB, free: 6.363 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002668/0.9163, allocations: 317.9 kB / 0.6373 GB, free: 6.062 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09488/1.011, allocations: 45.24 MB / 0.6815 GB, free: 4.488 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002886/1.014, allocations: 2.282 MB / 0.6837 GB, free: 2.176 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00435/1.018, allocations: 1.667 MB / 0.6854 GB, free: 0.5039 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002111/1.021, allocations: 1.166 MB / 0.6865 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of SimCode: time 1.343e-06/1.021, allocations: 0 / 0.6865 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3887/1.409, allocations: 67.25 MB / 0.7522 GB, free: 181.5 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.07/21.48, allocations: 12.89 kB / 0.7522 GB, free: 181.5 MB / 0.5294 GB " [Timeout remaining time 638] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravity/PointGravity.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 24.98938417993486]