Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001512/0.001512, allocations: 104.9 kB / 17.06 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001733/0.001733, allocations: 195 kB / 17.99 MB, free: 5.109 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.307/1.307, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001104/0.001104, allocations: 43.94 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2341/0.2352, allocations: 49.44 MB / 400.2 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.007004/0.2423, allocations: 6.974 MB / 407.2 MB, free: 1.812 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004877/0.2472, allocations: 3.096 MB / 410.3 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005771/0.2478, allocations: 31.94 kB / 410.3 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001394/0.2493, allocations: 0.6653 MB / 411 MB, free: 14.01 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002689/0.252, allocations: 1.39 MB / 412.4 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001039/0.253, allocations: 0.4951 MB / 412.9 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003909/0.257, allocations: 3.124 MB / 416 MB, free: 8.984 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007022/0.2577, allocations: 451.1 kB / 416.5 MB, free: 8.531 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001151/0.2588, allocations: 0.7977 MB / 417.3 MB, free: 7.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001599/0.2605, allocations: 1.211 MB / 418.5 MB, free: 6.516 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003494/0.2608, allocations: 128 kB / 418.6 MB, free: 6.391 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00183/0.2627, allocations: 0.9632 MB / 419.6 MB, free: 5.426 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001115/0.2638, allocations: 1.075 MB / 420.6 MB, free: 4.348 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00138/0.2652, allocations: 1.234 MB / 421.9 MB, free: 3.105 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004536/0.2697, allocations: 4.057 MB / 425.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.2697, allocations: 4 kB / 425.9 MB, free: 15.03 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.2698, allocations: 0 / 425.9 MB, free: 15.03 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.676e-05/0.2698, allocations: 0 / 425.9 MB, free: 15.03 MB / 350.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.006709/0.2765, allocations: 3.232 MB / 429.2 MB, free: 11.74 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.714e-05/0.2766, allocations: 8.031 kB / 429.2 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005301/0.2771, allocations: 441.4 kB / 429.6 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008036/0.2852, allocations: 1.908 MB / 431.5 MB, free: 9.375 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004813/0.29, allocations: 2.253 MB / 433.8 MB, free: 7.074 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001219/0.2902, allocations: 114.6 kB / 433.9 MB, free: 6.961 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009865/0.2911, allocations: 303.4 kB / 434.2 MB, free: 6.664 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01503/0.3062, allocations: 8.227 MB / 442.4 MB, free: 13.87 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.653e-05/0.3063, allocations: 43.58 kB / 442.4 MB, free: 13.83 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002876/0.3066, allocations: 75.89 kB / 442.5 MB, free: 13.75 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002283/0.3089, allocations: 1.393 MB / 443.9 MB, free: 12.35 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.018/0.3269, allocations: 9.546 MB / 453.4 MB, free: 2.797 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03851/0.3655, allocations: 30.46 MB / 483.9 MB, free: 3.48 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01225/0.3778, allocations: 4.368 MB / 488.3 MB, free: 14.95 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003035/0.3809, allocations: 2.117 MB / 490.4 MB, free: 12.82 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.937e-05/0.381, allocations: 16.95 kB / 490.4 MB, free: 12.8 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.551e-05/0.381, allocations: 54.48 kB / 490.5 MB, free: 12.74 MB / 414.1 MB Notification: Performance of pre-optimization done (n=122): time 4.758e-06/0.3811, allocations: 224 / 490.5 MB, free: 12.74 MB / 414.1 MB Notification: Performance of matching and sorting (n=136): time 0.04683/0.4279, allocations: 18.32 MB / 0.4969 GB, free: 10.14 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002533/0.4305, allocations: 3.239 MB / 0.5 GB, free: 6.566 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004973/0.4355, allocations: 2.999 MB / 0.5029 GB, free: 3.547 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008995/0.4364, allocations: 45.69 kB / 0.503 GB, free: 3.496 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002005/0.4385, allocations: 2.079 MB / 0.505 GB, free: 1.387 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001529/0.44, allocations: 0.571 MB / 0.5056 GB, free: 0.8086 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002026/0.442, allocations: 1.003 MB / 0.5066 GB, free: 15.79 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001122/0.4422, allocations: 305.1 kB / 0.5068 GB, free: 15.49 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004259/0.4464, allocations: 2.578 MB / 0.5094 GB, free: 12.91 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006753/0.4532, allocations: 5.521 MB / 0.5148 GB, free: 5.91 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01208/0.4654, allocations: 8.513 MB / 0.5231 GB, free: 11.93 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001039/0.4655, allocations: 28 kB / 0.5231 GB, free: 11.91 MB / 462.1 MB Notification: Performance of matching and sorting (n=636) (initialization): time 0.02241/0.4879, allocations: 9.866 MB / 0.5327 GB, free: 2.004 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.295e-05/0.488, allocations: 48 kB / 0.5328 GB, free: 1.957 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.3478/0.8358, allocations: 5.1 MB / 0.5378 GB, free: 128.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008817/0.8447, allocations: 2.35 MB / 0.5401 GB, free: 128 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004665/0.8494, allocations: 1.237 MB / 0.5413 GB, free: 128 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00768/0.8571, allocations: 8.676 MB / 0.5497 GB, free: 121.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005853/0.863, allocations: 0.5644 MB / 0.5503 GB, free: 121.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00121/0.8643, allocations: 311 kB / 0.5506 GB, free: 121.8 MB / 462.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.003142/0.8674, allocations: 1.418 MB / 0.552 GB, free: 121.2 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000805/0.8683, allocations: 256.9 kB / 0.5522 GB, free: 121.2 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007794/0.8691, allocations: 417.3 kB / 0.5526 GB, free: 120.9 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01092/0.88, allocations: 5.019 MB / 0.5575 GB, free: 118 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.821e-05/0.88, allocations: 7.312 kB / 0.5575 GB, free: 118 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.136e-05/0.8801, allocations: 7.969 kB / 0.5575 GB, free: 118 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009323/0.8894, allocations: 5.351 MB / 0.5627 GB, free: 112.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.62e-05/0.8895, allocations: 3.984 kB / 0.5628 GB, free: 112.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001805/0.8913, allocations: 371.3 kB / 0.5631 GB, free: 112.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008207/0.8995, allocations: 2.382 MB / 0.5654 GB, free: 109.9 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006298/0.9002, allocations: 59.88 kB / 0.5655 GB, free: 109.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007931/0.9081, allocations: 9.436 MB / 0.5747 GB, free: 99.97 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001561/0.9097, allocations: 3.066 MB / 0.5777 GB, free: 96.64 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01533/0.9251, allocations: 8.766 MB / 0.5863 GB, free: 87.98 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009516/0.9261, allocations: 323.1 kB / 0.5866 GB, free: 87.64 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004922/0.9266, allocations: 39.19 kB / 0.5866 GB, free: 87.61 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002062/0.9287, allocations: 322.1 kB / 0.5869 GB, free: 87.3 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004555/0.9291, allocations: 106.9 kB / 0.587 GB, free: 87.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001731/0.9293, allocations: 51.95 kB / 0.5871 GB, free: 87.14 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002495/0.9318, allocations: 1.872 MB / 0.5889 GB, free: 85.27 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.9318, allocations: 4 kB / 0.5889 GB, free: 85.27 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004626/0.9365, allocations: 0.963 MB / 0.5898 GB, free: 84.31 MB / 462.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.01589/0.9524, allocations: 9.427 MB / 0.599 GB, free: 74.85 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01144/0.9639, allocations: 7.264 MB / 0.6061 GB, free: 67.48 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.624e-06/0.9639, allocations: 0 / 0.6061 GB, free: 67.48 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005762/0.9697, allocations: 3.642 MB / 0.6097 GB, free: 63.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002582/0.9723, allocations: 316.2 kB / 0.61 GB, free: 63.39 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07354/1.046, allocations: 45.11 MB / 0.654 GB, free: 13.97 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001959/1.048, allocations: 2.293 MB / 0.6563 GB, free: 11.64 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003558/1.051, allocations: 1.663 MB / 0.6579 GB, free: 9.973 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001899/1.053, allocations: 1.167 MB / 0.659 GB, free: 8.805 MB / 462.1 MB Notification: Performance of SimCode: time 1.924e-06/1.053, allocations: 3.938 kB / 0.659 GB, free: 8.801 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.851/2.904, allocations: 63.96 MB / 0.7215 GB, free: 9.191 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.45/24.35, allocations: 0 / 0.7215 GB, free: 9.191 MB / 0.5137 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravity/PointGravity.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches