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.001354/0.001354, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.446/1.446, allocations: 225.4 MB / 240.1 MB, free: 15.03 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009819/0.0009819, allocations: 86.23 kB / 292.1 MB, free: 5.996 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.628e-05/3.654e-05, allocations: 8 kB / 350.6 MB, free: 2.414 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1041, allocations: 51.48 MB / 402.1 MB, free: 14.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3651/0.4692, allocations: 89.12 MB / 491.2 MB, free: 468 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002442/0.4695, allocations: 82.48 kB / 491.3 MB, free: 424 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1748/0.6443, allocations: 63.05 MB / 0.5414 GB, free: 2.551 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.6444, allocations: 4 kB / 0.5414 GB, free: 2.547 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.956e-05/0.6445, allocations: 40 kB / 0.5414 GB, free: 2.508 MB / 410.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.01537/0.6599, allocations: 3.653 MB / 0.545 GB, free: 14.8 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.579e-05/0.6599, allocations: 12.03 kB / 0.545 GB, free: 14.79 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001676/0.6616, allocations: 489.2 kB / 0.5455 GB, free: 14.3 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0126/0.6742, allocations: 2.453 MB / 0.5479 GB, free: 11.84 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01128/0.6856, allocations: 3.958 MB / 0.5517 GB, free: 7.844 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002562/0.6859, allocations: 168.4 kB / 0.5519 GB, free: 7.676 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00153/0.6874, allocations: 235.8 kB / 0.5521 GB, free: 7.445 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01881/0.7062, allocations: 8.476 MB / 0.5604 GB, free: 14.11 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001258/0.7064, allocations: 59.45 kB / 0.5604 GB, free: 14.05 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004273/0.7069, allocations: 115.9 kB / 0.5606 GB, free: 13.94 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001184/0.7081, allocations: 0.7301 MB / 0.5613 GB, free: 13.21 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0202/0.7283, allocations: 9.458 MB / 0.5705 GB, free: 3.746 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3419/1.07, allocations: 37.79 MB / 0.6074 GB, free: 67.82 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01154/1.082, allocations: 4.013 MB / 0.6113 GB, free: 67.14 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003399/1.085, allocations: 2.198 MB / 0.6135 GB, free: 67.1 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001157/1.085, allocations: 15.94 kB / 0.6135 GB, free: 67.1 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.784e-05/1.085, allocations: 54.8 kB / 0.6135 GB, free: 67.05 MB / 442.7 MB Notification: Performance of pre-optimization done (n=122): time 4.769e-06/1.085, allocations: 0 / 0.6135 GB, free: 67.05 MB / 442.7 MB Notification: Performance of matching and sorting (n=136): time 0.0418/1.127, allocations: 14.4 MB / 0.6276 GB, free: 64.72 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002503/1.13, allocations: 3.054 MB / 0.6306 GB, free: 61.79 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006775/1.137, allocations: 2.617 MB / 0.6331 GB, free: 61.49 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008016/1.138, allocations: 50.5 kB / 0.6332 GB, free: 61.46 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00154/1.139, allocations: 2.074 MB / 0.6352 GB, free: 60.48 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009778/1.14, allocations: 0.564 MB / 0.6358 GB, free: 60.16 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002779/1.14, allocations: 92.12 kB / 0.6358 GB, free: 60.16 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002998/1.141, allocations: 0.5119 MB / 0.6363 GB, free: 59.85 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003862/1.145, allocations: 2.296 MB / 0.6386 GB, free: 59.68 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006239/1.151, allocations: 5.192 MB / 0.6437 GB, free: 55.05 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006936/1.158, allocations: 3.373 MB / 0.647 GB, free: 53.99 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001642/1.158, allocations: 28.53 kB / 0.647 GB, free: 53.99 MB / 442.7 MB Notification: Performance of matching and sorting (n=630) (initialization): time 0.02434/1.182, allocations: 9.27 MB / 0.656 GB, free: 51.33 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.862e-05/1.182, allocations: 47.41 kB / 0.6561 GB, free: 51.33 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01138/1.194, allocations: 4.654 MB / 0.6606 GB, free: 50.21 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009026/1.203, allocations: 2.354 MB / 0.6629 GB, free: 49.91 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004591/1.208, allocations: 1.161 MB / 0.6641 GB, free: 49.79 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007352/1.215, allocations: 8.129 MB / 0.672 GB, free: 43.83 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007818/1.223, allocations: 0.5621 MB / 0.6725 GB, free: 43.74 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001579/1.224, allocations: 305.4 kB / 0.6728 GB, free: 43.7 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 () * 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.00112/1.226, allocations: 467.7 kB / 0.6733 GB, free: 43.31 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000815/1.226, allocations: 263.3 kB / 0.6735 GB, free: 43.16 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001061/1.228, allocations: 419.6 kB / 0.6739 GB, free: 42.91 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01072/1.238, allocations: 4.562 MB / 0.6784 GB, free: 41.79 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.912e-05/1.238, allocations: 5.781 kB / 0.6784 GB, free: 41.79 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-05/1.238, allocations: 6.844 kB / 0.6784 GB, free: 41.79 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01036/1.249, allocations: 5.338 MB / 0.6836 GB, free: 39.72 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.129e-05/1.249, allocations: 7.594 kB / 0.6836 GB, free: 39.72 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001557/1.25, allocations: 280.1 kB / 0.6839 GB, free: 39.71 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008778/1.259, allocations: 2.364 MB / 0.6862 GB, free: 39.39 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007283/1.26, allocations: 42.67 kB / 0.6862 GB, free: 39.38 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008402/1.268, allocations: 8.838 MB / 0.6949 GB, free: 32.91 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001683/1.27, allocations: 2.874 MB / 0.6977 GB, free: 29.86 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01604/1.286, allocations: 8.101 MB / 0.7056 GB, free: 23.24 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001273/1.288, allocations: 341.3 kB / 0.7059 GB, free: 22.9 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005906/1.288, allocations: 35.78 kB / 0.7059 GB, free: 22.87 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002151/1.29, allocations: 269.7 kB / 0.7062 GB, free: 22.72 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003885/1.291, allocations: 101.4 kB / 0.7063 GB, free: 22.67 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001611/1.291, allocations: 44.72 kB / 0.7063 GB, free: 22.63 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002755/1.294, allocations: 1.811 MB / 0.7081 GB, free: 20.83 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.71e-07/1.294, allocations: 0 / 0.7081 GB, free: 20.83 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005429/1.299, allocations: 0.9458 MB / 0.709 GB, free: 19.89 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 () * 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.01503/1.314, allocations: 8.995 MB / 0.7178 GB, free: 10.83 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01127/1.325, allocations: 6.678 MB / 0.7243 GB, free: 4.035 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.536e-06/1.325, allocations: 4 kB / 0.7243 GB, free: 4.031 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005782/1.331, allocations: 3.395 MB / 0.7277 GB, free: 0.4922 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002395/1.334, allocations: 279.7 kB / 0.7279 GB, free: 232 kB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02386/1.358, allocations: 8.347 MB / 0.7361 GB, free: 7.91 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002599/1.36, allocations: 2.353 MB / 0.7384 GB, free: 5.543 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.004782/1.365, allocations: 1.634 MB / 0.74 GB, free: 3.91 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002275/1.367, allocations: 1.151 MB / 0.7411 GB, free: 2.762 MB / 458.7 MB Notification: Performance of SimCode: time 1.242e-06/1.367, allocations: 4 kB / 0.7411 GB, free: 2.758 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.426/1.793, allocations: 66.39 MB / 0.8059 GB, free: 92.08 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002036/1.794, allocations: 198.8 kB / 0.8061 GB, free: 91.85 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.374/6.168, allocations: 4 kB / 0.8061 GB, free: 91.84 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