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.002116/0.002116, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.238/2.238, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001139/0.001139, allocations: 87.33 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.568e-05/2.573e-05, allocations: 4 kB / 314.9 MB, free: 9.055 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3494/0.3494, allocations: 47.56 MB / 362.4 MB, free: 45.75 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1553/0.5048, allocations: 92.19 MB / 454.6 MB, free: 10.01 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000327/0.5052, allocations: 88.94 kB / 454.7 MB, free: 9.926 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.9941/1.499, allocations: 182.8 MB / 0.6225 GB, free: 17.17 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.755e-06/1.499, allocations: 0 / 0.6225 GB, free: 17.17 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.000554/1.5, allocations: 168 kB / 0.6227 GB, free: 17 MB / 395.1 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.04136/1.541, allocations: 8.401 MB / 0.6309 GB, free: 8.516 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.512e-05/1.541, allocations: 12.03 kB / 0.6309 GB, free: 8.504 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04466/1.586, allocations: 4.72 MB / 0.6355 GB, free: 3.766 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04819/1.634, allocations: 13.29 MB / 0.6485 GB, free: 6.391 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007674/1.635, allocations: 272 kB / 0.6487 GB, free: 6.125 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005431/1.641, allocations: 0.5152 MB / 0.6492 GB, free: 5.609 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.6247/2.265, allocations: 17.93 MB / 0.6668 GB, free: 54.39 MB / 411.2 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05891/2.324, allocations: 23.44 MB / 0.6897 GB, free: 49.78 MB / 411.2 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007046/2.325, allocations: 129.8 kB / 0.6898 GB, free: 49.78 MB / 411.2 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004056/2.329, allocations: 51.16 kB / 0.6898 GB, free: 49.78 MB / 411.2 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00638/2.336, allocations: 2.137 MB / 0.6919 GB, free: 49.77 MB / 411.2 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1971/2.533, allocations: 109.5 MB / 0.7989 GB, free: 7.797 MB / 443.2 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03229/2.565, allocations: 10.91 MB / 0.8095 GB, free: 15.74 MB / 459.2 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01964/2.585, allocations: 9.23 MB / 0.8186 GB, free: 7.344 MB / 459.2 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009873/2.586, allocations: 382.3 kB / 0.8189 GB, free: 6.957 MB / 459.2 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.323e-05/2.586, allocations: 77.53 kB / 0.819 GB, free: 6.879 MB / 459.2 MB Notification: Performance of pre-optimization done (n=314): time 7.164e-06/2.586, allocations: 3.75 kB / 0.819 GB, free: 6.879 MB / 459.2 MB Notification: Performance of matching and sorting (n=411): time 0.7515/3.337, allocations: 105.8 MB / 0.9224 GB, free: 76.2 MB / 459.2 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.359e-05/3.338, allocations: 200.5 kB / 0.9226 GB, free: 75.98 MB / 459.2 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01381/3.351, allocations: 5.568 MB / 0.928 GB, free: 71.24 MB / 459.2 MB Notification: Performance of collectPreVariables (initialization): time 0.001695/3.353, allocations: 29.7 kB / 0.928 GB, free: 71.21 MB / 459.2 MB Notification: Performance of collectInitialEqns (initialization): time 0.004814/3.358, allocations: 5.736 MB / 0.9336 GB, free: 66.29 MB / 459.2 MB Notification: Performance of collectInitialBindings (initialization): time 0.003136/3.361, allocations: 1.524 MB / 0.9351 GB, free: 64.91 MB / 459.2 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002405/3.364, allocations: 0 / 0.9351 GB, free: 64.91 MB / 459.2 MB Notification: Performance of setup shared object (initialization): time 0.0008597/3.364, allocations: 0.7827 MB / 0.9359 GB, free: 64.25 MB / 459.2 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01588/3.38, allocations: 7.406 MB / 0.9431 GB, free: 57.68 MB / 459.2 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01995/3.4, allocations: 13.62 MB / 0.9564 GB, free: 42.27 MB / 459.2 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02037/3.421, allocations: 9.686 MB / 0.9659 GB, free: 34.45 MB / 459.2 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002586/3.421, allocations: 64 kB / 0.9659 GB, free: 34.38 MB / 459.2 MB Notification: Performance of matching and sorting (n=1454) (initialization): time 0.5042/3.925, allocations: 32.82 MB / 0.998 GB, free: 79.69 MB / 459.2 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001768/3.925, allocations: 103 kB / 0.9981 GB, free: 79.68 MB / 459.2 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.05559/3.981, allocations: 14.81 MB / 1.013 GB, free: 79.55 MB / 459.2 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.09043/4.072, allocations: 13.64 MB / 1.026 GB, free: 79.48 MB / 459.2 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01756/4.089, allocations: 2.679 MB / 1.028 GB, free: 79.47 MB / 459.2 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1156/4.205, allocations: 48.99 MB / 1.076 GB, free: 63.72 MB / 459.2 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02201/4.227, allocations: 1.234 MB / 1.078 GB, free: 63.72 MB / 459.2 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003596/4.231, allocations: 0.6637 MB / 1.078 GB, free: 63.63 MB / 459.2 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1012 * 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 (1287): * Single equations (assignments): 1273 * 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.005706/4.236, allocations: 0.6783 MB / 1.079 GB, free: 63.39 MB / 459.2 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.1203/4.357, allocations: 25.8 MB / 1.104 GB, free: 50.65 MB / 459.2 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003254/4.36, allocations: 0.6264 MB / 1.105 GB, free: 50.36 MB / 459.2 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06861/4.429, allocations: 11.61 MB / 1.116 GB, free: 38.8 MB / 459.2 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1156/4.544, allocations: 24.79 MB / 1.14 GB, free: 14.06 MB / 459.2 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.026e-05/4.544, allocations: 27.94 kB / 1.14 GB, free: 14.03 MB / 459.2 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001455/4.545, allocations: 23.89 kB / 1.14 GB, free: 14.01 MB / 459.2 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5153/5.06, allocations: 45.72 MB / 1.185 GB, free: 78.75 MB / 459.2 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.637e-05/5.06, allocations: 2.844 kB / 1.185 GB, free: 78.75 MB / 459.2 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007708/5.068, allocations: 0.721 MB / 1.186 GB, free: 78.75 MB / 459.2 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.08853/5.156, allocations: 13.13 MB / 1.198 GB, free: 78.69 MB / 459.2 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001675/5.158, allocations: 57.92 kB / 1.198 GB, free: 78.69 MB / 459.2 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1088/5.267, allocations: 45.99 MB / 1.243 GB, free: 63.39 MB / 459.2 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002154/5.269, allocations: 2.836 MB / 1.246 GB, free: 60.68 MB / 459.2 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1356/5.405, allocations: 35.75 MB / 1.281 GB, free: 37.36 MB / 459.2 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002436/5.407, allocations: 0.6442 MB / 1.282 GB, free: 37.04 MB / 459.2 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003495/5.411, allocations: 19.98 kB / 1.282 GB, free: 37.02 MB / 459.2 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01414/5.425, allocations: 0.7622 MB / 1.282 GB, free: 36.26 MB / 459.2 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002694/5.428, allocations: 318 kB / 1.283 GB, free: 35.96 MB / 459.2 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00133/5.429, allocations: 127.9 kB / 1.283 GB, free: 35.83 MB / 459.2 MB Notification: Performance of sorting global known variables: time 0.009535/5.439, allocations: 3.75 MB / 1.287 GB, free: 32.1 MB / 459.2 MB Notification: Performance of sort global known variables: time 7.21e-07/5.439, allocations: 0 / 1.287 GB, free: 32.1 MB / 459.2 MB Notification: Performance of remove unused functions: time 0.01748/5.456, allocations: 2.679 MB / 1.289 GB, free: 29.43 MB / 459.2 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 24 ($STATESET140515139191177.x[3],$STATESET140515139191177.x[2],$STATESET140515139191177.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],$STATESET140515139191176.x[3],$STATESET140515139191176.x[2],$STATESET140515139191176.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 (264): * Single equations (assignments): 255 * 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.4727/5.929, allocations: 36.97 MB / 1.325 GB, free: 95.39 MB / 475.2 MB Notification: Performance of simCode: created initialization part: time 0.03937/5.968, allocations: 17.97 MB / 1.343 GB, free: 94.49 MB / 475.2 MB Notification: Performance of simCode: created event and clocks part: time 1.045e-05/5.968, allocations: 0 / 1.343 GB, free: 94.49 MB / 475.2 MB Notification: Performance of simCode: created simulation system equations: time 0.01971/5.988, allocations: 8.241 MB / 1.351 GB, free: 93.74 MB / 475.2 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007886/5.996, allocations: 0.6605 MB / 1.352 GB, free: 93.71 MB / 475.2 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1038/6.1, allocations: 26.31 MB / 1.377 GB, free: 88.13 MB / 475.2 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01761/6.118, allocations: 6.336 MB / 1.383 GB, free: 86.15 MB / 475.2 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01184/6.129, allocations: 4.169 MB / 1.387 GB, free: 82.73 MB / 475.2 MB Notification: Performance of SimCode: time 1.583e-06/6.129, allocations: 0 / 1.387 GB, free: 82.73 MB / 475.2 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.974/14.1, allocations: 413.4 MB / 1.791 GB, free: 62.89 MB / 0.4953 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