Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.0009863/0.0009862, allocations: 182 kB / 17.02 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.263/1.263, allocations: 205.4 MB / 223.1 MB, free: 9.121 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.0008789/0.0008789, allocations: 88.12 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003121/0.0003122, allocations: 4 kB / 328.3 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.203/0.2033, allocations: 47.56 MB / 375.9 MB, free: 45.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1035/0.3069, allocations: 92.94 MB / 468.9 MB, free: 3.68 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002732/0.3072, allocations: 87.95 kB / 468.9 MB, free: 3.594 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5752/0.8825, allocations: 186.5 MB / 0.6401 GB, free: 5.105 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.106e-06/0.8825, allocations: 0 / 0.6401 GB, free: 5.105 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000793/0.8833, allocations: 168 kB / 0.6403 GB, free: 4.941 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.3853/1.269, allocations: 9.107 MB / 0.6491 GB, free: 48.66 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/1.269, allocations: 10.03 kB / 0.6492 GB, free: 48.66 MB / 410.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005328/1.274, allocations: 1.467 MB / 0.6506 GB, free: 48.55 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02399/1.298, allocations: 4.719 MB / 0.6552 GB, free: 47.97 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02456/1.323, allocations: 13.35 MB / 0.6682 GB, free: 47.51 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007322/1.323, allocations: 0.6289 MB / 0.6688 GB, free: 47.49 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004482/1.328, allocations: 0.8581 MB / 0.6697 GB, free: 47.47 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0691/1.397, allocations: 27.98 MB / 0.697 GB, free: 42.82 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006613/1.398, allocations: 139.4 kB / 0.6971 GB, free: 42.81 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003915/1.402, allocations: 406.4 kB / 0.6975 GB, free: 42.81 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003966/1.406, allocations: 2.133 MB / 0.6996 GB, free: 42.79 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06087/1.467, allocations: 29.83 MB / 0.7287 GB, free: 33.2 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3473/1.814, allocations: 112.1 MB / 0.8382 GB, free: 39.77 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06583/1.88, allocations: 19.38 MB / 0.8572 GB, free: 39.07 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007007/1.881, allocations: 386.1 kB / 0.8575 GB, free: 38.79 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.088e-05/1.881, allocations: 67.44 kB / 0.8576 GB, free: 38.75 MB / 458.8 MB Notification: Performance of pre-optimization done (n=314): time 6.301e-06/1.881, allocations: 0 / 0.8576 GB, free: 38.75 MB / 458.8 MB Notification: Performance of matching and sorting (n=413): time 0.412/2.293, allocations: 131.3 MB / 0.9858 GB, free: 1.438 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003445/2.296, allocations: 3.156 MB / 0.9889 GB, free: 13.99 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02178/2.318, allocations: 6.789 MB / 0.9956 GB, free: 7.375 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.001984/2.32, allocations: 87.34 kB / 0.9956 GB, free: 7.285 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.008389/2.328, allocations: 5.902 MB / 1.001 GB, free: 1.418 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.2423/2.571, allocations: 1.577 MB / 1.003 GB, free: 130.5 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002788/2.574, allocations: 223.2 kB / 1.003 GB, free: 130.5 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0006253/2.574, allocations: 0.763 MB / 1.004 GB, free: 130.2 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01201/2.586, allocations: 7.895 MB / 1.012 GB, free: 130.2 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01523/2.601, allocations: 14.04 MB / 1.025 GB, free: 122.3 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0161/2.618, allocations: 10.13 MB / 1.035 GB, free: 122.3 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002196/2.618, allocations: 61.62 kB / 1.035 GB, free: 122.3 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1432) (initialization): time 0.08161/2.699, allocations: 35.09 MB / 1.07 GB, free: 116.4 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001285/2.7, allocations: 97.72 kB / 1.07 GB, free: 116.4 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02847/2.728, allocations: 15.02 MB / 1.084 GB, free: 111.9 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04565/2.774, allocations: 13.87 MB / 1.098 GB, free: 109.8 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009573/2.783, allocations: 2.63 MB / 1.1 GB, free: 109.5 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06486/2.848, allocations: 54.55 MB / 1.154 GB, free: 65.71 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01452/2.863, allocations: 1.448 MB / 1.155 GB, free: 64.31 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002981/2.866, allocations: 0.6483 MB / 1.156 GB, free: 63.66 MB / 0.4949 GB 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 () * Number of clocked 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.009538/2.876, allocations: 4.042 MB / 1.16 GB, free: 59.7 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001831/2.877, allocations: 0.6902 MB / 1.16 GB, free: 59.37 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03614/2.913, allocations: 11.92 MB / 1.172 GB, free: 47.51 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.2908/3.204, allocations: 25.2 MB / 1.197 GB, free: 116.4 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001432/3.205, allocations: 27.41 kB / 1.197 GB, free: 116.4 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000111/3.205, allocations: 21.55 kB / 1.197 GB, free: 116.4 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1009/3.306, allocations: 47.21 MB / 1.243 GB, free: 114 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.007e-05/3.306, allocations: 9.219 kB / 1.243 GB, free: 114 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003804/3.31, allocations: 0.7229 MB / 1.243 GB, free: 114 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04268/3.352, allocations: 13.31 MB / 1.256 GB, free: 112.1 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001408/3.354, allocations: 114.6 kB / 1.257 GB, free: 112 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06109/3.415, allocations: 51.01 MB / 1.306 GB, free: 83.2 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001477/3.416, allocations: 2.972 MB / 1.309 GB, free: 79.99 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07124/3.488, allocations: 36.46 MB / 1.345 GB, free: 43.96 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002431/3.49, allocations: 0.7341 MB / 1.346 GB, free: 43.59 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00273/3.493, allocations: 83.42 kB / 1.346 GB, free: 43.51 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007809/3.501, allocations: 0.8233 MB / 1.347 GB, free: 42.69 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002046/3.503, allocations: 318.3 kB / 1.347 GB, free: 42.39 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001188/3.504, allocations: 131.9 kB / 1.347 GB, free: 42.26 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.00972/3.514, allocations: 4.841 MB / 1.352 GB, free: 37.47 MB / 0.4949 GB Notification: Performance of sort global known variables: time 5.91e-07/3.514, allocations: 0 / 1.352 GB, free: 37.47 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.2464/3.76, allocations: 2.94 MB / 1.355 GB, free: 113 MB / 0.4949 GB 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 () * Number of clocked 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.08237/3.842, allocations: 37.7 MB / 1.391 GB, free: 110.6 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.03193/3.874, allocations: 19.03 MB / 1.41 GB, free: 109.6 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.199e-05/3.874, allocations: 0 / 1.41 GB, free: 109.6 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.01328/3.888, allocations: 8.524 MB / 1.418 GB, free: 106.5 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007777/3.896, allocations: 0.8739 MB / 1.419 GB, free: 106.1 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4384/4.334, allocations: 260.3 MB / 1.673 GB, free: 15.29 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01042/4.345, allocations: 6.346 MB / 1.68 GB, free: 14.37 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.009746/4.354, allocations: 3.462 MB / 1.683 GB, free: 14.3 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007324/4.362, allocations: 4.166 MB / 1.687 GB, free: 13.16 MB / 0.4949 GB Notification: Performance of SimCode: time 5.891e-06/4.362, allocations: 0 / 1.687 GB, free: 13.16 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6798/5.041, allocations: 230.3 MB / 1.912 GB, free: 81.53 MB / 0.4949 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001736/5.042, allocations: 247.3 kB / 1.912 GB, free: 81.27 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.74/11.78, allocations: 2.125 kB / 1.912 GB, free: 81.27 MB / 0.4949 GB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses2.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2_res.mat does not exist to compare? outputFormat=mat