Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001222/0.001222, allocations: 109.1 kB / 21.22 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001355/0.001355, allocations: 208.7 kB / 24.51 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.422/1.422, allocations: 230.5 MB / 258.2 MB, free: 7.828 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001933/0.001933, allocations: 63.91 kB / 378.5 MB, free: 2.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2965/0.2984, allocations: 53.41 MB / 431.9 MB, free: 6.484 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.008052/0.3065, allocations: 6.139 MB / 438 MB, free: 328 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00581/0.3123, allocations: 2.929 MB / 441 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006155/0.3129, allocations: 43.81 kB / 441 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001558/0.3145, allocations: 0.6574 MB / 441.7 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003459/0.3179, allocations: 1.401 MB / 443.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001039/0.319, allocations: 0.4951 MB / 443.6 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004865/0.3238, allocations: 3.213 MB / 446.8 MB, free: 7.559 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001152/0.325, allocations: 492.5 kB / 447.3 MB, free: 7.066 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001355/0.3263, allocations: 0.8017 MB / 448.1 MB, free: 6.262 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00196/0.3283, allocations: 1.343 MB / 449.4 MB, free: 4.914 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00044/0.3287, allocations: 128 kB / 449.5 MB, free: 4.789 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00206/0.3308, allocations: 0.8502 MB / 450.4 MB, free: 3.938 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001302/0.3321, allocations: 1.094 MB / 451.5 MB, free: 2.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001211/0.3333, allocations: 0.8807 MB / 452.4 MB, free: 1.953 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006339/0.3396, allocations: 4.03 MB / 456.4 MB, free: 13.9 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.045e-05/0.3396, allocations: 3.938 kB / 456.4 MB, free: 13.9 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.377e-06/0.3396, allocations: 4 kB / 456.4 MB, free: 13.89 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001577/0.3398, allocations: 0 / 456.4 MB, free: 13.89 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.009179/0.349, allocations: 3.207 MB / 459.6 MB, free: 10.64 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.501e-05/0.3491, allocations: 8.031 kB / 459.6 MB, free: 10.63 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.000104/0.3492, allocations: 54.94 kB / 459.7 MB, free: 10.58 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006796/0.3498, allocations: 441.4 kB / 460.1 MB, free: 10.14 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009039/0.3589, allocations: 2.035 MB / 462.1 MB, free: 8.098 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004825/0.3637, allocations: 2.009 MB / 464.1 MB, free: 6.059 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001105/0.3638, allocations: 114.6 kB / 464.3 MB, free: 5.945 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009394/0.3647, allocations: 299.5 kB / 464.6 MB, free: 5.652 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01654/0.3813, allocations: 8.223 MB / 472.8 MB, free: 12.86 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001309/0.3814, allocations: 35.7 kB / 472.8 MB, free: 12.82 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002787/0.3817, allocations: 79.89 kB / 472.9 MB, free: 12.75 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002378/0.3841, allocations: 1.405 MB / 474.3 MB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01995/0.404, allocations: 9.585 MB / 483.9 MB, free: 1.75 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04096/0.445, allocations: 29.54 MB / 0.5014 GB, free: 3.34 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01233/0.4573, allocations: 3.873 MB / 0.5052 GB, free: 15.41 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003246/0.4606, allocations: 2.081 MB / 0.5072 GB, free: 13.32 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.005e-05/0.4606, allocations: 12 kB / 0.5072 GB, free: 13.31 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.838e-05/0.4607, allocations: 54.5 kB / 0.5073 GB, free: 13.25 MB / 430.1 MB Notification: Performance of pre-optimization done (n=122): time 4.468e-06/0.4607, allocations: 0 / 0.5073 GB, free: 13.25 MB / 430.1 MB Notification: Performance of matching and sorting (n=136): time 0.04918/0.5099, allocations: 17.91 MB / 0.5248 GB, free: 11.22 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002699/0.5126, allocations: 3.021 MB / 0.5277 GB, free: 7.914 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004335/0.5169, allocations: 3 MB / 0.5306 GB, free: 4.895 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004472/0.5174, allocations: 41.7 kB / 0.5307 GB, free: 4.848 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001786/0.5191, allocations: 2.167 MB / 0.5328 GB, free: 2.66 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008329/0.52, allocations: 0.5854 MB / 0.5334 GB, free: 2.07 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001569/0.5215, allocations: 1.012 MB / 0.5343 GB, free: 1.047 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.5217, allocations: 309 kB / 0.5346 GB, free: 0.7422 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2411/0.7628, allocations: 2.57 MB / 0.5372 GB, free: 102.3 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006067/0.7689, allocations: 5.525 MB / 0.5425 GB, free: 97.9 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008188/0.7771, allocations: 8.516 MB / 0.5509 GB, free: 91.79 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001273/0.7772, allocations: 30.41 kB / 0.5509 GB, free: 91.79 MB / 446.1 MB Notification: Performance of matching and sorting (n=636) (initialization): time 0.01806/0.7952, allocations: 9.863 MB / 0.5605 GB, free: 85.54 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.932e-05/0.7953, allocations: 50.34 kB / 0.5606 GB, free: 85.49 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01002/0.8053, allocations: 5.093 MB / 0.5655 GB, free: 80.52 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008088/0.8134, allocations: 2.347 MB / 0.5678 GB, free: 78.15 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004012/0.8174, allocations: 1.24 MB / 0.569 GB, free: 76.91 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006757/0.8242, allocations: 8.233 MB / 0.5771 GB, free: 68.29 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004974/0.8292, allocations: 0.5663 MB / 0.5776 GB, free: 67.74 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007882/0.8299, allocations: 320.8 kB / 0.5779 GB, free: 67.43 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.002134/0.8321, allocations: 1.405 MB / 0.5793 GB, free: 66.08 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005187/0.8326, allocations: 270.9 kB / 0.5796 GB, free: 65.96 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007014/0.8333, allocations: 419.2 kB / 0.58 GB, free: 65.54 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009816/0.8431, allocations: 4.997 MB / 0.5849 GB, free: 60.52 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.3e-05/0.8431, allocations: 12 kB / 0.5849 GB, free: 60.51 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.486e-05/0.8432, allocations: 7.969 kB / 0.5849 GB, free: 60.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007722/0.8509, allocations: 4.825 MB / 0.5896 GB, free: 55.69 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.744e-06/0.8509, allocations: 0 / 0.5896 GB, free: 55.69 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001635/0.8525, allocations: 367.4 kB / 0.5899 GB, free: 55.33 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007574/0.8601, allocations: 2.386 MB / 0.5923 GB, free: 52.92 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003696/0.8605, allocations: 47.94 kB / 0.5923 GB, free: 52.87 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007606/0.8681, allocations: 8.993 MB / 0.6011 GB, free: 43.49 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001381/0.8695, allocations: 2.868 MB / 0.6039 GB, free: 40.39 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01451/0.884, allocations: 8.775 MB / 0.6125 GB, free: 31.59 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007346/0.8847, allocations: 259.5 kB / 0.6127 GB, free: 31.34 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004345/0.8851, allocations: 43.92 kB / 0.6128 GB, free: 31.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001954/0.8871, allocations: 311.4 kB / 0.6131 GB, free: 31 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004267/0.8875, allocations: 103.8 kB / 0.6132 GB, free: 30.89 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001702/0.8877, allocations: 55.95 kB / 0.6132 GB, free: 30.84 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002243/0.8899, allocations: 1.879 MB / 0.615 GB, free: 28.96 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.8899, allocations: 0 / 0.615 GB, free: 28.96 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004002/0.8939, allocations: 0.9475 MB / 0.616 GB, free: 28.02 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.01402/0.908, allocations: 9.42 MB / 0.6252 GB, free: 18.54 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01141/0.9194, allocations: 6.75 MB / 0.6318 GB, free: 11.75 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.372e-06/0.9194, allocations: 0 / 0.6318 GB, free: 11.75 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005292/0.9247, allocations: 3.258 MB / 0.6349 GB, free: 8.43 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002182/0.9269, allocations: 317.9 kB / 0.6352 GB, free: 8.125 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08808/1.015, allocations: 45.22 MB / 0.6794 GB, free: 6.578 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002476/1.017, allocations: 1.722 MB / 0.6811 GB, free: 4.824 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004193/1.022, allocations: 1.663 MB / 0.6827 GB, free: 3.156 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002181/1.024, allocations: 1.163 MB / 0.6838 GB, free: 1.992 MB / 494.1 MB Notification: Performance of SimCode: time 1.423e-06/1.024, allocations: 0 / 0.6838 GB, free: 1.992 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.027/2.051, allocations: 65.5 MB / 0.7478 GB, free: 180.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.71/21.76, allocations: 5.719 kB / 0.7478 GB, free: 180.3 MB / 0.5294 GB " [Timeout remaining time 638] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 25.468018223997205]