Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001141/0.001141, allocations: 179.9 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.301/1.301, allocations: 223.2 MB / 240.3 MB, free: 10.15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008813/0.0008814, allocations: 94.2 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003114/0.0003114, allocations: 8 kB / 351.2 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2746/0.2749, allocations: 50.42 MB / 401.6 MB, free: 32.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1144/0.3893, allocations: 93.87 MB / 495.5 MB, free: 2.527 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002309/0.3896, allocations: 91.95 kB / 495.6 MB, free: 2.438 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.119/1.508, allocations: 185.8 MB / 0.6654 GB, free: 48.75 MB / 426.8 MB Notification: Performance of FrontEnd: time 2.755e-06/1.508, allocations: 0 / 0.6654 GB, free: 48.75 MB / 426.8 MB Notification: Performance of Transformations before backend: time 0.0004757/1.509, allocations: 163.3 kB / 0.6656 GB, free: 48.75 MB / 426.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2889 * Number of variables: 2889 Notification: Performance of Generate backend data structure: time 0.03222/1.541, allocations: 8.953 MB / 0.6743 GB, free: 45.45 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.39e-05/1.541, allocations: 13.55 kB / 0.6743 GB, free: 45.45 MB / 426.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007312/1.549, allocations: 1.443 MB / 0.6757 GB, free: 45.34 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02647/1.575, allocations: 4.686 MB / 0.6803 GB, free: 44.78 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02896/1.604, allocations: 12.33 MB / 0.6923 GB, free: 43.79 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008303/1.605, allocations: 0.623 MB / 0.693 GB, free: 43.77 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005604/1.611, allocations: 0.8504 MB / 0.6938 GB, free: 43.75 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07556/1.686, allocations: 27.71 MB / 0.7209 GB, free: 39.12 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005999/1.687, allocations: 128.8 kB / 0.721 GB, free: 39.11 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003066/1.69, allocations: 400.7 kB / 0.7214 GB, free: 39.11 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003606/1.694, allocations: 2.102 MB / 0.7234 GB, free: 39.09 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06269/1.756, allocations: 29.56 MB / 0.7523 GB, free: 29.12 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4507/2.207, allocations: 111.1 MB / 0.8608 GB, free: 35.63 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06586/2.273, allocations: 19.27 MB / 0.8796 GB, free: 34.92 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007535/2.274, allocations: 389.6 kB / 0.88 GB, free: 34.64 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.164e-05/2.274, allocations: 63.75 kB / 0.88 GB, free: 34.6 MB / 474.8 MB Notification: Performance of pre-optimization done (n=305): time 5.691e-06/2.274, allocations: 3.25 kB / 0.88 GB, free: 34.6 MB / 474.8 MB Notification: Performance of matching and sorting (n=404): time 0.405/2.679, allocations: 131 MB / 1.008 GB, free: 2.133 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002716/2.682, allocations: 3.143 MB / 1.011 GB, free: 14.7 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01377/2.695, allocations: 6.658 MB / 1.018 GB, free: 8.203 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001354/2.697, allocations: 81.7 kB / 1.018 GB, free: 8.117 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.005298/2.702, allocations: 5.814 MB / 1.023 GB, free: 2.902 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002776/2.705, allocations: 1.544 MB / 1.025 GB, free: 1.371 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001418/2.706, allocations: 216 kB / 1.025 GB, free: 1.16 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0006358/2.707, allocations: 0.7608 MB / 1.026 GB, free: 404 kB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.268/2.975, allocations: 7.841 MB / 1.033 GB, free: 126.3 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0153/2.99, allocations: 13.91 MB / 1.047 GB, free: 118.6 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01545/3.006, allocations: 10.06 MB / 1.057 GB, free: 118.5 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003072/3.006, allocations: 60.34 kB / 1.057 GB, free: 118.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1410) (initialization): time 0.08811/3.094, allocations: 34.9 MB / 1.091 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004352/3.095, allocations: 95.19 kB / 1.091 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0312/3.126, allocations: 15.02 MB / 1.106 GB, free: 110.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04632/3.172, allocations: 13.86 MB / 1.119 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009778/3.182, allocations: 2.595 MB / 1.122 GB, free: 107.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06652/3.249, allocations: 54.5 MB / 1.175 GB, free: 66.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01503/3.264, allocations: 1.435 MB / 1.176 GB, free: 65.09 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003236/3.267, allocations: 0.6507 MB / 1.177 GB, free: 64.47 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 975 * Number of states: 0 () * Number of discrete variables: 89 (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.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,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 (1243): * Single equations (assignments): 1229 * 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.01088/3.278, allocations: 3.978 MB / 1.181 GB, free: 61.12 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003025/3.281, allocations: 0.6815 MB / 1.182 GB, free: 60.8 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004859/3.286, allocations: 1.306 MB / 1.183 GB, free: 59.57 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.3553/3.641, allocations: 25.1 MB / 1.207 GB, free: 111.2 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001629/3.642, allocations: 26.5 kB / 1.207 GB, free: 111.2 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001492/3.642, allocations: 23.09 kB / 1.207 GB, free: 111.2 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1036/3.745, allocations: 46.91 MB / 1.253 GB, free: 109.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.777e-05/3.745, allocations: 3.125 kB / 1.253 GB, free: 109.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003568/3.749, allocations: 0.7087 MB / 1.254 GB, free: 109.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04328/3.792, allocations: 13.3 MB / 1.267 GB, free: 109.6 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001473/3.794, allocations: 115.2 kB / 1.267 GB, free: 109.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06364/3.857, allocations: 50.99 MB / 1.317 GB, free: 89.61 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001509/3.859, allocations: 2.97 MB / 1.32 GB, free: 86.75 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07303/3.932, allocations: 36.31 MB / 1.355 GB, free: 57.21 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00255/3.935, allocations: 0.7127 MB / 1.356 GB, free: 56.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003212/3.938, allocations: 83.45 kB / 1.356 GB, free: 56.77 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008544/3.946, allocations: 0.8173 MB / 1.357 GB, free: 55.95 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00232/3.949, allocations: 311.1 kB / 1.357 GB, free: 55.65 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001342/3.95, allocations: 131.9 kB / 1.357 GB, free: 55.52 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01014/3.96, allocations: 4.734 MB / 1.362 GB, free: 50.83 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.052e-06/3.96, allocations: 3.125 kB / 1.362 GB, free: 50.83 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01468/3.975, allocations: 2.912 MB / 1.365 GB, free: 47.93 MB / 0.5105 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 (256): * Single equations (assignments): 247 * 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.3754/4.351, allocations: 37.55 MB / 1.401 GB, free: 108.3 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02751/4.378, allocations: 18.92 MB / 1.42 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.558e-06/4.378, allocations: 3.594 kB / 1.42 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0112/4.389, allocations: 8.484 MB / 1.428 GB, free: 106.5 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005462/4.395, allocations: 0.8751 MB / 1.429 GB, free: 106.5 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4878/4.883, allocations: 256.6 MB / 1.68 GB, free: 76 MB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01388/4.897, allocations: 6.236 MB / 1.686 GB, free: 75.09 MB / 0.5418 GB Notification: Performance of simCode: alias equations: time 0.01604/4.913, allocations: 3.412 MB / 1.689 GB, free: 75.02 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01172/4.924, allocations: 4.066 MB / 1.693 GB, free: 74.57 MB / 0.5418 GB Notification: Performance of SimCode: time 2.024e-06/4.925, allocations: 3.469 kB / 1.693 GB, free: 74.57 MB / 0.5418 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6119/5.536, allocations: 227.8 MB / 1.915 GB, free: 51.21 MB / 0.5418 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001788/5.537, allocations: 244.5 kB / 1.916 GB, free: 50.95 MB / 0.5418 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.043/13.58, allocations: 0 / 1.916 GB, free: 50.95 MB / 0.5418 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses2.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2_res.mat does not exist to compare? outputFormat=mat