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.001395/0.001396, allocations: 114.3 kB / 16.63 MB, free: 6.812 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.001691/0.001691, allocations: 190 kB / 17.55 MB, free: 5.934 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.2 MB, free: 15.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001002/0.001002, allocations: 46.89 kB / 300.2 MB, free: 6.078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08195/0.08297, allocations: 49.45 MB / 349.7 MB, free: 4.617 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.01322/0.09623, allocations: 13.95 MB / 363.6 MB, free: 6.598 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007298/0.1036, allocations: 4.206 MB / 367.8 MB, free: 2.379 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001581/0.1052, allocations: 51.88 kB / 367.9 MB, free: 2.328 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001336/0.1065, allocations: 0.6268 MB / 368.5 MB, free: 1.699 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0024/0.109, allocations: 1.313 MB / 369.8 MB, free: 392 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1392/0.2482, allocations: 467.8 kB / 370.3 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004218/0.2525, allocations: 3.123 MB / 373.4 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006982/0.2532, allocations: 472.1 kB / 373.9 MB, free: 9.332 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00105/0.2542, allocations: 0.8049 MB / 374.7 MB, free: 9.305 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001457/0.2557, allocations: 1.365 MB / 376 MB, free: 9.164 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002649/0.256, allocations: 133.3 kB / 376.2 MB, free: 9.164 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001646/0.2576, allocations: 0.9706 MB / 377.1 MB, free: 9.164 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001034/0.2587, allocations: 1.103 MB / 378.3 MB, free: 9.043 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001009/0.2597, allocations: 1.254 MB / 379.5 MB, free: 8.562 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004348/0.2641, allocations: 3.924 MB / 383.4 MB, free: 7.988 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.2641, allocations: 3.406 kB / 383.4 MB, free: 7.988 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.215e-06/0.2641, allocations: 0 / 383.4 MB, free: 7.988 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.457e-05/0.2642, allocations: 0 / 383.4 MB, free: 7.988 MB / 302.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.007066/0.2713, allocations: 3.231 MB / 386.7 MB, free: 6.238 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.2713, allocations: 10.25 kB / 386.7 MB, free: 6.238 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004927/0.2718, allocations: 439.3 kB / 387.1 MB, free: 5.965 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007823/0.2796, allocations: 1.912 MB / 389 MB, free: 4.992 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003451/0.2831, allocations: 2.235 MB / 391.2 MB, free: 3.758 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.02e-05/0.2832, allocations: 112.6 kB / 391.4 MB, free: 3.73 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008718/0.2841, allocations: 303.3 kB / 391.7 MB, free: 3.645 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01256/0.2967, allocations: 8.223 MB / 399.9 MB, free: 13.62 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.37e-05/0.2967, allocations: 37.06 kB / 399.9 MB, free: 13.6 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002704/0.297, allocations: 80.73 kB / 400 MB, free: 13.55 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002159/0.2992, allocations: 1.401 MB / 401.4 MB, free: 12.17 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01756/0.3168, allocations: 9.541 MB / 410.9 MB, free: 2.785 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03785/0.3547, allocations: 30.53 MB / 441.5 MB, free: 3.648 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0119/0.3666, allocations: 4.393 MB / 445.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002912/0.3695, allocations: 2.11 MB / 448 MB, free: 12.98 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001114/0.3697, allocations: 19.36 kB / 448 MB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.438e-05/0.3697, allocations: 54.53 kB / 448 MB, free: 12.9 MB / 366.1 MB Notification: Performance of pre-optimization done (n=122): time 3.296e-06/0.3697, allocations: 0 / 448 MB, free: 12.9 MB / 366.1 MB Notification: Performance of matching and sorting (n=136): time 0.05113/0.4209, allocations: 18.31 MB / 466.4 MB, free: 10.32 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002622/0.4235, allocations: 3.227 MB / 469.6 MB, free: 6.754 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006038/0.4296, allocations: 2.999 MB / 472.6 MB, free: 3.734 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006044/0.4302, allocations: 45.7 kB / 472.6 MB, free: 3.684 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001572/0.4318, allocations: 2.081 MB / 474.7 MB, free: 1.609 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001067/0.4329, allocations: 0.5603 MB / 475.3 MB, free: 1.055 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002627/0.4355, allocations: 1.002 MB / 476.3 MB, free: 44 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001352/0.4357, allocations: 301.2 kB / 476.6 MB, free: 15.75 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004769/0.4404, allocations: 2.582 MB / 479.1 MB, free: 13.16 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007898/0.4484, allocations: 5.52 MB / 484.7 MB, free: 6.168 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01258/0.461, allocations: 8.522 MB / 493.2 MB, free: 12.19 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001432/0.4612, allocations: 32 kB / 493.2 MB, free: 12.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=636) (initialization): time 0.02694/0.4881, allocations: 9.861 MB / 0.4913 GB, free: 2.266 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001412/0.4883, allocations: 58.44 kB / 0.4913 GB, free: 2.211 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01367/0.502, allocations: 5.106 MB / 0.4963 GB, free: 13.08 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008924/0.511, allocations: 2.355 MB / 0.4986 GB, free: 10.7 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004555/0.5156, allocations: 1.232 MB / 0.4998 GB, free: 9.461 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009278/0.5249, allocations: 8.691 MB / 0.5083 GB, free: 224 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004925/0.5298, allocations: 0.5616 MB / 0.5089 GB, free: 15.66 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009186/0.5307, allocations: 314 kB / 0.5092 GB, free: 15.35 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.002765/0.5335, allocations: 1.421 MB / 0.5106 GB, free: 13.92 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006231/0.5342, allocations: 264.6 kB / 0.5108 GB, free: 13.66 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000992/0.5352, allocations: 415.6 kB / 0.5112 GB, free: 13.24 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01119/0.5464, allocations: 5.006 MB / 0.5161 GB, free: 8.199 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.846e-05/0.5464, allocations: 8 kB / 0.5161 GB, free: 8.191 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.605e-05/0.5464, allocations: 11.91 kB / 0.5161 GB, free: 8.18 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00867/0.5551, allocations: 5.364 MB / 0.5214 GB, free: 2.762 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.148e-05/0.5551, allocations: 0 / 0.5214 GB, free: 2.762 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00172/0.5568, allocations: 371.3 kB / 0.5217 GB, free: 2.398 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1692/0.726, allocations: 2.383 MB / 0.524 GB, free: 149.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000748/0.7268, allocations: 48.77 kB / 0.5241 GB, free: 149.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009166/0.736, allocations: 9.439 MB / 0.5333 GB, free: 144.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001395/0.7374, allocations: 3.073 MB / 0.5363 GB, free: 141.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01634/0.7538, allocations: 8.768 MB / 0.5449 GB, free: 138.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007202/0.7545, allocations: 321 kB / 0.5452 GB, free: 138.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004706/0.755, allocations: 44.59 kB / 0.5452 GB, free: 138.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002093/0.7571, allocations: 315.4 kB / 0.5455 GB, free: 138.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004423/0.7576, allocations: 104.6 kB / 0.5456 GB, free: 138.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001769/0.7577, allocations: 50.52 kB / 0.5457 GB, free: 138.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002625/0.7604, allocations: 1.877 MB / 0.5475 GB, free: 138.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.102e-06/0.7604, allocations: 0 / 0.5475 GB, free: 138.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003627/0.764, allocations: 0.9641 MB / 0.5484 GB, free: 138.1 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.01422/0.7782, allocations: 9.424 MB / 0.5576 GB, free: 134.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0104/0.7887, allocations: 7.536 MB / 0.565 GB, free: 128.9 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.7887, allocations: 0 / 0.565 GB, free: 128.9 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005349/0.7941, allocations: 3.648 MB / 0.5686 GB, free: 125.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002273/0.7964, allocations: 309.8 kB / 0.5689 GB, free: 125 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06596/0.8623, allocations: 49.05 MB / 0.6167 GB, free: 70.43 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00179/0.8642, allocations: 2.294 MB / 0.619 GB, free: 68.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003691/0.8679, allocations: 1.663 MB / 0.6206 GB, free: 66.43 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00144/0.8693, allocations: 1.166 MB / 0.6218 GB, free: 65.26 MB / 446.1 MB Notification: Performance of SimCode: time 1.052e-06/0.8693, allocations: 0 / 0.6218 GB, free: 65.26 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4923/1.362, allocations: 65.86 MB / 0.6861 GB, free: 143.4 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000167/1.362, allocations: 253.8 kB / 0.6863 GB, free: 143.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.403/4.765, allocations: 3.375 kB / 0.6863 GB, free: 143.2 MB / 446.1 MB (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