Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001469/0.001469, allocations: 188.4 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.041/2.041, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.001152/0.001152, allocations: 99.38 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004049/0.0004049, allocations: 12 kB / 327.1 MB, free: 92 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3379/0.3384, allocations: 47.56 MB / 374.6 MB, free: 45.33 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1513/0.4898, allocations: 92.95 MB / 467.6 MB, free: 3.668 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003708/0.4902, allocations: 87.95 kB / 467.7 MB, free: 3.582 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9736/1.464, allocations: 186.5 MB / 0.6389 GB, free: 5.031 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.945e-06/1.464, allocations: 0 / 0.6389 GB, free: 5.031 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005678/1.464, allocations: 156 kB / 0.639 GB, free: 4.879 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.6361/2.101, allocations: 9.114 MB / 0.6479 GB, free: 48.24 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.83e-05/2.101, allocations: 10.66 kB / 0.6479 GB, free: 48.24 MB / 410.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007117/2.108, allocations: 1.466 MB / 0.6493 GB, free: 48.13 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04441/2.152, allocations: 4.714 MB / 0.654 GB, free: 47.55 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04154/2.194, allocations: 13.35 MB / 0.667 GB, free: 47.09 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001058/2.195, allocations: 0.6279 MB / 0.6676 GB, free: 47.07 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005553/2.201, allocations: 0.8638 MB / 0.6684 GB, free: 47.05 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1156/2.316, allocations: 27.99 MB / 0.6958 GB, free: 42.41 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007889/2.317, allocations: 128.1 kB / 0.6959 GB, free: 42.39 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004373/2.321, allocations: 402.6 kB / 0.6963 GB, free: 42.39 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006388/2.328, allocations: 2.134 MB / 0.6984 GB, free: 42.38 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1147/2.443, allocations: 29.84 MB / 0.7275 GB, free: 33.11 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5737/3.016, allocations: 112.1 MB / 0.837 GB, free: 37.64 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1321/3.149, allocations: 19.38 MB / 0.8559 GB, free: 36.94 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001007/3.15, allocations: 386.7 kB / 0.8563 GB, free: 36.66 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.721e-05/3.15, allocations: 70.25 kB / 0.8563 GB, free: 36.62 MB / 458.8 MB Notification: Performance of pre-optimization done (n=314): time 7.454e-06/3.15, allocations: 5.109 kB / 0.8563 GB, free: 36.62 MB / 458.8 MB Notification: Performance of matching and sorting (n=413): time 0.8053/3.955, allocations: 131.3 MB / 0.9846 GB, free: 15.34 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003537/3.959, allocations: 3.145 MB / 0.9877 GB, free: 11.9 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02194/3.981, allocations: 6.79 MB / 0.9943 GB, free: 5.285 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.00173/3.982, allocations: 85.7 kB / 0.9944 GB, free: 5.195 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.006997/3.989, allocations: 5.63 MB / 0.9999 GB, free: 15.6 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.003822/3.993, allocations: 1.579 MB / 1.001 GB, free: 14.03 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003089/3.996, allocations: 227.3 kB / 1.002 GB, free: 13.81 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001543/3.998, allocations: 0.766 MB / 1.002 GB, free: 13.04 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0238/4.022, allocations: 7.896 MB / 1.01 GB, free: 5.137 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3494/4.371, allocations: 14.04 MB / 1.024 GB, free: 135.1 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02527/4.397, allocations: 10.13 MB / 1.034 GB, free: 135 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002602/4.397, allocations: 61.44 kB / 1.034 GB, free: 135 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1432) (initialization): time 0.154/4.551, allocations: 34.8 MB / 1.068 GB, free: 134 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002029/4.551, allocations: 105.1 kB / 1.068 GB, free: 134 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.05775/4.609, allocations: 15.03 MB / 1.083 GB, free: 130.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.09201/4.701, allocations: 13.87 MB / 1.096 GB, free: 128.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01764/4.719, allocations: 2.63 MB / 1.099 GB, free: 127.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1348/4.854, allocations: 54.54 MB / 1.152 GB, free: 91.69 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02238/4.876, allocations: 1.452 MB / 1.153 GB, free: 90.75 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003473/4.88, allocations: 0.6587 MB / 1.154 GB, free: 90.12 MB / 0.5105 GB 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 () * Number of clocked 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.01331/4.893, allocations: 4.032 MB / 1.158 GB, free: 86.67 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003539/4.897, allocations: 0.6905 MB / 1.159 GB, free: 86.35 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0718/4.968, allocations: 11.93 MB / 1.17 GB, free: 75.07 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1233/5.092, allocations: 25.2 MB / 1.195 GB, free: 49.91 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001118/5.092, allocations: 28 kB / 1.195 GB, free: 49.88 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001082/5.092, allocations: 19.92 kB / 1.195 GB, free: 49.86 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5192/5.611, allocations: 47.21 MB / 1.241 GB, free: 126.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.483e-05/5.611, allocations: 3.719 kB / 1.241 GB, free: 126.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007443/5.619, allocations: 0.7281 MB / 1.242 GB, free: 126.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.08868/5.708, allocations: 13.3 MB / 1.255 GB, free: 126.6 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00186/5.71, allocations: 117.4 kB / 1.255 GB, free: 126.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1284/5.838, allocations: 51.02 MB / 1.305 GB, free: 110.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002363/5.84, allocations: 2.97 MB / 1.308 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1521/5.993, allocations: 36.46 MB / 1.343 GB, free: 84.68 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002675/5.995, allocations: 0.7429 MB / 1.344 GB, free: 84.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003592/5.999, allocations: 80.86 kB / 1.344 GB, free: 84.22 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01389/6.013, allocations: 0.8233 MB / 1.345 GB, free: 83.41 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00301/6.016, allocations: 318.8 kB / 1.345 GB, free: 83.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00144/6.017, allocations: 131.9 kB / 1.345 GB, free: 82.97 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01474/6.032, allocations: 4.841 MB / 1.35 GB, free: 78.18 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.42e-07/6.032, allocations: 0 / 1.35 GB, free: 78.18 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01743/6.05, allocations: 2.944 MB / 1.353 GB, free: 75.25 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 (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.1853/6.235, allocations: 37.7 MB / 1.39 GB, free: 37.8 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.4004/6.635, allocations: 19.03 MB / 1.408 GB, free: 137 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.035e-05/6.636, allocations: 0 / 1.408 GB, free: 137 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.02087/6.656, allocations: 8.535 MB / 1.417 GB, free: 136.2 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009033/6.665, allocations: 0.8795 MB / 1.417 GB, free: 136.2 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8068/7.472, allocations: 261.3 MB / 1.673 GB, free: 88.16 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0171/7.489, allocations: 6.346 MB / 1.679 GB, free: 87.25 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01162/7.501, allocations: 4.254 MB / 1.683 GB, free: 84.03 MB / 0.5262 GB Notification: Performance of SimCode: time 1.282e-06/7.501, allocations: 0 / 1.683 GB, free: 84.03 MB / 0.5262 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.275/15.78, allocations: 419.4 MB / 2.092 GB, free: 150.6 MB / 0.5262 GB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses2.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2_res.mat does not exist to compare? outputFormat=mat