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/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_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/Complex trunk/package.mo): time 0.001378/0.001378, allocations: 199 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.298/1.298, allocations: 227.2 MB / 245 MB, free: 7.586 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009628/0.0009626, allocations: 95.12 kB / 297.3 MB, free: 6.195 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002737/0.0002738, allocations: 8 kB / 358 MB, free: 9.445 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2349/0.2352, allocations: 51.49 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1069/0.3422, allocations: 89.18 MB / 498.7 MB, free: 1.406 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002438/0.3425, allocations: 88.83 kB / 498.8 MB, free: 1.32 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3361/0.6786, allocations: 63.03 MB / 0.5486 GB, free: 61.89 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.374e-06/0.6786, allocations: 0 / 0.5486 GB, free: 61.89 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001246/0.6788, allocations: 48 kB / 0.5487 GB, free: 61.85 MB / 378.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.01624/0.695, allocations: 3.799 MB / 0.5524 GB, free: 57.98 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.6951, allocations: 12.03 kB / 0.5524 GB, free: 57.97 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001347/0.6964, allocations: 489.2 kB / 0.5529 GB, free: 57.48 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01031/0.7068, allocations: 2.454 MB / 0.5553 GB, free: 55.02 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008947/0.7158, allocations: 3.966 MB / 0.5591 GB, free: 51 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001406/0.716, allocations: 168.3 kB / 0.5593 GB, free: 50.84 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008018/0.7168, allocations: 243.8 kB / 0.5595 GB, free: 50.6 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01488/0.7317, allocations: 8.585 MB / 0.5679 GB, free: 41.16 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.825e-05/0.7318, allocations: 55.47 kB / 0.568 GB, free: 41.1 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003545/0.7321, allocations: 115.9 kB / 0.5681 GB, free: 40.99 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000806/0.733, allocations: 0.7299 MB / 0.5688 GB, free: 40.26 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01532/0.7483, allocations: 9.667 MB / 0.5782 GB, free: 30.58 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03096/0.7793, allocations: 37.8 MB / 0.6151 GB, free: 7.531 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0111/0.7904, allocations: 4.036 MB / 0.6191 GB, free: 3.336 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.253e-05/0.7906, allocations: 8.531 kB / 0.6191 GB, free: 3.328 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.284e-05/0.7906, allocations: 54.48 kB / 0.6191 GB, free: 3.266 MB / 394.7 MB Notification: Performance of pre-optimization done (n=122): time 4.017e-06/0.7906, allocations: 0 / 0.6191 GB, free: 3.266 MB / 394.7 MB Notification: Performance of matching and sorting (n=136): time 0.04152/0.8322, allocations: 17.65 MB / 0.6364 GB, free: 1.273 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00193/0.8341, allocations: 3.078 MB / 0.6394 GB, free: 13.88 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003905/0.838, allocations: 2.701 MB / 0.642 GB, free: 11.16 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003601/0.8384, allocations: 41.7 kB / 0.6421 GB, free: 11.11 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001208/0.8396, allocations: 2.08 MB / 0.6441 GB, free: 9.004 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006714/0.8403, allocations: 0.5632 MB / 0.6446 GB, free: 8.434 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002432/0.8406, allocations: 96 kB / 0.6447 GB, free: 8.34 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002719/0.8408, allocations: 0.5046 MB / 0.6452 GB, free: 7.828 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003517/0.8444, allocations: 2.398 MB / 0.6476 GB, free: 5.422 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005148/0.8495, allocations: 5.285 MB / 0.6527 GB, free: 14.68 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0053/0.8548, allocations: 3.442 MB / 0.6561 GB, free: 11.23 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.249e-05/0.855, allocations: 32 kB / 0.6561 GB, free: 11.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=630) (initialization): time 0.03012/0.8851, allocations: 9.462 MB / 0.6654 GB, free: 1.711 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.9e-05/0.8852, allocations: 51.94 kB / 0.6654 GB, free: 1.66 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.24/1.125, allocations: 4.669 MB / 0.67 GB, free: 118.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008407/1.134, allocations: 2.352 MB / 0.6723 GB, free: 118.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003882/1.138, allocations: 1.165 MB / 0.6734 GB, free: 118.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006592/1.144, allocations: 8.276 MB / 0.6815 GB, free: 113.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005862/1.15, allocations: 0.5739 MB / 0.682 GB, free: 113.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001319/1.151, allocations: 303.3 kB / 0.6823 GB, free: 113.5 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 469 * 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 (578): * Single equations (assignments): 563 * 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.002803/1.154, allocations: 1.406 MB / 0.6837 GB, free: 113.4 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006469/1.155, allocations: 251.1 kB / 0.684 GB, free: 113.4 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000905/1.156, allocations: 415.8 kB / 0.6843 GB, free: 113.3 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009765/1.166, allocations: 4.597 MB / 0.6888 GB, free: 113.2 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.819e-05/1.166, allocations: 3.906 kB / 0.6888 GB, free: 113.2 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.873e-05/1.166, allocations: 7.797 kB / 0.6888 GB, free: 113.2 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009013/1.175, allocations: 5.335 MB / 0.6941 GB, free: 112.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.074e-05/1.175, allocations: 2.969 kB / 0.6941 GB, free: 112.4 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001377/1.176, allocations: 286.3 kB / 0.6943 GB, free: 112.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007427/1.184, allocations: 2.367 MB / 0.6966 GB, free: 112.1 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002527/1.184, allocations: 48.95 kB / 0.6967 GB, free: 112.1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007231/1.191, allocations: 9.01 MB / 0.7055 GB, free: 106.1 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001247/1.192, allocations: 2.904 MB / 0.7083 GB, free: 103.3 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01324/1.206, allocations: 8.128 MB / 0.7163 GB, free: 100.6 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007932/1.206, allocations: 335 kB / 0.7166 GB, free: 100.3 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003552/1.207, allocations: 35.55 kB / 0.7166 GB, free: 100.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001848/1.209, allocations: 267.6 kB / 0.7169 GB, free: 100.3 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003283/1.209, allocations: 113.4 kB / 0.717 GB, free: 100.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001432/1.209, allocations: 42.14 kB / 0.717 GB, free: 100.3 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002529/1.212, allocations: 1.904 MB / 0.7189 GB, free: 99.66 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.5e-07/1.212, allocations: 1.203 kB / 0.7189 GB, free: 99.66 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003389/1.215, allocations: 0.9487 MB / 0.7198 GB, free: 99.35 MB / 442.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.01284/1.228, allocations: 9.027 MB / 0.7286 GB, free: 91.94 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.009599/1.238, allocations: 6.81 MB / 0.7353 GB, free: 85.85 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.56e-06/1.238, allocations: 2.703 kB / 0.7353 GB, free: 85.85 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004774/1.242, allocations: 3.411 MB / 0.7386 GB, free: 82.31 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001703/1.244, allocations: 284.2 kB / 0.7389 GB, free: 82.04 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2374/1.482, allocations: 100.7 MB / 0.8372 GB, free: 133.6 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001679/1.483, allocations: 2.345 MB / 0.8395 GB, free: 132.9 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003624/1.487, allocations: 1.632 MB / 0.8411 GB, free: 132.8 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001515/1.489, allocations: 1.156 MB / 0.8422 GB, free: 132.8 MB / 458.7 MB Notification: Performance of SimCode: time 9.628e-06/1.489, allocations: 0 / 0.8422 GB, free: 132.8 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08269/1.571, allocations: 66.47 MB / 0.9071 GB, free: 90.68 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001478/1.571, allocations: 221.8 kB / 0.9074 GB, free: 90.44 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.758/5.329, allocations: 0 / 0.9074 GB, free: 90.44 MB / 458.7 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