Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3_2_3_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_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.000957/0.0009568, allocations: 94.95 kB / 16.95 MB, free: 6.891 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.001093/0.001093, allocations: 185.9 kB / 17.84 MB, free: 6.137 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.613/1.613, allocations: 205.4 MB / 224 MB, free: 13.09 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004547/0.0004547, allocations: 12 kB / 280.9 MB, free: 3.621 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1104, allocations: 47.57 MB / 328.5 MB, free: 3.98 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.01246/0.1229, allocations: 12.53 MB / 341 MB, free: 7.406 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009555/0.1326, allocations: 3.96 MB / 344.9 MB, free: 3.438 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002175/0.1348, allocations: 55.88 kB / 345 MB, free: 3.383 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001516/0.1363, allocations: 0.5988 MB / 345.6 MB, free: 2.781 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00583/0.1422, allocations: 2.211 MB / 347.8 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001048/0.1432, allocations: 431.3 kB / 348.2 MB, free: 144 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0045/0.1478, allocations: 3.273 MB / 351.5 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008604/0.1486, allocations: 0.5232 MB / 352 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001151/0.1498, allocations: 0.7784 MB / 352.8 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001606/0.1514, allocations: 1.309 MB / 354.1 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002118/0.1516, allocations: 84 kB / 354.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001511/0.1532, allocations: 0.8151 MB / 355 MB, free: 9.301 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00114/0.1543, allocations: 1.06 MB / 356.1 MB, free: 8.238 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00054/0.1549, allocations: 0.4961 MB / 356.6 MB, free: 7.734 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003067/0.1579, allocations: 3.02 MB / 359.6 MB, free: 4.707 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.538e-06/0.158, allocations: 3.984 kB / 359.6 MB, free: 4.703 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.158, allocations: 0 / 359.6 MB, free: 4.703 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.049e-05/0.158, allocations: 0 / 359.6 MB, free: 4.703 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.005527/0.1636, allocations: 2.772 MB / 362.4 MB, free: 1.871 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.36e-05/0.1636, allocations: 8.031 kB / 362.4 MB, free: 1.863 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005677/0.1642, allocations: 441.2 kB / 362.8 MB, free: 1.422 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007235/0.1714, allocations: 1.958 MB / 364.8 MB, free: 15.46 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00433/0.1758, allocations: 2.51 MB / 367.3 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001414/0.176, allocations: 114.6 kB / 367.4 MB, free: 12.79 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009817/0.1769, allocations: 303.5 kB / 367.7 MB, free: 12.49 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01626/0.1932, allocations: 8.231 MB / 375.9 MB, free: 3.695 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001216/0.1934, allocations: 35.64 kB / 375.9 MB, free: 3.66 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006003/0.194, allocations: 79.89 kB / 376 MB, free: 3.582 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002434/0.1964, allocations: 1.393 MB / 377.4 MB, free: 2.188 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2303/0.4268, allocations: 9.507 MB / 386.9 MB, free: 43.8 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03323/0.4601, allocations: 30.53 MB / 417.4 MB, free: 21.56 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01053/0.4706, allocations: 4.431 MB / 421.9 MB, free: 17.13 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002848/0.4735, allocations: 2.106 MB / 424 MB, free: 15.01 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.333e-05/0.4737, allocations: 17.58 kB / 424 MB, free: 15 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.553e-05/0.4737, allocations: 54.48 kB / 424.1 MB, free: 14.94 MB / 318.1 MB Notification: Performance of pre-optimization done (n=122): time 4.579e-06/0.4737, allocations: 0 / 424.1 MB, free: 14.94 MB / 318.1 MB Notification: Performance of matching and sorting (n=136): time 0.04364/0.5174, allocations: 18.53 MB / 442.6 MB, free: 12.16 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002575/0.52, allocations: 3.055 MB / 445.6 MB, free: 8.793 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006213/0.5262, allocations: 3.004 MB / 448.6 MB, free: 5.77 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006557/0.5269, allocations: 48.61 kB / 448.7 MB, free: 5.719 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002104/0.529, allocations: 2.098 MB / 450.8 MB, free: 3.629 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001437/0.5305, allocations: 0.5602 MB / 451.3 MB, free: 3.074 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009039/0.5314, allocations: 92.78 kB / 451.4 MB, free: 2.984 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0005262/0.532, allocations: 0.5086 MB / 451.9 MB, free: 2.469 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005028/0.537, allocations: 2.556 MB / 454.5 MB, free: 15.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00773/0.5448, allocations: 5.509 MB / 460 MB, free: 8.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00666/0.5515, allocations: 3.621 MB / 463.6 MB, free: 5.316 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001073/0.5516, allocations: 32 kB / 463.7 MB, free: 5.285 MB / 350.1 MB Notification: Performance of matching and sorting (n=636) (initialization): time 0.02355/0.5752, allocations: 9.824 MB / 473.5 MB, free: 11.43 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001623/0.5754, allocations: 48 kB / 473.5 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01285/0.5882, allocations: 5.099 MB / 478.6 MB, free: 6.254 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008447/0.5967, allocations: 2.371 MB / 481 MB, free: 3.855 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005045/0.6018, allocations: 1.228 MB / 482.2 MB, free: 2.625 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00986/0.6117, allocations: 8.111 MB / 490.3 MB, free: 9.988 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006062/0.6178, allocations: 0.5583 MB / 490.9 MB, free: 9.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001599/0.6195, allocations: 316 kB / 491.2 MB, free: 9.125 MB / 382.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 (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.004623/0.6241, allocations: 1.415 MB / 492.6 MB, free: 7.699 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001339/0.6255, allocations: 260.6 kB / 492.9 MB, free: 7.441 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001661/0.6271, allocations: 415.4 kB / 493.3 MB, free: 7.031 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01272/0.6399, allocations: 5.018 MB / 498.3 MB, free: 1.977 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-05/0.64, allocations: 8 kB / 498.3 MB, free: 1.969 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.569e-05/0.64, allocations: 7.969 kB / 498.3 MB, free: 1.961 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01128/0.6513, allocations: 5.355 MB / 0.4919 GB, free: 12.56 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.001e-05/0.6513, allocations: 4 kB / 0.4919 GB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001825/0.6532, allocations: 367.4 kB / 0.4922 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008028/0.6612, allocations: 2.397 MB / 0.4946 GB, free: 9.77 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005362/0.6618, allocations: 50.23 kB / 0.4946 GB, free: 9.723 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01122/0.673, allocations: 8.831 MB / 0.5032 GB, free: 376 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003484/0.6766, allocations: 2.892 MB / 0.5061 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02061/0.6972, allocations: 8.771 MB / 0.5146 GB, free: 4.367 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001359/0.6986, allocations: 329.6 kB / 0.5149 GB, free: 4.023 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00115/0.6998, allocations: 39.98 kB / 0.515 GB, free: 3.984 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002729/0.7026, allocations: 319.6 kB / 0.5153 GB, free: 3.672 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005795/0.7032, allocations: 105.5 kB / 0.5154 GB, free: 3.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002895/0.7035, allocations: 51.97 kB / 0.5154 GB, free: 3.52 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.004622/0.7081, allocations: 1.883 MB / 0.5173 GB, free: 1.633 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.034e-06/0.7081, allocations: 0 / 0.5173 GB, free: 1.633 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.007077/0.7152, allocations: 0.9659 MB / 0.5182 GB, free: 0.6719 MB / 414.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 (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.01883/0.7341, allocations: 9.409 MB / 0.5274 GB, free: 7.199 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.219/0.9531, allocations: 7.181 MB / 0.5344 GB, free: 148.4 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 9.327e-06/0.9532, allocations: 0 / 0.5344 GB, free: 148.4 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007595/0.9608, allocations: 3.619 MB / 0.5379 GB, free: 147.6 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002859/0.9637, allocations: 297.6 kB / 0.5382 GB, free: 147.6 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06682/1.031, allocations: 32.47 MB / 0.5699 GB, free: 129.1 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002958/1.034, allocations: 2.304 MB / 0.5722 GB, free: 126.7 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.004751/1.038, allocations: 1.656 MB / 0.5738 GB, free: 125.1 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002196/1.041, allocations: 1.175 MB / 0.575 GB, free: 123.9 MB / 430.1 MB Notification: Performance of SimCode: time 9.61e-07/1.041, allocations: 4 kB / 0.575 GB, free: 123.9 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09382/1.134, allocations: 68.63 MB / 0.642 GB, free: 55.17 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002241/1.135, allocations: 230.1 kB / 0.6422 GB, free: 54.93 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.63/4.765, allocations: 0 / 0.6422 GB, free: 54.93 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat does not exist to compare? outputFormat=mat