Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001056/0.001056, allocations: 178.4 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.59/1.59, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001024/0.001025, allocations: 90.69 kB / 262.5 MB, free: 1.676 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.041e-05/2.043e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1056, allocations: 47.6 MB / 363.2 MB, free: 6.961 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3905/0.4961, allocations: 93.34 MB / 456.5 MB, free: 2.277 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002849/0.4964, allocations: 82.33 kB / 456.6 MB, free: 2.238 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1933/0.6897, allocations: 72 MB / 0.5162 GB, free: 15.62 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.6898, allocations: 0 / 0.5162 GB, free: 15.62 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002368/0.69, allocations: 68 kB / 0.5163 GB, free: 15.55 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: 1330 * Number of variables: 1330 Notification: Performance of Generate backend data structure: time 0.01743/0.7075, allocations: 3.854 MB / 0.52 GB, free: 11.64 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.698e-05/0.7076, allocations: 11.97 kB / 0.5201 GB, free: 11.63 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01079/0.7184, allocations: 2.159 MB / 0.5222 GB, free: 9.465 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01286/0.7313, allocations: 4.483 MB / 0.5265 GB, free: 4.918 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002099/0.7315, allocations: 123.9 kB / 0.5267 GB, free: 4.797 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001767/0.7333, allocations: 219.9 kB / 0.5269 GB, free: 4.582 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.2735/1.007, allocations: 5.344 MB / 0.5321 GB, free: 94.84 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02119/1.028, allocations: 8.282 MB / 0.5402 GB, free: 92.32 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004357/1.029, allocations: 52.64 kB / 0.5402 GB, free: 92.32 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001791/1.03, allocations: 29 kB / 0.5403 GB, free: 92.32 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001909/1.032, allocations: 0.9061 MB / 0.5411 GB, free: 92.32 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04453/1.077, allocations: 42.83 MB / 0.583 GB, free: 65.19 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002726/1.08, allocations: 2.395 MB / 0.5853 GB, free: 63.95 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00132/1.081, allocations: 1.327 MB / 0.5866 GB, free: 63.38 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005149/1.082, allocations: 0.6682 MB / 0.5873 GB, free: 62.79 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.622e-05/1.082, allocations: 48.31 kB / 0.5873 GB, free: 62.74 MB / 410.7 MB Notification: Performance of pre-optimization done (n=138): time 3.497e-06/1.082, allocations: 0 / 0.5873 GB, free: 62.74 MB / 410.7 MB Notification: Performance of matching and sorting (n=145): time 0.01691/1.099, allocations: 8.842 MB / 0.5959 GB, free: 59.06 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.375e-05/1.099, allocations: 153.3 kB / 0.5961 GB, free: 58.9 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003729/1.102, allocations: 2.79 MB / 0.5988 GB, free: 57.87 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003142/1.103, allocations: 25.7 kB / 0.5988 GB, free: 57.84 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001386/1.104, allocations: 2.853 MB / 0.6016 GB, free: 55.72 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005965/1.105, allocations: 0.5756 MB / 0.6022 GB, free: 55.3 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000221/1.105, allocations: 0 / 0.6022 GB, free: 55.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002415/1.105, allocations: 0.545 MB / 0.6027 GB, free: 54.89 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002098/1.107, allocations: 1.806 MB / 0.6045 GB, free: 54.26 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00345/1.111, allocations: 5.355 MB / 0.6097 GB, free: 48.69 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003623/1.114, allocations: 3.078 MB / 0.6127 GB, free: 47.52 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.47e-05/1.114, allocations: 37.94 kB / 0.6127 GB, free: 47.52 MB / 410.7 MB Notification: Performance of matching and sorting (n=742) (initialization): time 0.01838/1.133, allocations: 7.8 MB / 0.6204 GB, free: 45.11 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001095/1.133, allocations: 56.66 kB / 0.6204 GB, free: 45.11 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009379/1.142, allocations: 3.081 MB / 0.6234 GB, free: 44.38 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009224/1.152, allocations: 1.933 MB / 0.6253 GB, free: 44.16 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004127/1.156, allocations: 1.302 MB / 0.6266 GB, free: 44 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006514/1.162, allocations: 5.519 MB / 0.632 GB, free: 39.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004501/1.167, allocations: 275.2 kB / 0.6322 GB, free: 38.89 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008127/1.168, allocations: 358.7 kB / 0.6326 GB, free: 38.55 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (704): * Single equations (assignments): 695 * 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.000774/1.169, allocations: 436.6 kB / 0.633 GB, free: 38.12 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004945/1.174, allocations: 3.026 MB / 0.636 GB, free: 35.61 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005323/1.174, allocations: 291.7 kB / 0.6362 GB, free: 35.33 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004747/1.179, allocations: 2.647 MB / 0.6388 GB, free: 33.24 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003685/1.183, allocations: 2.264 MB / 0.641 GB, free: 31.45 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.177e-05/1.183, allocations: 4 kB / 0.641 GB, free: 31.45 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.177e-05/1.183, allocations: 6.938 kB / 0.641 GB, free: 31.45 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01207/1.195, allocations: 7.542 MB / 0.6484 GB, free: 25.46 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.157e-05/1.195, allocations: 0 / 0.6484 GB, free: 25.46 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00106/1.196, allocations: 236.6 kB / 0.6486 GB, free: 25.28 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002658/1.199, allocations: 1.028 MB / 0.6496 GB, free: 24.58 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001445/1.199, allocations: 23.27 kB / 0.6497 GB, free: 24.56 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004227/1.203, allocations: 4.859 MB / 0.6544 GB, free: 20.1 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006455/1.204, allocations: 1.411 MB / 0.6558 GB, free: 18.62 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006388/1.21, allocations: 5.022 MB / 0.6607 GB, free: 13.82 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009322/1.211, allocations: 353.1 kB / 0.661 GB, free: 13.46 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003004/1.211, allocations: 8 kB / 0.661 GB, free: 13.45 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001275/1.213, allocations: 107.8 kB / 0.6611 GB, free: 13.34 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002031/1.213, allocations: 96.58 kB / 0.6612 GB, free: 13.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000102/1.213, allocations: 43.98 kB / 0.6613 GB, free: 13.21 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002683/1.216, allocations: 1.838 MB / 0.6631 GB, free: 11.38 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.61e-07/1.216, allocations: 4 kB / 0.6631 GB, free: 11.37 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004779/1.22, allocations: 0.8743 MB / 0.6639 GB, free: 10.5 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET0.x[3],$STATESET0.x[2],$STATESET0.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (111): * Single equations (assignments): 104 * 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.006537/1.227, allocations: 6.014 MB / 0.6698 GB, free: 4.414 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008312/1.235, allocations: 4.932 MB / 0.6746 GB, free: 15.45 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.372e-06/1.235, allocations: 192 / 0.6746 GB, free: 15.45 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003992/1.239, allocations: 1.986 MB / 0.6765 GB, free: 13.4 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002383/1.242, allocations: 311.7 kB / 0.6768 GB, free: 13.1 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01891/1.261, allocations: 8.085 MB / 0.6847 GB, free: 4.996 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00348/1.264, allocations: 2.978 MB / 0.6876 GB, free: 1.992 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.004704/1.269, allocations: 1.787 MB / 0.6894 GB, free: 212 kB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2052/1.474, allocations: 1.61 MB / 0.691 GB, free: 98.66 MB / 426.7 MB Notification: Performance of SimCode: time 1.442e-06/1.474, allocations: 0 / 0.691 GB, free: 98.66 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1216/1.596, allocations: 66.02 MB / 0.7554 GB, free: 82.28 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002035/1.596, allocations: 154.9 kB / 0.7556 GB, free: 82.08 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.335/5.931, allocations: 0 / 0.7556 GB, free: 82.08 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.mat does not exist to compare? outputFormat=mat