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.00119/0.00119, allocations: 93.88 kB / 16.3 MB, free: 6.457 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.00134/0.00134, allocations: 183.5 kB / 17.2 MB, free: 6.34 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.392/1.392, allocations: 223.2 MB / 241.1 MB, free: 5.391 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002691/0.0002691, allocations: 10.44 kB / 300.8 MB, free: 6.414 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1101, allocations: 50.41 MB / 351.2 MB, free: 11.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.01188/0.1221, allocations: 11.87 MB / 363.1 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008379/0.1305, allocations: 4.057 MB / 367.2 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001507/0.132, allocations: 59.81 kB / 367.2 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001051/0.1331, allocations: 0.5288 MB / 367.7 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004546/0.1376, allocations: 1.999 MB / 369.7 MB, free: 9.16 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008866/0.1385, allocations: 423.3 kB / 370.2 MB, free: 8.746 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002863/0.1414, allocations: 1.741 MB / 371.9 MB, free: 7.004 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007815/0.1422, allocations: 0.5271 MB / 372.4 MB, free: 6.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009479/0.1432, allocations: 0.6463 MB / 373.1 MB, free: 5.781 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001249/0.1444, allocations: 0.9659 MB / 374 MB, free: 4.812 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000242/0.1447, allocations: 84 kB / 374.1 MB, free: 4.73 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001517/0.1462, allocations: 0.8074 MB / 374.9 MB, free: 3.922 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009587/0.1472, allocations: 0.9741 MB / 375.9 MB, free: 2.945 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005313/0.1477, allocations: 0.4922 MB / 376.4 MB, free: 2.445 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003353/0.1511, allocations: 3.005 MB / 379.4 MB, free: 15.44 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.1511, allocations: 0 / 379.4 MB, free: 15.44 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1511, allocations: 0 / 379.4 MB, free: 15.44 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.513e-05/0.1512, allocations: 0 / 379.4 MB, free: 15.44 MB / 318.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.006416/0.1576, allocations: 2.768 MB / 382.2 MB, free: 12.61 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.319e-05/0.1577, allocations: 8.031 kB / 382.2 MB, free: 12.6 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007507/0.1585, allocations: 437.2 kB / 382.6 MB, free: 12.16 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009075/0.1675, allocations: 2.262 MB / 384.9 MB, free: 9.895 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004304/0.1719, allocations: 1.796 MB / 386.7 MB, free: 8.055 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001405/0.1721, allocations: 118.6 kB / 386.8 MB, free: 7.938 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001009/0.1731, allocations: 299.5 kB / 387.1 MB, free: 7.645 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01618/0.1893, allocations: 8.617 MB / 395.7 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.451e-05/0.1894, allocations: 39.66 kB / 395.7 MB, free: 14.42 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002941/0.1897, allocations: 79.83 kB / 395.8 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002126/0.1918, allocations: 1.405 MB / 397.2 MB, free: 12.94 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01824/0.2101, allocations: 9.901 MB / 407.1 MB, free: 3.031 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2538/0.4639, allocations: 30.66 MB / 437.8 MB, free: 42.83 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01289/0.4769, allocations: 4.514 MB / 442.3 MB, free: 42.14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001088/0.477, allocations: 16.03 kB / 442.3 MB, free: 42.14 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.949e-05/0.4771, allocations: 60.53 kB / 442.4 MB, free: 42.1 MB / 350.1 MB Notification: Performance of pre-optimization done (n=122): time 3.777e-06/0.4771, allocations: 0 / 442.4 MB, free: 42.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=136): time 0.04401/0.5211, allocations: 18.83 MB / 461.2 MB, free: 36.46 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00211/0.5232, allocations: 3.077 MB / 464.3 MB, free: 33.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003943/0.5272, allocations: 3.198 MB / 467.5 MB, free: 29.87 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007663/0.528, allocations: 42.25 kB / 467.5 MB, free: 29.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009293/0.529, allocations: 2.086 MB / 469.6 MB, free: 27.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000604/0.5296, allocations: 0.5681 MB / 470.1 MB, free: 27.19 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002362/0.5298, allocations: 97.52 kB / 470.2 MB, free: 27.1 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001995/0.53, allocations: 0.5086 MB / 470.8 MB, free: 26.58 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003181/0.5332, allocations: 2.645 MB / 473.4 MB, free: 23.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004537/0.5378, allocations: 5.576 MB / 479 MB, free: 16.92 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004424/0.5422, allocations: 3.697 MB / 482.7 MB, free: 13.31 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.233e-05/0.5423, allocations: 28 kB / 482.7 MB, free: 13.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=636) (initialization): time 0.02929/0.5716, allocations: 11.79 MB / 494.5 MB, free: 1.469 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.6e-05/0.5717, allocations: 54.25 kB / 494.5 MB, free: 1.418 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02299/0.5947, allocations: 7.049 MB / 0.4898 GB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02238/0.6171, allocations: 4.553 MB / 0.4943 GB, free: 5.762 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004495/0.6216, allocations: 1.24 MB / 0.4955 GB, free: 4.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01736/0.639, allocations: 12.08 MB / 0.5073 GB, free: 7.914 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005797/0.6449, allocations: 0.5771 MB / 0.5078 GB, free: 7.332 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008907/0.6458, allocations: 313.4 kB / 0.5081 GB, free: 7.027 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.002655/0.6485, allocations: 1.409 MB / 0.5095 GB, free: 5.605 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006174/0.6491, allocations: 252.7 kB / 0.5098 GB, free: 5.355 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000757/0.6498, allocations: 423.3 kB / 0.5102 GB, free: 4.934 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01181/0.6617, allocations: 5.013 MB / 0.5151 GB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.234e-05/0.6617, allocations: 7.984 kB / 0.5151 GB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.204e-05/0.6618, allocations: 7.984 kB / 0.5151 GB, free: 15.87 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01035/0.6721, allocations: 5.372 MB / 0.5203 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.702e-05/0.6722, allocations: 4 kB / 0.5203 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00177/0.674, allocations: 371.3 kB / 0.5207 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008559/0.6826, allocations: 2.378 MB / 0.523 GB, free: 7.688 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006421/0.6832, allocations: 54 kB / 0.5231 GB, free: 7.637 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009602/0.6929, allocations: 9.007 MB / 0.5319 GB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001968/0.6949, allocations: 2.913 MB / 0.5347 GB, free: 10.91 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01725/0.7121, allocations: 8.849 MB / 0.5433 GB, free: 1.965 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001157/0.7133, allocations: 345.5 kB / 0.5437 GB, free: 1.605 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006732/0.714, allocations: 39.94 kB / 0.5437 GB, free: 1.566 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002305/0.7163, allocations: 320.7 kB / 0.544 GB, free: 1.254 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004237/0.7168, allocations: 100.1 kB / 0.5441 GB, free: 1.156 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001695/0.717, allocations: 47.97 kB / 0.5442 GB, free: 1.109 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003114/0.7201, allocations: 2.043 MB / 0.5461 GB, free: 15.06 MB / 430.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.7201, allocations: 3.938 kB / 0.5462 GB, free: 15.06 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004929/0.725, allocations: 1.024 MB / 0.5472 GB, free: 14.04 MB / 430.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.01837/0.7434, allocations: 9.741 MB / 0.5567 GB, free: 4.234 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0142/0.7577, allocations: 7.354 MB / 0.5638 GB, free: 12.77 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.624e-06/0.7577, allocations: 3.938 kB / 0.5638 GB, free: 12.76 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006821/0.7646, allocations: 3.613 MB / 0.5674 GB, free: 9.004 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002104/0.7667, allocations: 282.5 kB / 0.5676 GB, free: 8.727 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2682/1.035, allocations: 104.6 MB / 0.6698 GB, free: 95.81 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001822/1.037, allocations: 2.353 MB / 0.6721 GB, free: 95.07 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003656/1.04, allocations: 1.671 MB / 0.6737 GB, free: 94.77 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001549/1.042, allocations: 1.168 MB / 0.6749 GB, free: 93.81 MB / 462.1 MB Notification: Performance of SimCode: time 8.41e-07/1.042, allocations: 0 / 0.6749 GB, free: 93.81 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09031/1.132, allocations: 74.22 MB / 0.7473 GB, free: 22.05 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001377/1.133, allocations: 232 kB / 0.7476 GB, free: 21.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.38/4.513, allocations: 0 / 0.7476 GB, free: 21.8 MB / 462.1 MB (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/linux/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 --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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat does not exist to compare? outputFormat=mat