Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.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.FreeBody,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody",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.001531/0.001531, allocations: 186.5 kB / 16.4 MB, free: 5.715 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.913/1.913, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001126/0.001126, allocations: 103.3 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000376/0.0003761, allocations: 12 kB / 327.1 MB, free: 92 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3293/0.3297, allocations: 47.56 MB / 374.6 MB, free: 45.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1518/0.4815, allocations: 93.85 MB / 468.5 MB, free: 2.754 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003266/0.4819, allocations: 87.95 kB / 468.6 MB, free: 2.668 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5578/1.04, allocations: 73.58 MB / 0.5294 GB, free: 85.87 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.575e-06/1.04, allocations: 0 / 0.5294 GB, free: 85.87 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002202/1.04, allocations: 79.2 kB / 0.5295 GB, free: 85.8 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1330 * Number of variables: 1330 Notification: Performance of Generate backend data structure: time 0.02179/1.062, allocations: 4.076 MB / 0.5335 GB, free: 81.68 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.131e-05/1.062, allocations: 8.031 kB / 0.5335 GB, free: 81.68 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003071/1.065, allocations: 0.6827 MB / 0.5342 GB, free: 81 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01676/1.082, allocations: 2.159 MB / 0.5363 GB, free: 78.84 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01729/1.099, allocations: 4.498 MB / 0.5407 GB, free: 74.33 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003175/1.1, allocations: 287.4 kB / 0.5409 GB, free: 74.05 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002015/1.102, allocations: 375.8 kB / 0.5413 GB, free: 73.68 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02688/1.128, allocations: 9.327 MB / 0.5504 GB, free: 63.39 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002523/1.129, allocations: 59.47 kB / 0.5505 GB, free: 63.34 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001677/1.13, allocations: 183.9 kB / 0.5506 GB, free: 63.16 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001985/1.132, allocations: 0.9038 MB / 0.5515 GB, free: 62.25 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02237/1.155, allocations: 7.575 MB / 0.5589 GB, free: 54.67 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06036/1.215, allocations: 43.91 MB / 0.6018 GB, free: 9.324 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01395/1.229, allocations: 3.441 MB / 0.6052 GB, free: 5.73 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01492/1.244, allocations: 6.866 MB / 0.6119 GB, free: 14.55 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.02e-05/1.244, allocations: 51.14 kB / 0.6119 GB, free: 14.49 MB / 394.7 MB Notification: Performance of pre-optimization done (n=132): time 5.701e-06/1.244, allocations: 7.938 kB / 0.6119 GB, free: 14.48 MB / 394.7 MB Notification: Performance of matching and sorting (n=139): time 0.05022/1.295, allocations: 11.37 MB / 0.623 GB, free: 2.891 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001932/1.297, allocations: 1.631 MB / 0.6246 GB, free: 1.09 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008731/1.305, allocations: 3.176 MB / 0.6277 GB, free: 13.91 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004051/1.306, allocations: 53.8 kB / 0.6278 GB, free: 13.86 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0034/1.309, allocations: 2.756 MB / 0.6305 GB, free: 11.07 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001164/1.311, allocations: 0.5711 MB / 0.631 GB, free: 10.49 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007924/1.311, allocations: 104 kB / 0.6311 GB, free: 10.39 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005511/1.312, allocations: 0.5421 MB / 0.6317 GB, free: 9.836 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005476/1.317, allocations: 1.896 MB / 0.6335 GB, free: 7.934 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009368/1.327, allocations: 5.324 MB / 0.6387 GB, free: 0.8711 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008196/1.335, allocations: 3.113 MB / 0.6417 GB, free: 13.75 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001175/1.335, allocations: 32 kB / 0.6418 GB, free: 13.71 MB / 426.7 MB Notification: Performance of matching and sorting (n=712) (initialization): time 0.03484/1.37, allocations: 8.366 MB / 0.6499 GB, free: 5.336 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001215/1.37, allocations: 60 kB / 0.65 GB, free: 5.277 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01868/1.389, allocations: 3.172 MB / 0.6531 GB, free: 2.086 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01914/1.408, allocations: 1.942 MB / 0.655 GB, free: 132 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.3322/1.74, allocations: 1.239 MB / 0.6562 GB, free: 116.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01358/1.754, allocations: 5.917 MB / 0.662 GB, free: 114 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006678/1.761, allocations: 375 kB / 0.6623 GB, free: 114 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001542/1.762, allocations: 346.8 kB / 0.6627 GB, free: 114 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 559 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (674): * Single equations (assignments): 665 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005591/1.768, allocations: 1.85 MB / 0.6645 GB, free: 113.9 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008477/1.769, allocations: 305.4 kB / 0.6648 GB, free: 113.9 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01001/1.779, allocations: 2.76 MB / 0.6675 GB, free: 113.8 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007955/1.787, allocations: 2.338 MB / 0.6697 GB, free: 113.7 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.286e-05/1.787, allocations: 7.828 kB / 0.6698 GB, free: 113.7 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.331e-05/1.787, allocations: 11.75 kB / 0.6698 GB, free: 113.7 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02279/1.81, allocations: 7.837 MB / 0.6774 GB, free: 112.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.639e-05/1.81, allocations: 6.438 kB / 0.6774 GB, free: 112.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002121/1.812, allocations: 220.6 kB / 0.6776 GB, free: 112.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00557/1.818, allocations: 1.045 MB / 0.6787 GB, free: 111.9 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004037/1.818, allocations: 34.5 kB / 0.6787 GB, free: 111.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008231/1.826, allocations: 5.053 MB / 0.6836 GB, free: 108.6 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001202/1.828, allocations: 1.494 MB / 0.6851 GB, free: 107.1 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01262/1.84, allocations: 5.073 MB / 0.69 GB, free: 105.1 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001122/1.841, allocations: 371 kB / 0.6904 GB, free: 105 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001109/1.843, allocations: 34.69 kB / 0.6904 GB, free: 105 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003007/1.846, allocations: 118.2 kB / 0.6905 GB, free: 104.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005727/1.846, allocations: 92.64 kB / 0.6906 GB, free: 104.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001769/1.846, allocations: 42.92 kB / 0.6907 GB, free: 104.9 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00536/1.852, allocations: 2.196 MB / 0.6928 GB, free: 104.2 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.82e-07/1.852, allocations: 0 / 0.6928 GB, free: 104.2 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006701/1.859, allocations: 0.9623 MB / 0.6938 GB, free: 104.1 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.v_0[1],body.v_0[2],body.v_0[3],body.body.frame_a.r_0[1],body.body.frame_a.r_0[2],body.body.frame_a.r_0[3],body.body.w_a[1],body.body.w_a[2],body.body.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 (105): * Single equations (assignments): 98 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,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: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01339/1.872, allocations: 6.072 MB / 0.6997 GB, free: 101 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01371/1.886, allocations: 5.152 MB / 0.7047 GB, free: 99.15 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.338e-06/1.886, allocations: 3.875 kB / 0.7047 GB, free: 99.15 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006478/1.892, allocations: 2.02 MB / 0.7067 GB, free: 97.64 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003144/1.896, allocations: 362 kB / 0.707 GB, free: 97.34 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4013/2.297, allocations: 115.8 MB / 0.8201 GB, free: 133.8 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00735/2.304, allocations: 2.985 MB / 0.8231 GB, free: 133 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004289/2.309, allocations: 1.648 MB / 0.8247 GB, free: 133 MB / 442.7 MB Notification: Performance of SimCode: time 2.675e-06/2.309, allocations: 0 / 0.8247 GB, free: 133 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.439/6.748, allocations: 133.3 MB / 0.9549 GB, free: 27.44 MB / 442.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.mat does not exist to compare? outputFormat=mat