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.0009873/0.0009874, allocations: 177.7 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.801/1.801, allocations: 205.3 MB / 214.4 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000919/0.0009191, allocations: 87.95 kB / 262.4 MB, free: 1.676 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.323e-05/2.332e-05, allocations: 4 kB / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1057, allocations: 47.58 MB / 363.2 MB, free: 6.973 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4392/0.545, allocations: 92.42 MB / 455.6 MB, free: 3.449 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003025/0.5453, allocations: 80.08 kB / 455.7 MB, free: 3.41 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.754/1.299, allocations: 182.7 MB / 0.6234 GB, free: 59.75 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.685e-06/1.299, allocations: 0 / 0.6234 GB, free: 59.75 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005005/1.3, allocations: 163.9 kB / 0.6236 GB, free: 59.59 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.03208/1.332, allocations: 8.406 MB / 0.6318 GB, free: 51.11 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.989e-05/1.332, allocations: 8.031 kB / 0.6318 GB, free: 51.11 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02732/1.359, allocations: 4.724 MB / 0.6364 GB, free: 46.36 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.031/1.39, allocations: 13.28 MB / 0.6494 GB, free: 33.12 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006353/1.391, allocations: 272 kB / 0.6497 GB, free: 32.85 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00604/1.397, allocations: 0.5153 MB / 0.6502 GB, free: 32.34 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02939/1.427, allocations: 17.94 MB / 0.6677 GB, free: 14.42 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05193/1.479, allocations: 23.45 MB / 0.6906 GB, free: 5.281 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009262/1.48, allocations: 130.8 kB / 0.6907 GB, free: 5.152 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004846/1.485, allocations: 52 kB / 0.6908 GB, free: 5.102 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004936/1.49, allocations: 2.133 MB / 0.6928 GB, free: 2.969 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6957/2.185, allocations: 109.5 MB / 0.7998 GB, free: 11.45 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01315/2.198, allocations: 10.36 MB / 0.8099 GB, free: 6.598 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01141/2.21, allocations: 9.232 MB / 0.8189 GB, free: 2.504 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007845/2.211, allocations: 385.7 kB / 0.8193 GB, free: 2.203 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.53e-05/2.211, allocations: 68.44 kB / 0.8194 GB, free: 2.141 MB / 426.8 MB Notification: Performance of pre-optimization done (n=314): time 1.017e-05/2.211, allocations: 0 / 0.8194 GB, free: 2.141 MB / 426.8 MB Notification: Performance of matching and sorting (n=411): time 0.5877/2.799, allocations: 107.8 MB / 0.9247 GB, free: 101.1 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.756e-05/2.799, allocations: 198.4 kB / 0.9249 GB, free: 100.9 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009122/2.808, allocations: 5.565 MB / 0.9303 GB, free: 99.64 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001507/2.809, allocations: 25.7 kB / 0.9303 GB, free: 99.61 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003723/2.813, allocations: 5.934 MB / 0.9361 GB, free: 95.17 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.003537/2.817, allocations: 1.526 MB / 0.9376 GB, free: 94.03 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001517/2.818, allocations: 0 / 0.9376 GB, free: 94.03 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0007065/2.819, allocations: 0.7781 MB / 0.9384 GB, free: 93.52 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009726/2.829, allocations: 7.399 MB / 0.9456 GB, free: 90.62 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01249/2.841, allocations: 13.63 MB / 0.9589 GB, free: 78.84 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01279/2.854, allocations: 9.686 MB / 0.9684 GB, free: 71.02 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001701/2.854, allocations: 67.94 kB / 0.9684 GB, free: 70.95 MB / 458.8 MB Notification: Performance of matching and sorting (n=1454) (initialization): time 0.08621/2.94, allocations: 33.02 MB / 1.001 GB, free: 45.43 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002521/2.941, allocations: 108 kB / 1.001 GB, free: 45.32 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02919/2.97, allocations: 14.81 MB / 1.015 GB, free: 30.48 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04784/3.018, allocations: 13.64 MB / 1.029 GB, free: 16.82 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.31/3.328, allocations: 2.671 MB / 1.031 GB, free: 93.4 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0671/3.395, allocations: 49 MB / 1.079 GB, free: 83.61 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01681/3.412, allocations: 1.238 MB / 1.08 GB, free: 83.61 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003805/3.416, allocations: 0.6636 MB / 1.081 GB, free: 83.52 MB / 458.8 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.003131/3.419, allocations: 0.6888 MB / 1.082 GB, free: 83.33 MB / 458.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.06418/3.483, allocations: 25.8 MB / 1.107 GB, free: 77.12 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003303/3.486, allocations: 0.6256 MB / 1.107 GB, free: 77.12 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03837/3.525, allocations: 11.61 MB / 1.119 GB, free: 73.38 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.06313/3.588, allocations: 24.79 MB / 1.143 GB, free: 54 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001036/3.588, allocations: 30.69 kB / 1.143 GB, free: 53.97 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001769/3.588, allocations: 15.94 kB / 1.143 GB, free: 53.96 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1017/3.69, allocations: 45.73 MB / 1.188 GB, free: 8.668 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.144e-05/3.69, allocations: 7.984 kB / 1.188 GB, free: 8.66 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004072/3.694, allocations: 0.7147 MB / 1.188 GB, free: 7.969 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.3367/4.031, allocations: 13.12 MB / 1.201 GB, free: 86.55 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001605/4.033, allocations: 63.75 kB / 1.201 GB, free: 86.55 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06175/4.094, allocations: 45.99 MB / 1.246 GB, free: 78.41 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001499/4.096, allocations: 2.84 MB / 1.249 GB, free: 75.7 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07518/4.171, allocations: 35.74 MB / 1.284 GB, free: 64.57 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002036/4.173, allocations: 0.6447 MB / 1.284 GB, free: 64.44 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00229/4.176, allocations: 24.41 kB / 1.284 GB, free: 64.43 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00711/4.183, allocations: 0.7611 MB / 1.285 GB, free: 64.43 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001579/4.184, allocations: 318.8 kB / 1.285 GB, free: 64.39 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006578/4.185, allocations: 127.9 kB / 1.286 GB, free: 64.37 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.006276/4.191, allocations: 3.747 MB / 1.289 GB, free: 63 MB / 458.8 MB Notification: Performance of sort global known variables: time 4.7e-07/4.191, allocations: 6.625 kB / 1.289 GB, free: 63 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.0151/4.206, allocations: 2.675 MB / 1.292 GB, free: 60.34 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 24 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.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],$STATESET0.x[3],$STATESET0.x[2],$STATESET0.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.07556/4.282, allocations: 36.97 MB / 1.328 GB, free: 31.59 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.02506/4.307, allocations: 17.95 MB / 1.345 GB, free: 14.15 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.302e-05/4.307, allocations: 0 / 1.345 GB, free: 14.15 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01166/4.319, allocations: 8.238 MB / 1.354 GB, free: 5.863 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006265/4.325, allocations: 0.6671 MB / 1.354 GB, free: 5.23 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3514/4.677, allocations: 25.31 MB / 1.379 GB, free: 106.7 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01434/4.691, allocations: 6.331 MB / 1.385 GB, free: 105.8 MB / 474.8 MB Notification: Performance of simCode: alias equations: time 0.01146/4.702, allocations: 3.432 MB / 1.388 GB, free: 105.5 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008191/4.711, allocations: 4.077 MB / 1.392 GB, free: 105.5 MB / 474.8 MB Notification: Performance of SimCode: time 1.422e-06/4.711, allocations: 0 / 1.392 GB, free: 105.5 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5798/5.291, allocations: 214.2 MB / 1.602 GB, free: 92.13 MB / 474.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001949/5.291, allocations: 173.9 kB / 1.602 GB, free: 91.94 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.193/13.48, allocations: 0 / 1.602 GB, free: 91.94 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