Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001158/0.001158, allocations: 190.7 kB / 17.37 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.21/1.21, allocations: 226.5 MB / 244.7 MB, free: 6.527 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008201/0.0008205, allocations: 103.9 kB / 296.7 MB, free: 6.699 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002319/0.000232, allocations: 8 kB / 356.8 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2101/0.2104, allocations: 51.3 MB / 408.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.008075/0.2185, allocations: 12.52 MB / 420.7 MB, free: 15.13 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005582/0.2241, allocations: 3.986 MB / 424.6 MB, free: 11.15 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00126/0.2254, allocations: 55.88 kB / 424.7 MB, free: 11.09 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009187/0.2263, allocations: 0.591 MB / 425.3 MB, free: 10.5 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003436/0.2298, allocations: 2.234 MB / 427.5 MB, free: 8.262 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007599/0.2306, allocations: 455.3 kB / 428 MB, free: 7.816 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002806/0.2334, allocations: 3.393 MB / 431.4 MB, free: 4.414 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005753/0.234, allocations: 0.5348 MB / 431.9 MB, free: 3.832 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007399/0.2347, allocations: 0.7667 MB / 432.7 MB, free: 3.062 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001035/0.2358, allocations: 1.301 MB / 434 MB, free: 1.758 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001938/0.236, allocations: 84 kB / 434 MB, free: 1.676 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001182/0.2372, allocations: 0.9398 MB / 435 MB, free: 0.7344 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006818/0.2379, allocations: 1.044 MB / 436 MB, free: 15.69 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009391/0.2388, allocations: 1.159 MB / 437.2 MB, free: 14.52 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00259/0.2414, allocations: 2.998 MB / 440.2 MB, free: 11.51 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.2415, allocations: 0 / 440.2 MB, free: 11.51 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.2415, allocations: 0 / 440.2 MB, free: 11.51 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.48e-05/0.2415, allocations: 0 / 440.2 MB, free: 11.51 MB / 314.7 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.006013/0.2475, allocations: 2.718 MB / 442.9 MB, free: 8.734 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.5e-05/0.2476, allocations: 12.03 kB / 442.9 MB, free: 8.723 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000654/0.2483, allocations: 437.4 kB / 443.3 MB, free: 8.285 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008147/0.2564, allocations: 2.072 MB / 445.4 MB, free: 6.207 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003418/0.2599, allocations: 2.027 MB / 447.4 MB, free: 4.137 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.421e-05/0.26, allocations: 114.6 kB / 447.6 MB, free: 4.023 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008646/0.2609, allocations: 307.5 kB / 447.9 MB, free: 3.723 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01351/0.2744, allocations: 8.227 MB / 456.1 MB, free: 10.92 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.089e-05/0.2745, allocations: 35.66 kB / 456.1 MB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002563/0.2748, allocations: 75.89 kB / 456.2 MB, free: 10.81 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002134/0.2769, allocations: 1.401 MB / 457.6 MB, free: 9.41 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01717/0.2941, allocations: 9.514 MB / 467.1 MB, free: 15.89 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03314/0.3273, allocations: 30.51 MB / 497.6 MB, free: 0.5234 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01145/0.3388, allocations: 4.421 MB / 0.4903 GB, free: 11.95 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002894/0.3417, allocations: 2.126 MB / 0.4923 GB, free: 9.805 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001099/0.3418, allocations: 12 kB / 0.4924 GB, free: 9.793 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.496e-05/0.3419, allocations: 46.56 kB / 0.4924 GB, free: 9.738 MB / 378.7 MB Notification: Performance of pre-optimization done (n=122): time 4.268e-06/0.3419, allocations: 0 / 0.4924 GB, free: 9.738 MB / 378.7 MB Notification: Performance of matching and sorting (n=136): time 0.1998/0.5417, allocations: 18.41 MB / 0.5104 GB, free: 90.8 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001527/0.5433, allocations: 3.053 MB / 0.5134 GB, free: 87.75 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003419/0.5467, allocations: 2.995 MB / 0.5163 GB, free: 86.65 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004474/0.5472, allocations: 43.23 kB / 0.5163 GB, free: 86.61 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009375/0.5481, allocations: 2.084 MB / 0.5184 GB, free: 84.98 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006807/0.5488, allocations: 0.5595 MB / 0.5189 GB, free: 84.59 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002451/0.5491, allocations: 94.84 kB / 0.519 GB, free: 84.52 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001937/0.5493, allocations: 0.5059 MB / 0.5195 GB, free: 84.12 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003026/0.5523, allocations: 2.558 MB / 0.522 GB, free: 83.33 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003767/0.5561, allocations: 5.506 MB / 0.5274 GB, free: 77.07 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007726/0.5639, allocations: 8.502 MB / 0.5357 GB, free: 67.12 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.322e-05/0.564, allocations: 32 kB / 0.5357 GB, free: 67.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=636) (initialization): time 0.01947/0.5835, allocations: 9.827 MB / 0.5453 GB, free: 57.23 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.879e-05/0.5836, allocations: 54.48 kB / 0.5453 GB, free: 57.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01042/0.594, allocations: 5.105 MB / 0.5503 GB, free: 52.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0082/0.6022, allocations: 2.347 MB / 0.5526 GB, free: 49.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00381/0.6061, allocations: 1.232 MB / 0.5538 GB, free: 48.44 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006259/0.6124, allocations: 8.113 MB / 0.5618 GB, free: 39.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004844/0.6172, allocations: 0.5673 MB / 0.5623 GB, free: 39.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001062/0.6183, allocations: 315.9 kB / 0.5626 GB, free: 38.92 MB / 378.7 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 (linear and non-linear blocks): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 4 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002949/0.6213, allocations: 1.416 MB / 0.564 GB, free: 37.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007258/0.622, allocations: 252.7 kB / 0.5642 GB, free: 37.25 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009411/0.623, allocations: 419.3 kB / 0.5646 GB, free: 36.84 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01044/0.6334, allocations: 5.025 MB / 0.5695 GB, free: 31.78 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.371e-05/0.6335, allocations: 4 kB / 0.5695 GB, free: 31.77 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.792e-05/0.6335, allocations: 3.984 kB / 0.5695 GB, free: 31.77 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007491/0.641, allocations: 5.348 MB / 0.5748 GB, free: 26.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.298e-06/0.641, allocations: 4 kB / 0.5748 GB, free: 26.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001625/0.6427, allocations: 367.4 kB / 0.5751 GB, free: 26.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008062/0.6507, allocations: 2.386 MB / 0.5775 GB, free: 23.61 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003374/0.6511, allocations: 47.95 kB / 0.5775 GB, free: 23.56 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007738/0.6588, allocations: 8.849 MB / 0.5861 GB, free: 14.18 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001538/0.6604, allocations: 2.896 MB / 0.589 GB, free: 11 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01662/0.6771, allocations: 8.759 MB / 0.5975 GB, free: 2.191 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007291/0.6778, allocations: 333.6 kB / 0.5978 GB, free: 1.844 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004394/0.6783, allocations: 37.23 kB / 0.5979 GB, free: 1.809 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001961/0.6802, allocations: 323.4 kB / 0.5982 GB, free: 1.492 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005814/0.6808, allocations: 95.83 kB / 0.5983 GB, free: 1.398 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001603/0.681, allocations: 52.81 kB / 0.5983 GB, free: 1.348 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002211/0.6832, allocations: 1.863 MB / 0.6001 GB, free: 15.48 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6832, allocations: 0 / 0.6001 GB, free: 15.48 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00376/0.687, allocations: 0.9575 MB / 0.6011 GB, free: 14.53 MB / 394.7 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 (linear and non-linear blocks): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 4 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0165/0.7035, allocations: 9.413 MB / 0.6103 GB, free: 5.051 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01131/0.7148, allocations: 7.194 MB / 0.6173 GB, free: 13.74 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.7149, allocations: 0 / 0.6173 GB, free: 13.74 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006383/0.7213, allocations: 3.617 MB / 0.6208 GB, free: 9.98 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002543/0.7239, allocations: 305 kB / 0.6211 GB, free: 9.688 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06015/0.784, allocations: 32.65 MB / 0.653 GB, free: 6.266 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002449/0.7865, allocations: 2.298 MB / 0.6552 GB, free: 3.941 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00227/0.7888, allocations: 1.21 MB / 0.6564 GB, free: 2.73 MB / 442.7 MB Notification: Performance of SimCode: time 9.51e-07/0.7888, allocations: 0 / 0.6564 GB, free: 2.73 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.009/8.798, allocations: 148.4 MB / 0.8014 GB, free: 41.86 MB / 458.7 MB (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity.fmu > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches