Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001039/0.001039, allocations: 93.33 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001128/0.001128, allocations: 204.9 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.339/1.339, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002248/0.0002249, allocations: 8 kB / 306.7 MB, free: 1.25 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1015, allocations: 51.49 MB / 358.2 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.01207/0.1136, allocations: 11.87 MB / 370.1 MB, free: 1.844 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2098/0.3234, allocations: 4.076 MB / 374.1 MB, free: 8.688 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00149/0.325, allocations: 56.3 kB / 374.2 MB, free: 8.688 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001217/0.3262, allocations: 0.537 MB / 374.7 MB, free: 8.684 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005362/0.3316, allocations: 1.985 MB / 376.7 MB, free: 8.656 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001135/0.3327, allocations: 428.3 kB / 377.1 MB, free: 8.652 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003543/0.3363, allocations: 1.802 MB / 378.9 MB, free: 8.617 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008174/0.3371, allocations: 0.525 MB / 379.5 MB, free: 8.402 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001068/0.3382, allocations: 0.651 MB / 380.1 MB, free: 8.305 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001299/0.3395, allocations: 0.9725 MB / 381.1 MB, free: 8.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002277/0.3397, allocations: 79.94 kB / 381.2 MB, free: 8.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00178/0.3415, allocations: 0.7798 MB / 382 MB, free: 8.164 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001092/0.3426, allocations: 0.9769 MB / 382.9 MB, free: 8.062 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005809/0.3432, allocations: 0.4965 MB / 383.4 MB, free: 7.926 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003469/0.3467, allocations: 2.999 MB / 386.4 MB, free: 6.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.995e-06/0.3467, allocations: 0.6562 kB / 386.4 MB, free: 6.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.3467, allocations: 0 / 386.4 MB, free: 6.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.759e-05/0.3468, allocations: 0 / 386.4 MB, free: 6.77 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.007651/0.3545, allocations: 2.769 MB / 389.2 MB, free: 5.043 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/0.3546, allocations: 13.66 kB / 389.2 MB, free: 5.039 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001091/0.3556, allocations: 443.5 kB / 389.6 MB, free: 4.895 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009945/0.3656, allocations: 2.366 MB / 392 MB, free: 3.871 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005088/0.3707, allocations: 1.797 MB / 393.8 MB, free: 3.152 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001564/0.3709, allocations: 119.8 kB / 393.9 MB, free: 3.145 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001271/0.3722, allocations: 298.7 kB / 394.2 MB, free: 3.098 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01616/0.3884, allocations: 8.622 MB / 402.8 MB, free: 13.19 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.25e-05/0.3885, allocations: 31.73 kB / 402.9 MB, free: 13.16 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003157/0.3888, allocations: 82.11 kB / 402.9 MB, free: 13.11 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002254/0.3911, allocations: 1.394 MB / 404.3 MB, free: 11.72 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0188/0.4099, allocations: 9.905 MB / 414.2 MB, free: 1.82 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03952/0.4495, allocations: 30.68 MB / 444.9 MB, free: 2.441 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01221/0.4617, allocations: 4.5 MB / 449.4 MB, free: 13.78 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001056/0.4619, allocations: 19.88 kB / 449.4 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.873e-05/0.4619, allocations: 54.48 kB / 449.5 MB, free: 13.7 MB / 366.1 MB Notification: Performance of pre-optimization done (n=122): time 4.198e-06/0.4619, allocations: 0 / 449.5 MB, free: 13.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=136): time 0.04889/0.5108, allocations: 18.84 MB / 468.3 MB, free: 10.54 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002386/0.5133, allocations: 3.081 MB / 471.4 MB, free: 7.137 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005819/0.5191, allocations: 3.206 MB / 474.6 MB, free: 3.91 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006312/0.5198, allocations: 45.7 kB / 474.7 MB, free: 3.859 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001693/0.5215, allocations: 2.076 MB / 476.7 MB, free: 1.789 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001146/0.5226, allocations: 0.5679 MB / 477.3 MB, free: 1.227 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007736/0.5234, allocations: 94.73 kB / 477.4 MB, free: 1.137 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0005278/0.524, allocations: 0.5164 MB / 477.9 MB, free: 0.6133 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004576/0.5285, allocations: 2.641 MB / 480.6 MB, free: 13.96 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00654/0.5351, allocations: 5.575 MB / 486.1 MB, free: 6.914 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007024/0.5421, allocations: 3.698 MB / 489.8 MB, free: 3.215 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001132/0.5423, allocations: 28 kB / 489.9 MB, free: 3.188 MB / 398.1 MB Notification: Performance of matching and sorting (n=636) (initialization): time 0.03591/0.5782, allocations: 11.94 MB / 0.49 GB, free: 7.219 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001527/0.5784, allocations: 52 kB / 0.4901 GB, free: 7.168 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02414/0.6025, allocations: 7.191 MB / 0.4971 GB, free: 15.95 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02194/0.6245, allocations: 4.737 MB / 0.5017 GB, free: 11.18 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004591/0.6291, allocations: 1.232 MB / 0.5029 GB, free: 9.941 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01731/0.6465, allocations: 12.13 MB / 0.5148 GB, free: 13.27 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005686/0.6522, allocations: 0.5771 MB / 0.5154 GB, free: 12.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001484/0.6537, allocations: 318.9 kB / 0.5157 GB, free: 12.39 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 (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.004192/0.6579, allocations: 1.41 MB / 0.517 GB, free: 10.96 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009517/0.6589, allocations: 260.7 kB / 0.5173 GB, free: 10.71 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001298/0.6602, allocations: 411.3 kB / 0.5177 GB, free: 10.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01177/0.672, allocations: 5.01 MB / 0.5226 GB, free: 5.25 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.14e-05/0.6721, allocations: 8 kB / 0.5226 GB, free: 5.242 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-05/0.6721, allocations: 3.984 kB / 0.5226 GB, free: 5.238 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1964/0.8685, allocations: 5.365 MB / 0.5278 GB, free: 142.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.547e-05/0.8686, allocations: 1.953 kB / 0.5278 GB, free: 142.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002113/0.8707, allocations: 368.8 kB / 0.5282 GB, free: 142.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008806/0.8795, allocations: 2.383 MB / 0.5305 GB, free: 142.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004679/0.88, allocations: 57.25 kB / 0.5306 GB, free: 142.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008453/0.8885, allocations: 8.996 MB / 0.5393 GB, free: 137.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001461/0.89, allocations: 2.92 MB / 0.5422 GB, free: 134.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01536/0.9054, allocations: 8.849 MB / 0.5508 GB, free: 132.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008099/0.9062, allocations: 341.5 kB / 0.5512 GB, free: 132.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003941/0.9066, allocations: 32.2 kB / 0.5512 GB, free: 132.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001924/0.9085, allocations: 321 kB / 0.5515 GB, free: 132.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003637/0.9089, allocations: 108 kB / 0.5516 GB, free: 132.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001631/0.9091, allocations: 51.48 kB / 0.5516 GB, free: 132.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00242/0.9115, allocations: 2.037 MB / 0.5536 GB, free: 131.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.9115, allocations: 0 / 0.5536 GB, free: 131.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003833/0.9153, allocations: 1.017 MB / 0.5546 GB, free: 131.8 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 (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.01393/0.9293, allocations: 9.744 MB / 0.5641 GB, free: 127.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01059/0.9399, allocations: 7.338 MB / 0.5713 GB, free: 120.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.94, allocations: 6.969 kB / 0.5713 GB, free: 120.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005353/0.9453, allocations: 3.616 MB / 0.5748 GB, free: 116.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001944/0.9473, allocations: 288.3 kB / 0.5751 GB, free: 116.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06514/1.012, allocations: 104.7 MB / 0.6774 GB, free: 8.27 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001597/1.014, allocations: 2.343 MB / 0.6797 GB, free: 5.902 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003389/1.017, allocations: 1.672 MB / 0.6813 GB, free: 4.223 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001358/1.019, allocations: 1.171 MB / 0.6825 GB, free: 3.051 MB / 446.1 MB Notification: Performance of SimCode: time 1.262e-06/1.019, allocations: 4 kB / 0.6825 GB, free: 3.047 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3/1.319, allocations: 74.11 MB / 0.7549 GB, free: 120.8 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001739/1.319, allocations: 230.7 kB / 0.7551 GB, free: 120.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.719/5.038, allocations: 0 / 0.7551 GB, free: 120.6 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat does not exist to compare? outputFormat=mat