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.001388/0.001389, allocations: 175.6 kB / 13.63 MB, free: 1.684 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.504/1.504, allocations: 221.3 MB / 235.5 MB, free: 2.859 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000912/0.000912, allocations: 90.98 kB / 286.5 MB, free: 172 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.68e-05/2.683e-05, allocations: 4 kB / 343.9 MB, free: 4.195 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1354/0.1355, allocations: 50.42 MB / 394.3 MB, free: 1.738 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4247/0.5602, allocations: 93.8 MB / 488.2 MB, free: 9.523 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003199/0.5606, allocations: 87.95 kB / 488.2 MB, free: 9.438 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7837/1.344, allocations: 186.1 MB / 0.6585 GB, free: 43.12 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.884e-06/1.344, allocations: 0 / 0.6585 GB, free: 43.12 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000471/1.345, allocations: 156 kB / 0.6587 GB, free: 42.97 MB / 426.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.03287/1.378, allocations: 8.295 MB / 0.6668 GB, free: 34.59 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.326e-05/1.378, allocations: 8.031 kB / 0.6668 GB, free: 34.58 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007426/1.385, allocations: 1.446 MB / 0.6682 GB, free: 33.12 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02747/1.413, allocations: 4.688 MB / 0.6728 GB, free: 28.42 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03174/1.444, allocations: 12.29 MB / 0.6848 GB, free: 16.04 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008216/1.445, allocations: 0.6177 MB / 0.6854 GB, free: 15.42 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00549/1.451, allocations: 0.8509 MB / 0.6862 GB, free: 14.57 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07743/1.528, allocations: 27.36 MB / 0.7129 GB, free: 1.461 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007426/1.529, allocations: 130.9 kB / 0.713 GB, free: 1.332 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003881/1.533, allocations: 399.8 kB / 0.7134 GB, free: 0.9414 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.3027/1.836, allocations: 2.091 MB / 0.7155 GB, free: 66.11 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07682/1.913, allocations: 28.95 MB / 0.7437 GB, free: 66.04 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1513/2.064, allocations: 111.1 MB / 0.8522 GB, free: 10.85 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1288/2.193, allocations: 20.26 MB / 0.872 GB, free: 14.9 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01382/2.207, allocations: 9.28 MB / 0.881 GB, free: 6.453 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008661/2.208, allocations: 387.2 kB / 0.8814 GB, free: 6.062 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.71e-05/2.208, allocations: 66.5 kB / 0.8815 GB, free: 5.992 MB / 474.7 MB Notification: Performance of pre-optimization done (n=305): time 8.366e-06/2.208, allocations: 3.656 kB / 0.8815 GB, free: 5.992 MB / 474.7 MB Notification: Performance of matching and sorting (n=404): time 0.7054/2.913, allocations: 114.6 MB / 0.9934 GB, free: 75.17 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002059/2.915, allocations: 3.119 MB / 0.9964 GB, free: 71.87 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01326/2.929, allocations: 6.393 MB / 1.003 GB, free: 66.35 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001631/2.93, allocations: 86.8 kB / 1.003 GB, free: 66.26 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004742/2.935, allocations: 5.82 MB / 1.008 GB, free: 61.13 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003004/2.938, allocations: 1.543 MB / 1.01 GB, free: 59.6 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002263/2.94, allocations: 215 kB / 1.01 GB, free: 59.39 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001098/2.941, allocations: 0.7608 MB / 1.011 GB, free: 58.63 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01054/2.952, allocations: 7.553 MB / 1.018 GB, free: 51.07 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01366/2.966, allocations: 13.62 MB / 1.032 GB, free: 34.74 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01317/2.979, allocations: 9.829 MB / 1.041 GB, free: 25.09 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002533/2.979, allocations: 60 kB / 1.041 GB, free: 25.03 MB / 474.7 MB Notification: Performance of matching and sorting (n=1410) (initialization): time 0.411/3.39, allocations: 34.31 MB / 1.075 GB, free: 80.08 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005767/3.391, allocations: 101.8 kB / 1.075 GB, free: 80.08 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.03589/3.427, allocations: 14.96 MB / 1.089 GB, free: 79.94 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04925/3.476, allocations: 13.84 MB / 1.103 GB, free: 79.87 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009852/3.486, allocations: 2.591 MB / 1.105 GB, free: 79.87 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07509/3.561, allocations: 52.61 MB / 1.157 GB, free: 61.25 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01617/3.577, allocations: 1.433 MB / 1.158 GB, free: 61.09 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003499/3.581, allocations: 0.6387 MB / 1.159 GB, free: 61 MB / 474.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.006012/3.587, allocations: 0.9259 MB / 1.16 GB, free: 60.59 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002974/3.59, allocations: 0.6788 MB / 1.16 GB, free: 60.59 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006029/3.596, allocations: 1.311 MB / 1.162 GB, free: 59.65 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0661/3.662, allocations: 25 MB / 1.186 GB, free: 38.46 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001163/3.662, allocations: 28 kB / 1.186 GB, free: 38.43 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000123/3.662, allocations: 19.88 kB / 1.186 GB, free: 38.42 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4653/4.128, allocations: 46.81 MB / 1.232 GB, free: 88.12 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.83e-05/4.128, allocations: 3.469 kB / 1.232 GB, free: 88.12 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004541/4.132, allocations: 0.7077 MB / 1.233 GB, free: 88.12 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.05416/4.186, allocations: 13.29 MB / 1.246 GB, free: 88.07 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002386/4.189, allocations: 117.4 kB / 1.246 GB, free: 88.07 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07268/4.262, allocations: 49.17 MB / 1.294 GB, free: 80.64 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001883/4.264, allocations: 2.943 MB / 1.297 GB, free: 77.8 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.115/4.379, allocations: 36.14 MB / 1.332 GB, free: 66.5 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003136/4.382, allocations: 0.7187 MB / 1.333 GB, free: 66.35 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00351/4.385, allocations: 82.16 kB / 1.333 GB, free: 66.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009041/4.394, allocations: 0.8098 MB / 1.333 GB, free: 66.25 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002656/4.397, allocations: 320.7 kB / 1.334 GB, free: 66.21 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001513/4.399, allocations: 128.1 kB / 1.334 GB, free: 66.19 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01104/4.41, allocations: 4.483 MB / 1.338 GB, free: 64.64 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.82e-07/4.41, allocations: 3.172 kB / 1.338 GB, free: 64.64 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01722/4.427, allocations: 2.915 MB / 1.341 GB, free: 64.4 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.08555/4.513, allocations: 37.38 MB / 1.378 GB, free: 35.06 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.03044/4.543, allocations: 18.52 MB / 1.396 GB, free: 17.13 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.261e-05/4.543, allocations: 4 kB / 1.396 GB, free: 17.12 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01348/4.557, allocations: 8.386 MB / 1.404 GB, free: 8.68 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007736/4.564, allocations: 0.8659 MB / 1.405 GB, free: 7.863 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3862/4.951, allocations: 25.56 MB / 1.43 GB, free: 97.22 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01263/4.963, allocations: 6.236 MB / 1.436 GB, free: 96.29 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.01229/4.976, allocations: 3.408 MB / 1.439 GB, free: 96 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009188/4.985, allocations: 4.071 MB / 1.443 GB, free: 95.99 MB / 490.7 MB Notification: Performance of SimCode: time 3.266e-06/4.985, allocations: 0 / 1.443 GB, free: 95.99 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7052/5.69, allocations: 227.9 MB / 1.666 GB, free: 79.82 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000327/5.691, allocations: 208.2 kB / 1.666 GB, free: 79.61 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.497/14.19, allocations: 3.938 kB / 1.666 GB, free: 79.6 MB / 490.7 MB (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