Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.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.PointGravityWithPointMasses,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",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.002387/0.002386, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.104/2.104, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001123/0.001123, allocations: 89.55 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.344e-05/2.348e-05, allocations: 4 kB / 314.9 MB, free: 9.062 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.35/0.3501, allocations: 47.57 MB / 362.4 MB, free: 45.76 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1462/0.4964, allocations: 87.71 MB / 450.1 MB, free: 14.5 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003213/0.4968, allocations: 83.95 kB / 450.2 MB, free: 14.41 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.2198/0.7166, allocations: 51.43 MB / 0.4899 GB, free: 10.6 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.7166, allocations: 0 / 0.4899 GB, free: 10.6 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0001424/0.7168, allocations: 67.88 kB / 0.49 GB, free: 10.54 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1113 * Number of variables: 1113 Notification: Performance of Generate backend data structure: time 0.008097/0.7249, allocations: 2.449 MB / 0.4924 GB, free: 8.027 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.559e-05/0.725, allocations: 8.031 kB / 0.4924 GB, free: 8.02 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01555/0.7405, allocations: 1.965 MB / 0.4943 GB, free: 6.047 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005464/0.7461, allocations: 1.421 MB / 0.4957 GB, free: 4.582 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002355/0.7463, allocations: 96 kB / 0.4958 GB, free: 4.488 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001666/0.748, allocations: 187.9 kB / 0.4959 GB, free: 4.305 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01176/0.7598, allocations: 4.212 MB / 0.5001 GB, free: 88 kB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2949/1.055, allocations: 6.917 MB / 0.5068 GB, free: 97.25 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002138/1.055, allocations: 59.81 kB / 0.5069 GB, free: 97.25 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007007/1.056, allocations: 26.38 kB / 0.5069 GB, free: 97.25 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002273/1.058, allocations: 0.8028 MB / 0.5077 GB, free: 97.24 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04719/1.105, allocations: 36 MB / 0.5428 GB, free: 72.11 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003949/1.109, allocations: 1.97 MB / 0.5448 GB, free: 70.93 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00188/1.111, allocations: 0.8946 MB / 0.5456 GB, free: 70.58 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004513/1.112, allocations: 358.9 kB / 0.546 GB, free: 70.28 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.819e-05/1.112, allocations: 52.47 kB / 0.546 GB, free: 70.23 MB / 395.1 MB Notification: Performance of pre-optimization done (n=119): time 4.319e-06/1.112, allocations: 0 / 0.546 GB, free: 70.23 MB / 395.1 MB Notification: Performance of matching and sorting (n=119): time 0.03942/1.151, allocations: 5.255 MB / 0.5512 GB, free: 69.59 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.33e-05/1.151, allocations: 223.9 kB / 0.5514 GB, free: 69.33 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004333/1.156, allocations: 2.394 MB / 0.5537 GB, free: 68.42 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002457/1.156, allocations: 33.58 kB / 0.5537 GB, free: 68.39 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001673/1.158, allocations: 2.486 MB / 0.5562 GB, free: 66.53 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007324/1.158, allocations: 0.5101 MB / 0.5567 GB, free: 66.17 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002939/1.159, allocations: 2.594 kB / 0.5567 GB, free: 66.17 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0003348/1.159, allocations: 0.5532 MB / 0.5572 GB, free: 65.75 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002856/1.162, allocations: 1.411 MB / 0.5586 GB, free: 65.27 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005009/1.167, allocations: 5.056 MB / 0.5635 GB, free: 59.66 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00575/1.173, allocations: 2.687 MB / 0.5661 GB, free: 58.65 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001272/1.173, allocations: 41.12 kB / 0.5662 GB, free: 58.65 MB / 395.1 MB Notification: Performance of matching and sorting (n=732) (initialization): time 0.01438/1.187, allocations: 5.54 MB / 0.5716 GB, free: 56.76 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001029/1.187, allocations: 61.34 kB / 0.5716 GB, free: 56.76 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001761/1.188, allocations: 128.5 kB / 0.5718 GB, free: 56.76 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002204/1.188, allocations: 192 kB / 0.572 GB, free: 56.76 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01024/1.198, allocations: 1.57 MB / 0.5735 GB, free: 56.59 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002334/1.198, allocations: 252.6 kB / 0.5737 GB, free: 56.54 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005619/1.204, allocations: 0.6501 MB / 0.5744 GB, free: 56.14 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001207/1.205, allocations: 355.9 kB / 0.5747 GB, free: 56.1 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 601 * Number of states: 0 () * Number of discrete variables: 30 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],body4.sphereColor[3],body4.sphereColor[2],body4.sphereColor[1],body3.sphereColor[3],body3.sphereColor[2],body3.sphereColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (708): * Single equations (assignments): 705 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000927/1.206, allocations: 430.5 kB / 0.5751 GB, free: 55.75 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002982/1.209, allocations: 1.356 MB / 0.5764 GB, free: 54.83 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004845/1.21, allocations: 233.9 kB / 0.5767 GB, free: 54.6 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001907/1.212, allocations: 0.7152 MB / 0.5774 GB, free: 53.98 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.205e-05/1.212, allocations: 19.95 kB / 0.5774 GB, free: 53.96 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.135e-05/1.212, allocations: 0 / 0.5774 GB, free: 53.96 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.614e-05/1.212, allocations: 10.7 kB / 0.5774 GB, free: 53.96 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008131/1.22, allocations: 3.097 MB / 0.5804 GB, free: 51.39 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.657e-05/1.22, allocations: 3.938 kB / 0.5804 GB, free: 51.39 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005158/1.225, allocations: 483.1 kB / 0.5809 GB, free: 51.04 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.177e-05/1.225, allocations: 8 kB / 0.5809 GB, free: 51.04 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002501/1.226, allocations: 33.31 kB / 0.5809 GB, free: 51.01 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.006e-05/1.226, allocations: 4 kB / 0.5809 GB, free: 51.01 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.352e-06/1.226, allocations: 5.781 kB / 0.5809 GB, free: 51 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004176/1.23, allocations: 2.692 MB / 0.5836 GB, free: 48.48 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007456/1.231, allocations: 297.3 kB / 0.5838 GB, free: 48.18 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003963/1.231, allocations: 15.94 kB / 0.5839 GB, free: 48.17 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001619/1.233, allocations: 45.06 kB / 0.5839 GB, free: 48.14 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001827/1.233, allocations: 61.27 kB / 0.584 GB, free: 48.1 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000121/1.233, allocations: 37.02 kB / 0.584 GB, free: 48.07 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.003124/1.236, allocations: 1.546 MB / 0.5855 GB, free: 46.71 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.453e-06/1.236, allocations: 0 / 0.5855 GB, free: 46.71 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.005763/1.242, allocations: 0.7448 MB / 0.5862 GB, free: 45.98 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 24 (body3.r_0[1],body3.r_0[2],body3.r_0[3],body3.v_0[1],body3.v_0[2],body3.v_0[3],body4.r_0[1],body4.r_0[2],body4.r_0[3],body4.v_0[1],body4.v_0[2],body4.v_0[3],body2.r_0[1],body2.r_0[2],body2.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body1.r_0[1],body1.r_0[2],body1.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 91 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004749/1.247, allocations: 3.694 MB / 0.5898 GB, free: 42.47 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.006829/1.254, allocations: 3.207 MB / 0.593 GB, free: 39.57 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 9.548e-06/1.254, allocations: 4.25 kB / 0.593 GB, free: 39.57 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00132/1.255, allocations: 0.6366 MB / 0.5936 GB, free: 39 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001732/1.257, allocations: 190 kB / 0.5938 GB, free: 38.82 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02151/1.278, allocations: 7.445 MB / 0.601 GB, free: 32.15 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00374/1.282, allocations: 2.465 MB / 0.6035 GB, free: 29.68 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002636/1.285, allocations: 1.249 MB / 0.6047 GB, free: 28.43 MB / 395.1 MB Notification: Performance of SimCode: time 9.31e-07/1.285, allocations: 0 / 0.6047 GB, free: 28.43 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.678/4.962, allocations: 55.59 MB / 0.659 GB, free: 4.957 MB / 427.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat does not exist to compare? outputFormat=mat