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.0009557/0.0009557, allocations: 181.2 kB / 17.01 MB, free: 5.125 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.26/1.26, allocations: 205.4 MB / 223.1 MB, free: 9.129 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.0007907/0.0007907, allocations: 100 kB / 271.5 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002208/0.000221, allocations: 8 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2195/0.2198, allocations: 47.58 MB / 375.9 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.108/0.3278, allocations: 93.84 MB / 469.8 MB, free: 2.77 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003087/0.3282, allocations: 87.95 kB / 469.9 MB, free: 2.684 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3831/0.7114, allocations: 73.58 MB / 0.5307 GB, free: 85.9 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.7114, allocations: 0 / 0.5307 GB, free: 85.9 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000198/0.7116, allocations: 74.5 kB / 0.5308 GB, free: 85.83 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.01416/0.7258, allocations: 4.073 MB / 0.5347 GB, free: 81.72 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.56e-05/0.7258, allocations: 12.03 kB / 0.5348 GB, free: 81.71 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002444/0.7283, allocations: 0.6834 MB / 0.5354 GB, free: 81.04 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008858/0.7372, allocations: 2.159 MB / 0.5375 GB, free: 78.87 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01227/0.7495, allocations: 4.502 MB / 0.5419 GB, free: 74.36 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002376/0.7497, allocations: 287.4 kB / 0.5422 GB, free: 74.08 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001498/0.7512, allocations: 379.7 kB / 0.5426 GB, free: 73.71 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01647/0.7677, allocations: 9.323 MB / 0.5517 GB, free: 63.42 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002252/0.768, allocations: 63.45 kB / 0.5517 GB, free: 63.36 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009672/0.769, allocations: 183.9 kB / 0.5519 GB, free: 63.18 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001016/0.77, allocations: 0.8921 MB / 0.5528 GB, free: 62.29 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01249/0.7825, allocations: 7.571 MB / 0.5602 GB, free: 54.71 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03908/0.8216, allocations: 43.92 MB / 0.6031 GB, free: 9.363 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007019/0.8287, allocations: 3.436 MB / 0.6064 GB, free: 5.773 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009791/0.8385, allocations: 6.87 MB / 0.6131 GB, free: 14.59 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.417e-05/0.8386, allocations: 55.16 kB / 0.6132 GB, free: 14.53 MB / 394.7 MB Notification: Performance of pre-optimization done (n=132): time 5.15e-06/0.8386, allocations: 0 / 0.6132 GB, free: 14.53 MB / 394.7 MB Notification: Performance of matching and sorting (n=139): time 0.02712/0.8658, allocations: 11.37 MB / 0.6243 GB, free: 2.93 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001335/0.8671, allocations: 1.627 MB / 0.6259 GB, free: 1.133 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004694/0.8718, allocations: 3.184 MB / 0.629 GB, free: 13.95 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002779/0.8721, allocations: 41.7 kB / 0.629 GB, free: 13.91 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002069/0.8742, allocations: 2.81 MB / 0.6318 GB, free: 11.06 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000653/0.8749, allocations: 0.5711 MB / 0.6323 GB, free: 10.48 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002281/0.8751, allocations: 108 kB / 0.6324 GB, free: 10.38 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003368/0.8755, allocations: 0.5334 MB / 0.6329 GB, free: 9.836 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002659/0.8781, allocations: 1.892 MB / 0.6348 GB, free: 7.938 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005166/0.8833, allocations: 5.331 MB / 0.64 GB, free: 0.8672 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004477/0.8878, allocations: 3.116 MB / 0.643 GB, free: 13.74 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.547e-05/0.8879, allocations: 36.28 kB / 0.6431 GB, free: 13.71 MB / 426.7 MB Notification: Performance of matching and sorting (n=712) (initialization): time 0.01856/0.9064, allocations: 8.457 MB / 0.6513 GB, free: 5.234 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.431e-05/0.9066, allocations: 56.09 kB / 0.6514 GB, free: 5.18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009161/0.9157, allocations: 3.176 MB / 0.6545 GB, free: 1.984 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008918/0.9247, allocations: 1.942 MB / 0.6564 GB, free: 28 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2058/1.13, allocations: 1.254 MB / 0.6576 GB, free: 116.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007481/1.138, allocations: 5.911 MB / 0.6634 GB, free: 114.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005134/1.143, allocations: 379.3 kB / 0.6637 GB, free: 114.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001591/1.145, allocations: 345.1 kB / 0.6641 GB, free: 114.2 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.004035/1.149, allocations: 1.856 MB / 0.6659 GB, free: 114.1 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008983/1.15, allocations: 302.2 kB / 0.6662 GB, free: 114.1 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005664/1.155, allocations: 2.751 MB / 0.6689 GB, free: 113.9 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003783/1.159, allocations: 2.348 MB / 0.6711 GB, free: 113.8 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.185e-05/1.159, allocations: 0 / 0.6711 GB, free: 113.8 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.794e-05/1.159, allocations: 10 kB / 0.6712 GB, free: 113.8 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01297/1.172, allocations: 7.834 MB / 0.6788 GB, free: 112.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.494e-05/1.172, allocations: 3.906 kB / 0.6788 GB, free: 112.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001023/1.173, allocations: 222 kB / 0.679 GB, free: 112.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002793/1.176, allocations: 1.046 MB / 0.68 GB, free: 112.1 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001474/1.176, allocations: 31.3 kB / 0.6801 GB, free: 112 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004381/1.181, allocations: 5.054 MB / 0.685 GB, free: 108.7 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007505/1.182, allocations: 1.495 MB / 0.6865 GB, free: 107.3 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006958/1.188, allocations: 5.074 MB / 0.6914 GB, free: 105.3 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001053/1.19, allocations: 371.8 kB / 0.6918 GB, free: 105.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002973/1.19, allocations: 31.66 kB / 0.6918 GB, free: 105.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00124/1.191, allocations: 123.2 kB / 0.6919 GB, free: 105.1 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002193/1.191, allocations: 94.23 kB / 0.692 GB, free: 105.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001042/1.191, allocations: 40.17 kB / 0.6921 GB, free: 105.1 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003009/1.194, allocations: 2.195 MB / 0.6942 GB, free: 104.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.81e-07/1.194, allocations: 0 / 0.6942 GB, free: 104.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004312/1.199, allocations: 0.9613 MB / 0.6951 GB, free: 104.2 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.006851/1.206, allocations: 6.071 MB / 0.7011 GB, free: 101.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007718/1.213, allocations: 5.153 MB / 0.7061 GB, free: 99.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.19e-06/1.213, allocations: 0 / 0.7061 GB, free: 99.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003206/1.217, allocations: 2.019 MB / 0.7081 GB, free: 97.55 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001968/1.219, allocations: 366.5 kB / 0.7084 GB, free: 97.26 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2473/1.466, allocations: 115.3 MB / 0.821 GB, free: 133.7 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002967/1.469, allocations: 2.991 MB / 0.8239 GB, free: 132.9 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004184/1.473, allocations: 1.702 MB / 0.8256 GB, free: 132.9 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001767/1.475, allocations: 1.609 MB / 0.8272 GB, free: 132.8 MB / 442.7 MB Notification: Performance of SimCode: time 8.42e-07/1.475, allocations: 0.9844 kB / 0.8272 GB, free: 132.8 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09313/1.568, allocations: 69.96 MB / 0.8955 GB, free: 88.1 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001541/1.568, allocations: 225.4 kB / 0.8957 GB, free: 87.85 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.558/5.126, allocations: 2.25 kB / 0.8957 GB, free: 87.85 MB / 442.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