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.002011/0.00201, allocations: 177.8 kB / 8.36 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.144/2.144, allocations: 205.3 MB / 214.1 MB, free: 14.13 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.001094/0.001094, allocations: 92.05 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.647e-05/3.661e-05, allocations: 4 kB / 314.9 MB, free: 9.039 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3572/0.3573, allocations: 47.56 MB / 362.4 MB, free: 45.86 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1536/0.5109, allocations: 93.1 MB / 455.5 MB, free: 9.164 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003167/0.5113, allocations: 84.98 kB / 455.6 MB, free: 9.082 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.5893/1.101, allocations: 71.99 MB / 0.5152 GB, free: 95.53 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.284e-06/1.101, allocations: 0 / 0.5152 GB, free: 95.53 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0002538/1.101, allocations: 74.81 kB / 0.5153 GB, free: 95.52 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: 1330 * Number of variables: 1330 Notification: Performance of Generate backend data structure: time 0.02199/1.123, allocations: 3.862 MB / 0.5191 GB, free: 93.95 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.135e-05/1.123, allocations: 7.75 kB / 0.5191 GB, free: 93.95 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01655/1.14, allocations: 2.156 MB / 0.5212 GB, free: 93.7 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01709/1.157, allocations: 4.486 MB / 0.5256 GB, free: 93.14 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000161/1.157, allocations: 119.5 kB / 0.5257 GB, free: 93.14 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00125/1.158, allocations: 227.3 kB / 0.5259 GB, free: 93.13 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01167/1.17, allocations: 5.344 MB / 0.5311 GB, free: 93.11 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0169/1.187, allocations: 8.284 MB / 0.5392 GB, free: 88.55 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001751/1.187, allocations: 55.09 kB / 0.5393 GB, free: 88.52 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006767/1.188, allocations: 30.12 kB / 0.5393 GB, free: 88.52 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001781/1.19, allocations: 0.9091 MB / 0.5402 GB, free: 88.35 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05798/1.248, allocations: 42.83 MB / 0.582 GB, free: 54.09 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00426/1.252, allocations: 2.395 MB / 0.5843 GB, free: 51.75 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002466/1.254, allocations: 1.326 MB / 0.5856 GB, free: 50.53 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000807/1.255, allocations: 0.6741 MB / 0.5863 GB, free: 49.8 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.61e-05/1.255, allocations: 47.28 kB / 0.5863 GB, free: 49.75 MB / 395.1 MB Notification: Performance of pre-optimization done (n=138): time 4.969e-06/1.255, allocations: 0 / 0.5863 GB, free: 49.75 MB / 395.1 MB Notification: Performance of matching and sorting (n=145): time 0.03/1.285, allocations: 8.841 MB / 0.595 GB, free: 41.78 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.503e-05/1.285, allocations: 145.2 kB / 0.5951 GB, free: 41.6 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009707/1.295, allocations: 2.795 MB / 0.5978 GB, free: 38.8 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005389/1.296, allocations: 31.02 kB / 0.5979 GB, free: 38.77 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003538/1.299, allocations: 2.829 MB / 0.6006 GB, free: 35.9 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001435/1.301, allocations: 0.5709 MB / 0.6012 GB, free: 35.32 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006812/1.302, allocations: 11.94 kB / 0.6012 GB, free: 35.31 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0004019/1.302, allocations: 0.5465 MB / 0.6017 GB, free: 34.75 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004041/1.306, allocations: 1.807 MB / 0.6035 GB, free: 32.94 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00633/1.312, allocations: 5.356 MB / 0.6087 GB, free: 25.78 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006384/1.319, allocations: 3.081 MB / 0.6117 GB, free: 22.7 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001217/1.319, allocations: 36 kB / 0.6118 GB, free: 22.66 MB / 395.1 MB Notification: Performance of matching and sorting (n=742) (initialization): time 0.03011/1.349, allocations: 7.714 MB / 0.6193 GB, free: 14.93 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.803e-05/1.349, allocations: 68.23 kB / 0.6194 GB, free: 14.87 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01673/1.366, allocations: 3.086 MB / 0.6224 GB, free: 11.77 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01713/1.383, allocations: 1.938 MB / 0.6243 GB, free: 9.816 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007298/1.391, allocations: 1.299 MB / 0.6256 GB, free: 8.516 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01137/1.402, allocations: 5.522 MB / 0.6309 GB, free: 2.773 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006723/1.409, allocations: 271.3 kB / 0.6312 GB, free: 2.508 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001413/1.41, allocations: 352 kB / 0.6315 GB, free: 2.164 MB / 395.1 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.001382/1.412, allocations: 428.9 kB / 0.6319 GB, free: 1.738 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01009/1.422, allocations: 3.025 MB / 0.6349 GB, free: 14.69 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001091/1.423, allocations: 292.1 kB / 0.6352 GB, free: 14.4 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009629/1.432, allocations: 2.655 MB / 0.6378 GB, free: 11.73 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008272/1.441, allocations: 2.268 MB / 0.64 GB, free: 9.441 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.74e-05/1.441, allocations: 4 kB / 0.64 GB, free: 9.438 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.915e-05/1.441, allocations: 7.922 kB / 0.64 GB, free: 9.43 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02633/1.467, allocations: 7.534 MB / 0.6474 GB, free: 1.824 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.696e-05/1.467, allocations: 0 / 0.6474 GB, free: 1.824 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002354/1.47, allocations: 231.6 kB / 0.6476 GB, free: 1.598 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005805/1.476, allocations: 1.022 MB / 0.6486 GB, free: 0.5625 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003764/1.476, allocations: 19.97 kB / 0.6486 GB, free: 0.543 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.298/1.774, allocations: 4.857 MB / 0.6533 GB, free: 96.43 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001128/1.775, allocations: 1.409 MB / 0.6547 GB, free: 95.14 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01379/1.789, allocations: 5.033 MB / 0.6596 GB, free: 94.5 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001165/1.79, allocations: 344.3 kB / 0.66 GB, free: 94.4 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007604/1.791, allocations: 17.25 kB / 0.66 GB, free: 94.4 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002751/1.794, allocations: 109.2 kB / 0.6601 GB, free: 94.4 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004127/1.794, allocations: 93.55 kB / 0.6602 GB, free: 94.4 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001831/1.794, allocations: 43.67 kB / 0.6602 GB, free: 94.4 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.004693/1.799, allocations: 1.845 MB / 0.662 GB, free: 94.25 MB / 411.1 MB Notification: Performance of sort global known variables: time 5.81e-07/1.799, allocations: 1.094 kB / 0.662 GB, free: 94.25 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.00738/1.807, allocations: 0.8697 MB / 0.6629 GB, free: 94.25 MB / 411.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET6979146120.x[3],$STATESET6979146120.x[2],$STATESET6979146120.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.0137/1.82, allocations: 6.022 MB / 0.6687 GB, free: 92.77 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.01253/1.833, allocations: 4.924 MB / 0.6735 GB, free: 92.33 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 8.256e-06/1.833, allocations: 3.625 kB / 0.6736 GB, free: 92.33 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00622/1.839, allocations: 1.997 MB / 0.6755 GB, free: 91.49 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002953/1.842, allocations: 308.2 kB / 0.6758 GB, free: 91.36 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03307/1.875, allocations: 8.484 MB / 0.6841 GB, free: 88.35 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008954/1.884, allocations: 2.986 MB / 0.687 GB, free: 87.16 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00606/1.89, allocations: 1.662 MB / 0.6886 GB, free: 85.86 MB / 411.1 MB Notification: Performance of SimCode: time 1.773e-06/1.89, allocations: 0 / 0.6886 GB, free: 85.86 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.021/6.911, allocations: 131.8 MB / 0.8173 GB, free: 108.5 MB / 427.1 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