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.001349/0.001349, allocations: 172.9 kB / 14.1 MB, free: 1.223 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.433/1.433, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0008458/0.0008458, allocations: 86.72 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.886e-05/2.888e-05, allocations: 11.92 kB / 322.6 MB, free: 17.24 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.089/0.08905, allocations: 47.56 MB / 370.1 MB, free: 1.613 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.316/0.405, allocations: 92.83 MB / 462.9 MB, free: 0.6523 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002043/0.4053, allocations: 91.06 kB / 463 MB, free: 0.6055 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6458/1.051, allocations: 186.8 MB / 0.6346 GB, free: 46.79 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.765e-06/1.051, allocations: 3.938 kB / 0.6346 GB, free: 46.79 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004027/1.052, allocations: 171.9 kB / 0.6347 GB, free: 46.62 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.02719/1.079, allocations: 8.409 MB / 0.6429 GB, free: 38.12 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.799e-05/1.079, allocations: 8.031 kB / 0.6429 GB, free: 38.11 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00649/1.085, allocations: 1.462 MB / 0.6444 GB, free: 36.64 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02612/1.111, allocations: 4.72 MB / 0.649 GB, free: 31.9 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02548/1.137, allocations: 13.31 MB / 0.662 GB, free: 18.51 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005298/1.138, allocations: 0.6297 MB / 0.6626 GB, free: 17.88 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004324/1.142, allocations: 0.8587 MB / 0.6634 GB, free: 17.02 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07058/1.212, allocations: 27.64 MB / 0.6904 GB, free: 3.629 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004781/1.213, allocations: 134.8 kB / 0.6906 GB, free: 3.496 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002491/1.216, allocations: 403.8 kB / 0.6909 GB, free: 3.102 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003694/1.219, allocations: 2.137 MB / 0.693 GB, free: 0.957 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4979/1.717, allocations: 29.2 MB / 0.7215 GB, free: 63.08 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1166/1.834, allocations: 112.1 MB / 0.831 GB, free: 6.852 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.07148/1.905, allocations: 19.62 MB / 0.8501 GB, free: 9.285 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01227/1.918, allocations: 9.311 MB / 0.8592 GB, free: 0.8164 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006246/1.918, allocations: 396.8 kB / 0.8596 GB, free: 428 kB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.172e-05/1.918, allocations: 70.48 kB / 0.8597 GB, free: 356 kB / 458.8 MB Notification: Performance of pre-optimization done (n=314): time 7.003e-06/1.918, allocations: 0 / 0.8597 GB, free: 356 kB / 458.8 MB Notification: Performance of matching and sorting (n=413): time 0.5786/2.497, allocations: 115.9 MB / 0.9729 GB, free: 66.7 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00164/2.499, allocations: 3.122 MB / 0.9759 GB, free: 63.28 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009036/2.508, allocations: 6.536 MB / 0.9823 GB, free: 56.92 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001224/2.509, allocations: 88.38 kB / 0.9824 GB, free: 56.83 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002971/2.512, allocations: 5.909 MB / 0.9882 GB, free: 51.08 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00244/2.514, allocations: 1.578 MB / 0.9897 GB, free: 49.51 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001113/2.515, allocations: 223.5 kB / 0.9899 GB, free: 49.3 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0004285/2.516, allocations: 0.7612 MB / 0.9907 GB, free: 48.53 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009411/2.525, allocations: 7.604 MB / 0.9981 GB, free: 40.92 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01242/2.538, allocations: 13.75 MB / 1.012 GB, free: 24.38 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01289/2.551, allocations: 9.907 MB / 1.021 GB, free: 14.66 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001603/2.551, allocations: 64 kB / 1.021 GB, free: 14.6 MB / 458.8 MB Notification: Performance of matching and sorting (n=1432) (initialization): time 0.3191/2.87, allocations: 34.48 MB / 1.055 GB, free: 81.72 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001061/2.87, allocations: 96.12 kB / 1.055 GB, free: 81.72 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02826/2.898, allocations: 14.96 MB / 1.07 GB, free: 81.5 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04543/2.944, allocations: 13.84 MB / 1.083 GB, free: 81.43 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008931/2.953, allocations: 2.639 MB / 1.086 GB, free: 81.21 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06317/3.016, allocations: 52.63 MB / 1.137 GB, free: 50.76 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01275/3.029, allocations: 1.444 MB / 1.139 GB, free: 49.82 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002367/3.031, allocations: 0.6471 MB / 1.139 GB, free: 49.2 MB / 458.8 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.002532/3.034, allocations: 0.9473 MB / 1.14 GB, free: 48.4 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001577/3.035, allocations: 0.6891 MB / 1.141 GB, free: 48.08 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03479/3.07, allocations: 11.87 MB / 1.152 GB, free: 37.54 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05877/3.129, allocations: 25.08 MB / 1.177 GB, free: 12.5 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.609e-05/3.129, allocations: 24 kB / 1.177 GB, free: 12.48 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001027/3.129, allocations: 27.39 kB / 1.177 GB, free: 12.46 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3446/3.474, allocations: 47.12 MB / 1.223 GB, free: 90.36 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.296e-05/3.474, allocations: 3.875 kB / 1.223 GB, free: 90.36 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003728/3.478, allocations: 0.7269 MB / 1.224 GB, free: 90.36 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04244/3.52, allocations: 13.29 MB / 1.237 GB, free: 90.3 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001258/3.521, allocations: 115.3 kB / 1.237 GB, free: 90.3 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06186/3.583, allocations: 49.19 MB / 1.285 GB, free: 75.7 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001418/3.585, allocations: 2.948 MB / 1.288 GB, free: 72.85 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06968/3.654, allocations: 36.28 MB / 1.323 GB, free: 47.93 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002463/3.657, allocations: 0.7323 MB / 1.324 GB, free: 47.55 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002316/3.659, allocations: 88.41 kB / 1.324 GB, free: 47.47 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007366/3.667, allocations: 0.8194 MB / 1.325 GB, free: 46.66 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001738/3.668, allocations: 316.8 kB / 1.325 GB, free: 46.36 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006169/3.669, allocations: 137.6 kB / 1.325 GB, free: 46.22 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.007918/3.677, allocations: 4.581 MB / 1.33 GB, free: 41.68 MB / 474.8 MB Notification: Performance of sort global known variables: time 3.3e-07/3.677, allocations: 3.188 kB / 1.33 GB, free: 41.68 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01352/3.69, allocations: 2.946 MB / 1.332 GB, free: 38.75 MB / 474.8 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.2982/3.989, allocations: 37.5 MB / 1.369 GB, free: 90.88 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.02809/4.017, allocations: 18.63 MB / 1.387 GB, free: 89.93 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.187e-05/4.017, allocations: 0 / 1.387 GB, free: 89.93 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01148/4.028, allocations: 8.418 MB / 1.395 GB, free: 89.14 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005938/4.034, allocations: 0.87 MB / 1.396 GB, free: 89.1 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06078/4.095, allocations: 25.87 MB / 1.422 GB, free: 84.02 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009643/4.105, allocations: 6.343 MB / 1.428 GB, free: 82.03 MB / 474.8 MB Notification: Performance of simCode: alias equations: time 0.01055/4.116, allocations: 3.454 MB / 1.431 GB, free: 81.74 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008174/4.124, allocations: 4.176 MB / 1.435 GB, free: 78.25 MB / 474.8 MB Notification: Performance of SimCode: time 9.01e-07/4.124, allocations: 0 / 1.435 GB, free: 78.25 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5222/4.646, allocations: 230.3 MB / 1.66 GB, free: 25.43 MB / 474.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000159/4.646, allocations: 208.2 kB / 1.66 GB, free: 25.21 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.989/11.64, allocations: 4 kB / 1.66 GB, free: 25.21 MB / 474.8 MB (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