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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001521/0.001521, allocations: 108.6 kB / 21.22 MB, free: 0.7305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001872/0.001872, allocations: 191.5 kB / 24.51 MB, free: 4.086 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.297/1.297, allocations: 225.6 MB / 253.3 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 179] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001373, allocations: 47.92 kB / 371.2 MB, free: 9.871 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1996/0.201, allocations: 52.19 MB / 423.4 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.007607/0.2086, allocations: 7.03 MB / 430.5 MB, free: 7.566 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005154/0.2137, allocations: 3.135 MB / 433.6 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004382/0.2141, allocations: 39.81 kB / 433.6 MB, free: 4.383 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001264/0.2154, allocations: 0.6691 MB / 434.3 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002503/0.2179, allocations: 1.436 MB / 435.7 MB, free: 2.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008169/0.2187, allocations: 495.1 kB / 436.2 MB, free: 1.785 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003368/0.2221, allocations: 3.124 MB / 439.3 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005537/0.2227, allocations: 498.4 kB / 439.8 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007991/0.2235, allocations: 0.8173 MB / 440.6 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001467/0.2249, allocations: 1.332 MB / 442 MB, free: 12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002046/0.2251, allocations: 132 kB / 442.1 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001409/0.2265, allocations: 1.01 MB / 443.1 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008928/0.2274, allocations: 1.106 MB / 444.2 MB, free: 9.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009944/0.2284, allocations: 1.234 MB / 445.5 MB, free: 8.508 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003752/0.2322, allocations: 4.077 MB / 449.5 MB, free: 4.418 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.2322, allocations: 0 / 449.5 MB, free: 4.418 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.2322, allocations: 0 / 449.5 MB, free: 4.418 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.131e-05/0.2322, allocations: 0 / 449.5 MB, free: 4.418 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.006073/0.2383, allocations: 3.23 MB / 452.8 MB, free: 1.141 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.2384, allocations: 12.03 kB / 452.8 MB, free: 1.129 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.35e-05/0.2384, allocations: 54.94 kB / 452.8 MB, free: 1.074 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004529/0.2389, allocations: 441.4 kB / 453.3 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007758/0.2466, allocations: 1.929 MB / 455.2 MB, free: 14.7 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003634/0.2503, allocations: 2.208 MB / 457.4 MB, free: 12.46 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.12e-05/0.2503, allocations: 110.6 kB / 457.5 MB, free: 12.35 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008098/0.2512, allocations: 303.5 kB / 457.8 MB, free: 12.05 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01289/0.264, allocations: 8.223 MB / 466 MB, free: 3.262 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.989e-05/0.2641, allocations: 35.7 kB / 466.1 MB, free: 3.227 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002455/0.2644, allocations: 79.83 kB / 466.1 MB, free: 3.148 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002091/0.2664, allocations: 1.397 MB / 467.5 MB, free: 1.75 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01643/0.2829, allocations: 9.592 MB / 477.1 MB, free: 8.148 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03252/0.3154, allocations: 30.44 MB / 0.4957 GB, free: 8.844 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01107/0.3265, allocations: 3.892 MB / 0.4995 GB, free: 4.906 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002823/0.3293, allocations: 2.081 MB / 0.5015 GB, free: 2.812 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.59e-05/0.3294, allocations: 12 kB / 0.5015 GB, free: 2.801 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.823e-05/0.3294, allocations: 50.5 kB / 0.5016 GB, free: 2.742 MB / 414.1 MB Notification: Performance of pre-optimization done (n=122): time 3.096e-06/0.3294, allocations: 0 / 0.5016 GB, free: 2.742 MB / 414.1 MB Notification: Performance of matching and sorting (n=136): time 0.04373/0.3731, allocations: 17.86 MB / 0.519 GB, free: 0.7617 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002303/0.3754, allocations: 3.026 MB / 0.522 GB, free: 13.45 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003744/0.3792, allocations: 3.008 MB / 0.5249 GB, free: 10.42 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002911/0.3795, allocations: 41.7 kB / 0.5249 GB, free: 10.38 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001474/0.3809, allocations: 2.163 MB / 0.527 GB, free: 8.191 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006208/0.3816, allocations: 0.5932 MB / 0.5276 GB, free: 7.594 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001363/0.3829, allocations: 1.016 MB / 0.5286 GB, free: 6.566 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000107/0.383, allocations: 309.1 kB / 0.5289 GB, free: 6.262 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00353/0.3866, allocations: 2.574 MB / 0.5314 GB, free: 3.68 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1613/0.5478, allocations: 5.515 MB / 0.5368 GB, free: 105.1 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007515/0.5553, allocations: 8.52 MB / 0.5451 GB, free: 99.62 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.533e-05/0.5554, allocations: 30.38 kB / 0.5452 GB, free: 99.62 MB / 446.1 MB Notification: Performance of matching and sorting (n=636) (initialization): time 0.01515/0.5706, allocations: 9.865 MB / 0.5548 GB, free: 96.63 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.602e-05/0.5706, allocations: 49.16 kB / 0.5548 GB, free: 96.63 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009428/0.58, allocations: 5.088 MB / 0.5598 GB, free: 92.14 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007454/0.5875, allocations: 2.352 MB / 0.5621 GB, free: 89.77 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002956/0.5904, allocations: 1.232 MB / 0.5633 GB, free: 88.53 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005541/0.596, allocations: 8.288 MB / 0.5714 GB, free: 79.86 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003663/0.5997, allocations: 0.5636 MB / 0.572 GB, free: 79.32 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003259/0.6, allocations: 312 kB / 0.5723 GB, free: 79.01 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.001353/0.6013, allocations: 1.418 MB / 0.5736 GB, free: 77.65 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000345/0.6017, allocations: 271.6 kB / 0.5739 GB, free: 77.53 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006609/0.6023, allocations: 414.7 kB / 0.5743 GB, free: 77.12 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009643/0.612, allocations: 5.002 MB / 0.5792 GB, free: 72.09 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.314e-05/0.612, allocations: 7.984 kB / 0.5792 GB, free: 72.08 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.492e-05/0.612, allocations: 7.984 kB / 0.5792 GB, free: 72.07 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005406/0.6174, allocations: 5.296 MB / 0.5844 GB, free: 66.79 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.601e-06/0.6174, allocations: 4 kB / 0.5844 GB, free: 66.78 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001447/0.6189, allocations: 367.3 kB / 0.5847 GB, free: 66.42 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007338/0.6262, allocations: 2.39 MB / 0.5871 GB, free: 64 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001561/0.6264, allocations: 43.95 kB / 0.5871 GB, free: 63.96 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006289/0.6327, allocations: 9.031 MB / 0.5959 GB, free: 54.53 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001101/0.6338, allocations: 2.867 MB / 0.5987 GB, free: 51.44 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01255/0.6463, allocations: 8.76 MB / 0.6073 GB, free: 42.64 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003991/0.6467, allocations: 261.8 kB / 0.6075 GB, free: 42.39 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003457/0.647, allocations: 35.92 kB / 0.6076 GB, free: 42.36 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001836/0.6489, allocations: 318.9 kB / 0.6079 GB, free: 42.05 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003372/0.6492, allocations: 119.9 kB / 0.608 GB, free: 41.93 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001485/0.6494, allocations: 51.95 kB / 0.608 GB, free: 41.88 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001848/0.6512, allocations: 1.867 MB / 0.6098 GB, free: 40.01 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6512, allocations: 0 / 0.6098 GB, free: 40.01 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003203/0.6544, allocations: 0.9592 MB / 0.6108 GB, free: 39.05 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.01289/0.6673, allocations: 9.421 MB / 0.62 GB, free: 29.58 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008413/0.6757, allocations: 6.756 MB / 0.6266 GB, free: 22.79 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.6757, allocations: 4.281 kB / 0.6266 GB, free: 22.78 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004707/0.6804, allocations: 3.268 MB / 0.6298 GB, free: 19.45 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001714/0.6822, allocations: 301.5 kB / 0.6301 GB, free: 19.16 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06396/0.7461, allocations: 45.25 MB / 0.6743 GB, free: 1.574 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002227/0.7483, allocations: 2.29 MB / 0.6765 GB, free: 15.26 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003327/0.7517, allocations: 1.663 MB / 0.6781 GB, free: 13.59 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001696/0.7534, allocations: 1.167 MB / 0.6793 GB, free: 12.42 MB / 494.1 MB Notification: Performance of SimCode: time 7.11e-07/0.7534, allocations: 0 / 0.6793 GB, free: 12.42 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.519/2.273, allocations: 67.36 MB / 0.745 GB, free: 191 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.56/21.83, allocations: 11 kB / 0.745 GB, free: 191 MB / 0.5294 GB " [Timeout remaining time 638] (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 --stepSize=0.0009996 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 25.845492632011883]