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.001866/0.001866, allocations: 106.8 kB / 16.92 MB, free: 5.773 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.002209/0.002209, allocations: 191.3 kB / 17.85 MB, free: 5.168 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.672/2.672, allocations: 222.9 MB / 241.6 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001858/0.001858, allocations: 46.98 kB / 300.7 MB, free: 5.777 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1845/0.1864, allocations: 49.45 MB / 350.2 MB, free: 4.324 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.01248/0.1989, allocations: 6.974 MB / 357.1 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009594/0.2086, allocations: 3.099 MB / 360.2 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001624/0.2102, allocations: 31.94 kB / 360.3 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002771/0.2131, allocations: 0.6575 MB / 360.9 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005744/0.2189, allocations: 1.393 MB / 362.3 MB, free: 8.105 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001838/0.2207, allocations: 0.4951 MB / 362.8 MB, free: 7.609 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00666/0.2274, allocations: 3.124 MB / 365.9 MB, free: 4.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00147/0.2289, allocations: 451.1 kB / 366.4 MB, free: 4.027 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002199/0.2312, allocations: 0.7938 MB / 367.2 MB, free: 3.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003146/0.2344, allocations: 1.207 MB / 368.4 MB, free: 2.02 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001093/0.2355, allocations: 128 kB / 368.5 MB, free: 1.895 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003741/0.2393, allocations: 0.971 MB / 369.5 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2894/0.5287, allocations: 1.073 MB / 370.6 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003339/0.5321, allocations: 1.232 MB / 371.8 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009917/0.5421, allocations: 3.878 MB / 375.7 MB, free: 10.81 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.001e-05/0.5422, allocations: 1.375 kB / 375.7 MB, free: 10.81 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.366e-06/0.5422, allocations: 0 / 375.7 MB, free: 10.81 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002263/0.5424, allocations: 0 / 375.7 MB, free: 10.81 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.01938/0.5618, allocations: 3.233 MB / 378.9 MB, free: 9.477 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.459e-05/0.5619, allocations: 10.25 kB / 378.9 MB, free: 9.477 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002446/0.5644, allocations: 440.2 kB / 379.3 MB, free: 9.418 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01653/0.581, allocations: 1.907 MB / 381.2 MB, free: 9.246 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00823/0.5892, allocations: 2.233 MB / 383.5 MB, free: 8.809 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002723/0.5895, allocations: 119.6 kB / 383.6 MB, free: 8.801 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0025/0.5921, allocations: 299 kB / 383.9 MB, free: 8.793 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03062/0.6227, allocations: 8.222 MB / 392.1 MB, free: 4.906 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002912/0.6231, allocations: 35.31 kB / 392.1 MB, free: 4.902 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00143/0.6245, allocations: 88.5 kB / 392.2 MB, free: 4.871 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004153/0.6287, allocations: 1.394 MB / 393.6 MB, free: 4.344 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03291/0.6617, allocations: 9.537 MB / 403.2 MB, free: 13.97 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06945/0.7312, allocations: 30.55 MB / 433.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02295/0.7542, allocations: 4.367 MB / 438.1 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006044/0.7603, allocations: 2.117 MB / 440.2 MB, free: 8.234 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002007/0.7605, allocations: 14.27 kB / 440.2 MB, free: 8.227 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.427e-05/0.7606, allocations: 50.5 kB / 440.3 MB, free: 8.168 MB / 350.1 MB Notification: Performance of pre-optimization done (n=122): time 6.472e-06/0.7607, allocations: 0 / 440.3 MB, free: 8.168 MB / 350.1 MB Notification: Performance of matching and sorting (n=136): time 0.08682/0.8475, allocations: 18.3 MB / 458.6 MB, free: 5.637 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004748/0.8523, allocations: 3.251 MB / 461.8 MB, free: 2.07 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01123/0.8636, allocations: 2.998 MB / 464.8 MB, free: 15.05 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001205/0.8648, allocations: 41.7 kB / 464.8 MB, free: 15.01 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003578/0.8684, allocations: 2.077 MB / 466.9 MB, free: 12.94 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002174/0.8707, allocations: 0.5729 MB / 467.5 MB, free: 12.37 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007198/0.8779, allocations: 1.007 MB / 468.5 MB, free: 11.36 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000269/0.8782, allocations: 301.1 kB / 468.8 MB, free: 11.06 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009106/0.8874, allocations: 2.57 MB / 471.4 MB, free: 8.48 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01392/0.9013, allocations: 5.521 MB / 476.9 MB, free: 1.535 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02153/0.9229, allocations: 8.53 MB / 485.4 MB, free: 7.879 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001708/0.9232, allocations: 28 kB / 485.4 MB, free: 7.852 MB / 398.1 MB Notification: Performance of matching and sorting (n=636) (initialization): time 0.04315/0.9663, allocations: 9.861 MB / 495.3 MB, free: 13.96 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002308/0.9666, allocations: 52.22 kB / 495.4 MB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02403/0.9907, allocations: 5.107 MB / 0.4887 GB, free: 8.777 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01684/1.008, allocations: 2.363 MB / 0.491 GB, free: 6.387 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008916/1.017, allocations: 1.236 MB / 0.4922 GB, free: 5.148 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01742/1.034, allocations: 8.695 MB / 0.5007 GB, free: 11.89 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01126/1.045, allocations: 0.5615 MB / 0.5013 GB, free: 11.33 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002556/1.048, allocations: 312.9 kB / 0.5016 GB, free: 11.03 MB / 430.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.00747/1.055, allocations: 1.421 MB / 0.503 GB, free: 9.594 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0019/1.057, allocations: 256.6 kB / 0.5032 GB, free: 9.34 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002248/1.06, allocations: 415.3 kB / 0.5036 GB, free: 8.926 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02272/1.082, allocations: 5.006 MB / 0.5085 GB, free: 3.883 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.292e-05/1.083, allocations: 4 kB / 0.5085 GB, free: 3.879 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.645e-05/1.083, allocations: 11.92 kB / 0.5085 GB, free: 3.867 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02104/1.104, allocations: 5.355 MB / 0.5137 GB, free: 14.46 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.463e-05/1.104, allocations: 0 / 0.5137 GB, free: 14.46 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003698/1.108, allocations: 371.4 kB / 0.5141 GB, free: 14.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01601/1.124, allocations: 2.394 MB / 0.5164 GB, free: 11.68 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00119/1.125, allocations: 47.95 kB / 0.5165 GB, free: 11.63 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01766/1.143, allocations: 9.445 MB / 0.5257 GB, free: 1.633 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.3244/1.467, allocations: 3.069 MB / 0.5287 GB, free: 148.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03602/1.503, allocations: 8.76 MB / 0.5373 GB, free: 147.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001665/1.505, allocations: 323.2 kB / 0.5376 GB, free: 147.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001916/1.507, allocations: 39.88 kB / 0.5376 GB, free: 147.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005294/1.512, allocations: 315.1 kB / 0.5379 GB, free: 147.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001414/1.514, allocations: 107.4 kB / 0.538 GB, free: 147.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000769/1.514, allocations: 56.3 kB / 0.5381 GB, free: 147.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.008511/1.523, allocations: 1.873 MB / 0.5399 GB, free: 146.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.202e-06/1.523, allocations: 0 / 0.5399 GB, free: 146.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01231/1.535, allocations: 0.9565 MB / 0.5408 GB, free: 146.5 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.03379/1.569, allocations: 9.432 MB / 0.55 GB, free: 143.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.02229/1.592, allocations: 7.538 MB / 0.5574 GB, free: 139.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.087e-06/1.592, allocations: 0 / 0.5574 GB, free: 139.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01107/1.603, allocations: 3.659 MB / 0.561 GB, free: 135.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006291/1.609, allocations: 300.2 kB / 0.5613 GB, free: 135 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1453/1.754, allocations: 48.03 MB / 0.6082 GB, free: 81.63 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007185/1.762, allocations: 2.3 MB / 0.6104 GB, free: 79.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0086/1.77, allocations: 1.656 MB / 0.612 GB, free: 77.64 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004453/1.775, allocations: 1.163 MB / 0.6132 GB, free: 76.47 MB / 446.1 MB Notification: Performance of SimCode: time 1.282e-06/1.775, allocations: 0 / 0.6132 GB, free: 76.47 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3997/2.175, allocations: 65.71 MB / 0.6773 GB, free: 11.06 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 23.01/25.19, allocations: 6.219 kB / 0.6773 GB, free: 11.06 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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 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.csv","/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