Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001424/0.001424, allocations: 195.8 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.56/1.56, allocations: 225.4 MB / 240.1 MB, free: 15.12 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001024/0.001025, allocations: 90 kB / 292.1 MB, free: 5.984 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.706e-05/4.708e-05, allocations: 4 kB / 350.6 MB, free: 2.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1349/0.135, allocations: 51.49 MB / 402.1 MB, free: 14.88 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4471/0.5821, allocations: 94.45 MB / 496.6 MB, free: 11.22 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003226/0.5825, allocations: 85.08 kB / 496.7 MB, free: 11.18 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8291/1.412, allocations: 195.7 MB / 0.6762 GB, free: 58.52 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.434e-06/1.412, allocations: 0 / 0.6762 GB, free: 58.52 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0007399/1.413, allocations: 160.8 kB / 0.6763 GB, free: 58.52 MB / 442.7 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.03474/1.447, allocations: 8.399 MB / 0.6845 GB, free: 53.29 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.843e-05/1.447, allocations: 7.188 kB / 0.6845 GB, free: 53.29 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008548/1.456, allocations: 1.445 MB / 0.6859 GB, free: 52.15 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02838/1.484, allocations: 4.751 MB / 0.6906 GB, free: 47.39 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02835/1.513, allocations: 11.03 MB / 0.7014 GB, free: 36.27 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000868/1.514, allocations: 0.6177 MB / 0.702 GB, free: 35.65 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005903/1.52, allocations: 0.8431 MB / 0.7028 GB, free: 34.8 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07905/1.599, allocations: 27.37 MB / 0.7295 GB, free: 5.691 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001048/1.6, allocations: 123 kB / 0.7296 GB, free: 5.57 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005425/1.605, allocations: 395.8 kB / 0.73 GB, free: 5.184 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004241/1.61, allocations: 2.099 MB / 0.7321 GB, free: 3.082 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4174/2.027, allocations: 28.94 MB / 0.7603 GB, free: 67.19 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1518/2.179, allocations: 111.1 MB / 0.8688 GB, free: 19.14 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06768/2.247, allocations: 19.21 MB / 0.8876 GB, free: 15.29 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01163/2.258, allocations: 9.272 MB / 0.8966 GB, free: 11.19 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009408/2.259, allocations: 386.9 kB / 0.897 GB, free: 10.88 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001039/2.259, allocations: 67.94 kB / 0.897 GB, free: 10.82 MB / 474.7 MB Notification: Performance of pre-optimization done (n=305): time 8.806e-06/2.259, allocations: 6.609 kB / 0.8971 GB, free: 10.82 MB / 474.7 MB Notification: Performance of matching and sorting (n=404): time 0.6981/2.957, allocations: 115 MB / 1.009 GB, free: 99.48 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001965/2.959, allocations: 3.12 MB / 1.012 GB, free: 96.55 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01394/2.973, allocations: 6.399 MB / 1.019 GB, free: 95.04 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001524/2.975, allocations: 89.39 kB / 1.019 GB, free: 94.96 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004726/2.98, allocations: 5.811 MB / 1.024 GB, free: 90.62 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002828/2.983, allocations: 1.541 MB / 1.026 GB, free: 89.49 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002378/2.985, allocations: 221.2 kB / 1.026 GB, free: 89.32 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.001295/2.986, allocations: 0.7625 MB / 1.027 GB, free: 88.82 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01192/2.998, allocations: 7.55 MB / 1.034 GB, free: 85.94 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01484/3.013, allocations: 13.62 MB / 1.048 GB, free: 70.79 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01471/3.028, allocations: 9.836 MB / 1.057 GB, free: 62.64 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002795/3.028, allocations: 60 kB / 1.057 GB, free: 62.58 MB / 490.7 MB Notification: Performance of matching and sorting (n=1410) (initialization): time 0.1017/3.13, allocations: 34.3 MB / 1.091 GB, free: 33.8 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003784/3.13, allocations: 104 kB / 1.091 GB, free: 33.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04652/3.177, allocations: 14.96 MB / 1.105 GB, free: 18.71 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.4264/3.603, allocations: 13.83 MB / 1.119 GB, free: 89.12 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01101/3.614, allocations: 2.591 MB / 1.121 GB, free: 89.12 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09651/3.711, allocations: 52.61 MB / 1.173 GB, free: 77.79 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0175/3.729, allocations: 1.431 MB / 1.174 GB, free: 77.62 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004307/3.733, allocations: 0.643 MB / 1.175 GB, free: 77.54 MB / 490.7 MB 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 () * 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.007888/3.741, allocations: 0.9326 MB / 1.176 GB, free: 77.14 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003854/3.745, allocations: 0.6744 MB / 1.176 GB, free: 77.14 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006179/3.751, allocations: 1.309 MB / 1.178 GB, free: 76.2 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.07303/3.824, allocations: 25 MB / 1.202 GB, free: 69.97 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001323/3.824, allocations: 27.44 kB / 1.202 GB, free: 69.97 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001427/3.824, allocations: 25.78 kB / 1.202 GB, free: 69.97 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1223/3.947, allocations: 46.83 MB / 1.248 GB, free: 37.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.373e-05/3.947, allocations: 4 kB / 1.248 GB, free: 37.89 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004172/3.951, allocations: 0.7073 MB / 1.249 GB, free: 37.21 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04751/3.999, allocations: 13.28 MB / 1.262 GB, free: 24.01 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002077/4.001, allocations: 116.4 kB / 1.262 GB, free: 23.89 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4801/4.481, allocations: 49.17 MB / 1.31 GB, free: 82.53 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001842/4.483, allocations: 2.944 MB / 1.313 GB, free: 79.83 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.09685/4.58, allocations: 36.13 MB / 1.348 GB, free: 76.31 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003718/4.583, allocations: 0.7229 MB / 1.349 GB, free: 76.16 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004504/4.588, allocations: 81.8 kB / 1.349 GB, free: 76.11 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01006/4.598, allocations: 0.821 MB / 1.349 GB, free: 76.06 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002994/4.601, allocations: 308.5 kB / 1.35 GB, free: 76.02 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001714/4.603, allocations: 129.3 kB / 1.35 GB, free: 76 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01271/4.616, allocations: 4.488 MB / 1.354 GB, free: 74.45 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.31e-07/4.616, allocations: 0 / 1.354 GB, free: 74.45 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01755/4.633, allocations: 2.912 MB / 1.357 GB, free: 74.2 MB / 490.7 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 (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.0872/4.72, allocations: 37.39 MB / 1.394 GB, free: 59.61 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.03138/4.752, allocations: 18.51 MB / 1.412 GB, free: 43.51 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.259e-05/4.752, allocations: 1.641 kB / 1.412 GB, free: 43.51 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01378/4.766, allocations: 8.395 MB / 1.42 GB, free: 36.03 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008107/4.774, allocations: 0.8707 MB / 1.421 GB, free: 35.32 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08197/4.856, allocations: 25.55 MB / 1.446 GB, free: 14.33 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01556/4.871, allocations: 6.238 MB / 1.452 GB, free: 8.094 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.01319/4.885, allocations: 3.409 MB / 1.455 GB, free: 4.688 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009292/4.894, allocations: 4.069 MB / 1.459 GB, free: 0.6172 MB / 490.7 MB Notification: Performance of SimCode: time 1.824e-06/4.894, allocations: 0 / 1.459 GB, free: 0.6172 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.052/5.946, allocations: 227.9 MB / 1.682 GB, free: 95.1 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001801/5.946, allocations: 218.6 kB / 1.682 GB, free: 94.88 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.987/14.93, allocations: 0 / 1.682 GB, free: 94.88 MB / 0.5105 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses2.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2_res.mat does not exist to compare? outputFormat=mat