Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.0009841/0.0009841, allocations: 173.7 kB / 16.72 MB, free: 5.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.265/1.265, allocations: 205.4 MB / 222.9 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007841/0.0007842, allocations: 88.75 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003308/0.0003309, allocations: 12 kB / 327.6 MB, free: 15.78 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2149/0.2153, allocations: 47.58 MB / 375.2 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.01011/0.2254, allocations: 12.52 MB / 387.7 MB, free: 35.73 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007152/0.2326, allocations: 3.962 MB / 391.7 MB, free: 32.16 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002366/0.235, allocations: 55.88 kB / 391.7 MB, free: 32.11 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001687/0.2367, allocations: 0.5987 MB / 392.3 MB, free: 31.5 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005187/0.2419, allocations: 2.23 MB / 394.6 MB, free: 29.27 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009661/0.2429, allocations: 467.3 kB / 395 MB, free: 28.81 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003555/0.2465, allocations: 3.298 MB / 398.3 MB, free: 25.5 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001275/0.2478, allocations: 0.532 MB / 398.9 MB, free: 24.93 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001497/0.2493, allocations: 0.7784 MB / 399.6 MB, free: 24.15 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001817/0.2511, allocations: 1.309 MB / 400.9 MB, free: 22.84 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005932/0.2517, allocations: 84 kB / 401 MB, free: 22.75 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001903/0.2537, allocations: 0.9398 MB / 402 MB, free: 21.81 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00125/0.2549, allocations: 1.064 MB / 403 MB, free: 20.75 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001916/0.2569, allocations: 1.163 MB / 404.2 MB, free: 19.57 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003094/0.26, allocations: 3.018 MB / 407.2 MB, free: 16.55 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.26, allocations: 4 kB / 407.2 MB, free: 16.54 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.26, allocations: 0 / 407.2 MB, free: 16.54 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.00015/0.2602, allocations: 0 / 407.2 MB, free: 16.54 MB / 298.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.005876/0.266, allocations: 2.741 MB / 410 MB, free: 13.74 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.406e-05/0.2661, allocations: 8.031 kB / 410 MB, free: 13.73 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001106/0.2672, allocations: 441.4 kB / 410.4 MB, free: 13.29 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007555/0.2748, allocations: 1.959 MB / 412.3 MB, free: 11.33 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004301/0.2791, allocations: 2.534 MB / 414.9 MB, free: 8.75 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001207/0.2793, allocations: 110.6 kB / 415 MB, free: 8.641 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001104/0.2804, allocations: 303.5 kB / 415.3 MB, free: 8.344 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01433/0.2947, allocations: 8.223 MB / 423.5 MB, free: 15.55 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001399/0.2949, allocations: 39.64 kB / 423.5 MB, free: 15.52 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006733/0.2956, allocations: 75.89 kB / 423.6 MB, free: 15.44 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002501/0.2981, allocations: 1.405 MB / 425 MB, free: 14.04 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01853/0.3167, allocations: 9.514 MB / 434.5 MB, free: 4.516 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03742/0.3541, allocations: 30.55 MB / 465.1 MB, free: 5.105 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01159/0.3658, allocations: 4.43 MB / 469.5 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002685/0.3685, allocations: 2.113 MB / 471.6 MB, free: 14.39 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.255e-05/0.3686, allocations: 11.98 kB / 471.6 MB, free: 14.38 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.032e-05/0.3687, allocations: 58.42 kB / 471.7 MB, free: 14.31 MB / 362.7 MB Notification: Performance of pre-optimization done (n=122): time 4.007e-06/0.3687, allocations: 0 / 471.7 MB, free: 14.31 MB / 362.7 MB Notification: Performance of matching and sorting (n=136): time 0.04978/0.4185, allocations: 18.52 MB / 490.2 MB, free: 11.5 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002577/0.4211, allocations: 3.061 MB / 493.3 MB, free: 8.113 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005963/0.4271, allocations: 3.004 MB / 496.3 MB, free: 5.09 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007407/0.4279, allocations: 41.7 kB / 496.3 MB, free: 5.043 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002009/0.4299, allocations: 2.091 MB / 498.4 MB, free: 2.922 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001269/0.4312, allocations: 0.5632 MB / 499 MB, free: 2.352 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008451/0.432, allocations: 99.98 kB / 499.1 MB, free: 2.254 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0004645/0.4325, allocations: 0.5126 MB / 499.6 MB, free: 1.734 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1681/0.6006, allocations: 2.552 MB / 0.4904 GB, free: 108.4 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005095/0.6058, allocations: 5.505 MB / 0.4958 GB, free: 104.2 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008873/0.6147, allocations: 8.502 MB / 0.5041 GB, free: 97.96 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.607e-05/0.6148, allocations: 34.56 kB / 0.5041 GB, free: 97.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=636) (initialization): time 0.01661/0.6314, allocations: 9.824 MB / 0.5137 GB, free: 94.16 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.661e-05/0.6315, allocations: 48.94 kB / 0.5137 GB, free: 94.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009911/0.6414, allocations: 5.101 MB / 0.5187 GB, free: 88.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007954/0.6494, allocations: 2.347 MB / 0.521 GB, free: 86.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003805/0.6532, allocations: 1.236 MB / 0.5222 GB, free: 85.37 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006372/0.6596, allocations: 8.114 MB / 0.5301 GB, free: 76.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004934/0.6645, allocations: 0.5685 MB / 0.5307 GB, free: 76.24 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004718/0.665, allocations: 317 kB / 0.531 GB, free: 75.93 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.002063/0.6671, allocations: 1.412 MB / 0.5324 GB, free: 74.56 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006189/0.6677, allocations: 261.3 kB / 0.5326 GB, free: 74.45 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008512/0.6686, allocations: 423.4 kB / 0.533 GB, free: 74.03 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0103/0.6789, allocations: 5.013 MB / 0.5379 GB, free: 68.99 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.08e-05/0.6789, allocations: 4 kB / 0.5379 GB, free: 68.98 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.542e-05/0.6789, allocations: 11.97 kB / 0.5379 GB, free: 68.97 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007378/0.6863, allocations: 5.365 MB / 0.5432 GB, free: 63.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.141e-05/0.6863, allocations: 4 kB / 0.5432 GB, free: 63.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001542/0.6879, allocations: 367.4 kB / 0.5435 GB, free: 63.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007795/0.6957, allocations: 2.386 MB / 0.5459 GB, free: 60.82 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004368/0.6962, allocations: 51.95 kB / 0.5459 GB, free: 60.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007223/0.7034, allocations: 8.846 MB / 0.5545 GB, free: 51.45 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001362/0.7048, allocations: 2.887 MB / 0.5574 GB, free: 48.29 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01455/0.7194, allocations: 8.764 MB / 0.5659 GB, free: 39.48 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007191/0.7201, allocations: 325.7 kB / 0.5662 GB, free: 39.14 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000716/0.7209, allocations: 43.11 kB / 0.5663 GB, free: 39.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002316/0.7232, allocations: 319.4 kB / 0.5666 GB, free: 38.79 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006742/0.7239, allocations: 111.7 kB / 0.5667 GB, free: 38.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002361/0.7241, allocations: 51.95 kB / 0.5667 GB, free: 38.63 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002794/0.7269, allocations: 1.872 MB / 0.5686 GB, free: 36.75 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.7269, allocations: 4 kB / 0.5686 GB, free: 36.75 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004031/0.731, allocations: 0.9567 MB / 0.5695 GB, free: 35.8 MB / 378.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.01427/0.7453, allocations: 9.42 MB / 0.5787 GB, free: 26.33 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.009698/0.755, allocations: 7.182 MB / 0.5857 GB, free: 19.04 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.067e-06/0.755, allocations: 0 / 0.5857 GB, free: 19.04 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005263/0.7603, allocations: 3.635 MB / 0.5893 GB, free: 15.26 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002443/0.7627, allocations: 287.8 kB / 0.5895 GB, free: 14.98 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0552/0.8179, allocations: 32.78 MB / 0.6216 GB, free: 11.41 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002746/0.8207, allocations: 2.302 MB / 0.6238 GB, free: 9.078 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002322/0.8231, allocations: 1.222 MB / 0.625 GB, free: 7.855 MB / 410.7 MB Notification: Performance of SimCode: time 7.92e-07/0.8231, allocations: 0 / 0.625 GB, free: 7.855 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.965/8.788, allocations: 149 MB / 0.7705 GB, free: 31.4 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravity/PointGravity.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches