Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001561/0.00156, allocations: 180.6 kB / 13.66 MB, free: 1.66 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.141/2.141, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001607/0.001606, allocations: 94.64 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.305e-05/3.323e-05, allocations: 4 kB / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1137, allocations: 47.58 MB / 369.2 MB, free: 2.094 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4981/0.6119, allocations: 92.84 MB / 462 MB, free: 0.5625 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003208/0.6122, allocations: 78.89 kB / 462.1 MB, free: 0.5234 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.057/1.669, allocations: 186.8 MB / 0.6337 GB, free: 47.12 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.277e-06/1.67, allocations: 0 / 0.6337 GB, free: 47.12 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005663/1.67, allocations: 163.9 kB / 0.6338 GB, free: 46.96 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: 2937 * Number of variables: 2937 Notification: Performance of Generate backend data structure: time 0.04186/1.712, allocations: 8.409 MB / 0.642 GB, free: 38.47 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.561e-05/1.712, allocations: 12.03 kB / 0.642 GB, free: 38.46 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007432/1.72, allocations: 1.47 MB / 0.6435 GB, free: 36.97 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04499/1.765, allocations: 4.716 MB / 0.6481 GB, free: 32.24 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04232/1.807, allocations: 13.31 MB / 0.6611 GB, free: 18.85 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009417/1.808, allocations: 0.6219 MB / 0.6617 GB, free: 18.22 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005607/1.814, allocations: 0.8587 MB / 0.6625 GB, free: 17.36 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1186/1.932, allocations: 27.64 MB / 0.6895 GB, free: 3.973 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009049/1.933, allocations: 126.8 kB / 0.6896 GB, free: 3.848 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005246/1.938, allocations: 403.8 kB / 0.69 GB, free: 3.453 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007497/1.946, allocations: 2.137 MB / 0.6921 GB, free: 1.309 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4464/2.392, allocations: 29.2 MB / 0.7206 GB, free: 64.91 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1988/2.591, allocations: 112.1 MB / 0.8301 GB, free: 8.965 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1677/2.759, allocations: 21.17 MB / 0.8507 GB, free: 14.4 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02178/2.781, allocations: 9.314 MB / 0.8598 GB, free: 5.078 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001134/2.782, allocations: 400.5 kB / 0.8602 GB, free: 4.652 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.987e-05/2.782, allocations: 72 kB / 0.8603 GB, free: 4.578 MB / 458.7 MB Notification: Performance of pre-optimization done (n=314): time 7.905e-06/2.782, allocations: 3.047 kB / 0.8603 GB, free: 4.578 MB / 458.7 MB Notification: Performance of matching and sorting (n=413): time 1.034/3.816, allocations: 115 MB / 0.9726 GB, free: 69.79 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002454/3.818, allocations: 3.123 MB / 0.9756 GB, free: 66.38 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01596/3.834, allocations: 6.536 MB / 0.982 GB, free: 60.02 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001813/3.836, allocations: 87.11 kB / 0.9821 GB, free: 59.93 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005147/3.841, allocations: 5.634 MB / 0.9876 GB, free: 54.46 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003305/3.845, allocations: 1.574 MB / 0.9891 GB, free: 52.9 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002814/3.848, allocations: 224.5 kB / 0.9893 GB, free: 52.69 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0009866/3.849, allocations: 0.7699 MB / 0.9901 GB, free: 51.91 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01814/3.867, allocations: 7.6 MB / 0.9975 GB, free: 44.3 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02228/3.889, allocations: 13.75 MB / 1.011 GB, free: 27.76 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02259/3.912, allocations: 9.904 MB / 1.021 GB, free: 18.04 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002252/3.912, allocations: 64 kB / 1.021 GB, free: 17.98 MB / 458.7 MB Notification: Performance of matching and sorting (n=1432) (initialization): time 0.4892/4.401, allocations: 34.21 MB / 1.054 GB, free: 83.98 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001509/4.402, allocations: 97.28 kB / 1.054 GB, free: 83.98 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.05439/4.456, allocations: 14.96 MB / 1.069 GB, free: 83.77 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.08992/4.546, allocations: 13.85 MB / 1.082 GB, free: 83.69 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01791/4.564, allocations: 2.631 MB / 1.085 GB, free: 83.48 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1249/4.689, allocations: 52.64 MB / 1.136 GB, free: 53.57 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02314/4.712, allocations: 1.444 MB / 1.138 GB, free: 52.62 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003476/4.716, allocations: 0.649 MB / 1.138 GB, free: 52.01 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 988 * Number of states: 0 () * Number of discrete variables: 87 (referenceSystem.fixedTranslation5.color[3],referenceSystem.fixedTranslation5.color[2],referenceSystem.fixedTranslation5.color[1],referenceSystem.fixedTranslation4.color[3],referenceSystem.fixedTranslation4.color[2],referenceSystem.fixedTranslation4.color[1],referenceSystem.fixedTranslation3.color[3],referenceSystem.fixedTranslation3.color[2],referenceSystem.fixedTranslation3.color[1],referenceSystem.fixedTranslation2.color[3],referenceSystem.fixedTranslation2.color[2],referenceSystem.fixedTranslation2.color[1],referenceSystem.fixedTranslation1.color[3],referenceSystem.fixedTranslation1.color[2],referenceSystem.fixedTranslation1.color[1],referenceSystem.fixedTranslation.color[3],referenceSystem.fixedTranslation.color[2],referenceSystem.fixedTranslation.color[1],referenceSystem.pointMass6.sphereColor[3],referenceSystem.pointMass6.sphereColor[2],referenceSystem.pointMass6.sphereColor[1],referenceSystem.pointMass5.sphereColor[3],referenceSystem.pointMass5.sphereColor[2],referenceSystem.pointMass5.sphereColor[1],referenceSystem.pointMass4.sphereColor[3],referenceSystem.pointMass4.sphereColor[2],referenceSystem.pointMass4.sphereColor[1],referenceSystem.pointMass3.sphereColor[3],referenceSystem.pointMass3.sphereColor[2],referenceSystem.pointMass3.sphereColor[1],referenceSystem.pointMass2.sphereColor[3],referenceSystem.pointMass2.sphereColor[2],referenceSystem.pointMass2.sphereColor[1],referenceSystem.pointMass1.sphereColor[3],referenceSystem.pointMass1.sphereColor[2],referenceSystem.pointMass1.sphereColor[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[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],fixedTranslation5.color[3],fixedTranslation5.color[2],fixedTranslation5.color[1],fixedTranslation4.color[3],fixedTranslation4.color[2],fixedTranslation4.color[1],fixedTranslation3.color[3],fixedTranslation3.color[2],fixedTranslation3.color[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],pointMass6.sphereColor[3],pointMass6.sphereColor[2],pointMass6.sphereColor[1],pointMass5.sphereColor[3],pointMass5.sphereColor[2],pointMass5.sphereColor[1],pointMass4.sphereColor[3],pointMass4.sphereColor[2],pointMass4.sphereColor[1],pointMass3.sphereColor[3],pointMass3.sphereColor[2],pointMass3.sphereColor[1],pointMass2.sphereColor[3],pointMass2.sphereColor[2],pointMass2.sphereColor[1],pointMass1.sphereColor[3],pointMass1.sphereColor[2],pointMass1.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1265): * Single equations (assignments): 1251 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,100.0%) 66,(6,100.0%) 36,(3,100.0%) 2} * Non-linear torn systems: 1 {4 7} Notification: Performance of prepare postOptimizeDAE: time 0.005828/4.721, allocations: 0.948 MB / 1.139 GB, free: 51.21 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003337/4.725, allocations: 0.6822 MB / 1.14 GB, free: 50.89 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07063/4.796, allocations: 11.87 MB / 1.152 GB, free: 40.36 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1203/4.916, allocations: 25.09 MB / 1.176 GB, free: 15.31 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.856e-05/4.916, allocations: 28 kB / 1.176 GB, free: 15.29 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001169/4.916, allocations: 23.92 kB / 1.176 GB, free: 15.26 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5344/5.451, allocations: 47.11 MB / 1.222 GB, free: 92.59 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.224e-05/5.451, allocations: 3.875 kB / 1.222 GB, free: 92.59 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007571/5.458, allocations: 0.727 MB / 1.223 GB, free: 92.59 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.08903/5.547, allocations: 13.29 MB / 1.236 GB, free: 92.54 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001826/5.549, allocations: 113.2 kB / 1.236 GB, free: 92.54 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.122/5.671, allocations: 49.19 MB / 1.284 GB, free: 77.89 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00234/5.674, allocations: 2.948 MB / 1.287 GB, free: 75.04 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1435/5.817, allocations: 36.28 MB / 1.322 GB, free: 49.86 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003006/5.82, allocations: 0.7348 MB / 1.323 GB, free: 49.48 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003807/5.824, allocations: 82.28 kB / 1.323 GB, free: 49.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0141/5.838, allocations: 0.8233 MB / 1.324 GB, free: 48.59 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003021/5.841, allocations: 314.2 kB / 1.324 GB, free: 48.29 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001769/5.843, allocations: 133.2 kB / 1.324 GB, free: 48.16 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01324/5.856, allocations: 4.589 MB / 1.329 GB, free: 43.61 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.91e-07/5.856, allocations: 0.875 kB / 1.329 GB, free: 43.61 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01883/5.875, allocations: 2.944 MB / 1.332 GB, free: 40.68 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 24 ($STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],freeMotion.r_rel_a[1],freeMotion.r_rel_a[2],freeMotion.r_rel_a[3],freeMotion.v_rel_a[1],freeMotion.v_rel_a[2],freeMotion.v_rel_a[3],freeMotion.w_rel_b[1],freeMotion.w_rel_b[2],freeMotion.w_rel_b[3],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],referenceSystem.pointMass1.frame_a.r_0[1],referenceSystem.pointMass1.frame_a.r_0[2],referenceSystem.pointMass1.frame_a.r_0[3],referenceSystem.pointMass1.v_0[1],referenceSystem.pointMass1.v_0[2],referenceSystem.pointMass1.v_0[3],referenceSystem.pointMass6.w_a[1],referenceSystem.pointMass6.w_a[2],referenceSystem.pointMass6.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (266): * Single equations (assignments): 257 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,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 {(6,100.0%) 36,(6,100.0%) 66} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.492/6.367, allocations: 37.5 MB / 1.368 GB, free: 92.78 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.04703/6.414, allocations: 18.64 MB / 1.386 GB, free: 91.82 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.049e-05/6.415, allocations: 0 / 1.386 GB, free: 91.82 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02082/6.435, allocations: 8.424 MB / 1.395 GB, free: 91.03 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008928/6.444, allocations: 0.8694 MB / 1.396 GB, free: 90.99 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1087/6.553, allocations: 26.88 MB / 1.422 GB, free: 84.95 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01665/6.57, allocations: 6.338 MB / 1.428 GB, free: 82.97 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01222/6.582, allocations: 4.253 MB / 1.432 GB, free: 79.48 MB / 474.7 MB Notification: Performance of SimCode: time 2.174e-06/6.582, allocations: 4 kB / 1.432 GB, free: 79.48 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.359/14.94, allocations: 419.7 MB / 1.842 GB, free: 70.36 MB / 0.5105 GB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses2.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2_res.mat does not exist to compare? outputFormat=mat