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.001698/0.001698, allocations: 113.4 kB / 17.07 MB, free: 5.988 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.001775/0.001776, allocations: 193.4 kB / 18 MB, free: 5.074 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.471/1.471, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001467/0.001467, allocations: 47.92 kB / 350.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2715/0.273, allocations: 49.44 MB / 400.2 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.008489/0.2815, allocations: 6.992 MB / 407.2 MB, free: 1.777 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006289/0.2878, allocations: 3.088 MB / 410.3 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001105/0.289, allocations: 31.94 kB / 410.3 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001853/0.2909, allocations: 0.6574 MB / 411 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00365/0.2946, allocations: 1.407 MB / 412.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001101/0.2957, allocations: 499 kB / 412.9 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004588/0.3003, allocations: 3.123 MB / 416 MB, free: 8.957 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009087/0.3012, allocations: 447.1 kB / 416.5 MB, free: 8.508 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001415/0.3027, allocations: 0.7977 MB / 417.3 MB, free: 7.707 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001854/0.3045, allocations: 1.207 MB / 418.5 MB, free: 6.496 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004078/0.305, allocations: 128 kB / 418.6 MB, free: 6.371 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001976/0.307, allocations: 0.9632 MB / 419.6 MB, free: 5.406 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001334/0.3083, allocations: 1.083 MB / 420.6 MB, free: 4.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001766/0.3101, allocations: 1.227 MB / 421.9 MB, free: 3.086 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005595/0.3157, allocations: 4.072 MB / 425.9 MB, free: 15 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.468e-06/0.3158, allocations: 4 kB / 425.9 MB, free: 14.99 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.3158, allocations: 4 kB / 425.9 MB, free: 14.99 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001021/0.3159, allocations: 0 / 425.9 MB, free: 14.99 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.007798/0.3237, allocations: 3.309 MB / 429.2 MB, free: 11.61 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.245e-05/0.3238, allocations: 12.03 kB / 429.3 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007075/0.3245, allocations: 437.4 kB / 429.7 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008318/0.3328, allocations: 1.922 MB / 431.6 MB, free: 9.238 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004652/0.3375, allocations: 2.269 MB / 433.9 MB, free: 6.926 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001247/0.3376, allocations: 118.6 kB / 434 MB, free: 6.809 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009857/0.3386, allocations: 299.5 kB / 434.3 MB, free: 6.516 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01548/0.3541, allocations: 8.223 MB / 442.5 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.758e-05/0.3542, allocations: 39.64 kB / 442.5 MB, free: 13.69 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002843/0.3545, allocations: 79.89 kB / 442.6 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002389/0.3569, allocations: 1.393 MB / 444 MB, free: 12.21 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01875/0.3757, allocations: 9.542 MB / 453.6 MB, free: 2.656 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0389/0.4146, allocations: 30.5 MB / 484.1 MB, free: 3.305 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0124/0.4271, allocations: 4.389 MB / 488.5 MB, free: 14.75 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003314/0.4304, allocations: 2.117 MB / 490.6 MB, free: 12.62 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001126/0.4306, allocations: 9.062 kB / 490.6 MB, free: 12.61 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.032e-05/0.4307, allocations: 50.72 kB / 490.6 MB, free: 12.55 MB / 414.1 MB Notification: Performance of pre-optimization done (n=122): time 6.392e-06/0.4307, allocations: 0 / 490.6 MB, free: 12.55 MB / 414.1 MB Notification: Performance of matching and sorting (n=136): time 0.04882/0.4795, allocations: 18.49 MB / 0.4972 GB, free: 9.805 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002843/0.4824, allocations: 3.235 MB / 0.5003 GB, free: 6.234 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004572/0.487, allocations: 3.008 MB / 0.5033 GB, free: 3.207 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005391/0.4875, allocations: 41.7 kB / 0.5033 GB, free: 3.16 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001761/0.4893, allocations: 2.167 MB / 0.5054 GB, free: 0.9727 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001147/0.4905, allocations: 0.601 MB / 0.506 GB, free: 376 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001896/0.4924, allocations: 1.008 MB / 0.507 GB, free: 15.35 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.4925, allocations: 309.1 kB / 0.5073 GB, free: 15.04 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004176/0.4967, allocations: 2.57 MB / 0.5098 GB, free: 12.46 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0074/0.5041, allocations: 5.528 MB / 0.5152 GB, free: 5.461 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01201/0.5162, allocations: 8.505 MB / 0.5235 GB, free: 11.5 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.324e-05/0.5163, allocations: 32.19 kB / 0.5235 GB, free: 11.46 MB / 462.1 MB Notification: Performance of matching and sorting (n=636) (initialization): time 0.0239/0.5402, allocations: 9.884 MB / 0.5332 GB, free: 1.547 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.751e-05/0.5404, allocations: 48 kB / 0.5332 GB, free: 1.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.2168/0.7572, allocations: 5.107 MB / 0.5382 GB, free: 128 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008369/0.7656, allocations: 2.352 MB / 0.5405 GB, free: 127.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003915/0.7696, allocations: 1.233 MB / 0.5417 GB, free: 127.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006829/0.7764, allocations: 8.681 MB / 0.5502 GB, free: 121.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004835/0.7813, allocations: 0.5622 MB / 0.5508 GB, free: 121.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009452/0.7823, allocations: 315 kB / 0.5511 GB, free: 121.6 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.002152/0.7845, allocations: 1.416 MB / 0.5524 GB, free: 121 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000518/0.785, allocations: 270.2 kB / 0.5527 GB, free: 121 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007893/0.7858, allocations: 414.8 kB / 0.5531 GB, free: 120.7 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01031/0.7961, allocations: 5.02 MB / 0.558 GB, free: 117.5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.997e-05/0.7962, allocations: 7.938 kB / 0.558 GB, free: 117.5 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.708e-05/0.7962, allocations: 7.969 kB / 0.558 GB, free: 117.5 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008085/0.8043, allocations: 5.357 MB / 0.5632 GB, free: 112.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-05/0.8043, allocations: 0 / 0.5632 GB, free: 112.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001842/0.8062, allocations: 367.4 kB / 0.5636 GB, free: 111.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007892/0.8141, allocations: 2.39 MB / 0.5659 GB, free: 109.4 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005598/0.8147, allocations: 55.7 kB / 0.566 GB, free: 109.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007095/0.8218, allocations: 9.438 MB / 0.5752 GB, free: 99.42 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001376/0.8232, allocations: 3.072 MB / 0.5782 GB, free: 96.09 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01427/0.8375, allocations: 8.785 MB / 0.5868 GB, free: 87.43 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007638/0.8383, allocations: 342.8 kB / 0.5871 GB, free: 87.09 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007392/0.8391, allocations: 31.98 kB / 0.5871 GB, free: 87.05 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002275/0.8413, allocations: 322.1 kB / 0.5874 GB, free: 86.74 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005/0.8419, allocations: 111.3 kB / 0.5875 GB, free: 86.64 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001832/0.8421, allocations: 51.95 kB / 0.5876 GB, free: 86.59 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002432/0.8445, allocations: 1.867 MB / 0.5894 GB, free: 84.71 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.8445, allocations: 0 / 0.5894 GB, free: 84.71 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004064/0.8486, allocations: 0.9643 MB / 0.5904 GB, free: 83.76 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.01452/0.8631, allocations: 9.439 MB / 0.5996 GB, free: 74.29 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01033/0.8735, allocations: 7.262 MB / 0.6067 GB, free: 66.92 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.663e-06/0.8736, allocations: 0 / 0.6067 GB, free: 66.92 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005465/0.879, allocations: 3.655 MB / 0.6102 GB, free: 63.13 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002626/0.8817, allocations: 309.4 kB / 0.6105 GB, free: 62.82 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06535/0.9471, allocations: 45.23 MB / 0.6547 GB, free: 13.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001676/0.9488, allocations: 2.29 MB / 0.6569 GB, free: 10.98 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003361/0.9522, allocations: 1.667 MB / 0.6586 GB, free: 9.301 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001632/0.9538, allocations: 1.163 MB / 0.6597 GB, free: 8.141 MB / 462.1 MB Notification: Performance of SimCode: time 1.422e-06/0.9538, allocations: 2.625 kB / 0.6597 GB, free: 8.141 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1294/1.083, allocations: 62.65 MB / 0.7209 GB, free: 9.848 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.82/19.91, allocations: 6.578 kB / 0.7209 GB, free: 9.844 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 & 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