Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001625/0.001625, allocations: 177.1 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 221.3 MB / 235.5 MB, free: 2.895 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008921/0.0008921, allocations: 86.2 kB / 286.5 MB, free: 196 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.323e-05/3.333e-05, allocations: 4 kB / 343.9 MB, free: 4.219 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1108, allocations: 50.42 MB / 394.3 MB, free: 1.762 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3547/0.4656, allocations: 95.48 MB / 489.8 MB, free: 7.984 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003367/0.466, allocations: 87.89 kB / 489.9 MB, free: 7.898 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4731/0.9391, allocations: 74.55 MB / 0.5512 GB, free: 96.11 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.9391, allocations: 0 / 0.5512 GB, free: 96.11 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002576/0.9394, allocations: 73.09 kB / 0.5513 GB, free: 96.1 MB / 426.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.01599/0.9554, allocations: 3.859 MB / 0.5551 GB, free: 94.73 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/0.9555, allocations: 11.34 kB / 0.5551 GB, free: 94.73 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002528/0.958, allocations: 0.6865 MB / 0.5558 GB, free: 94.66 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.011/0.969, allocations: 2.152 MB / 0.5579 GB, free: 94.41 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01486/0.9839, allocations: 4.323 MB / 0.5621 GB, free: 93.88 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000458/0.9844, allocations: 283 kB / 0.5623 GB, free: 93.88 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001957/0.9864, allocations: 377.5 kB / 0.5627 GB, free: 93.87 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0203/1.007, allocations: 9.265 MB / 0.5718 GB, free: 91.31 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001669/1.007, allocations: 57.88 kB / 0.5718 GB, free: 91.3 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006248/1.008, allocations: 184.6 kB / 0.572 GB, free: 91.3 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001257/1.009, allocations: 0.9101 MB / 0.5729 GB, free: 91.29 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0144/1.023, allocations: 7.455 MB / 0.5802 GB, free: 91.18 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04603/1.069, allocations: 43.89 MB / 0.623 GB, free: 58.2 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007698/1.077, allocations: 3.423 MB / 0.6264 GB, free: 56.76 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001714/1.079, allocations: 1.419 MB / 0.6277 GB, free: 56.15 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008968/1.088, allocations: 6.851 MB / 0.6344 GB, free: 52.1 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.808e-05/1.088, allocations: 47.09 kB / 0.6345 GB, free: 52.05 MB / 426.7 MB Notification: Performance of pre-optimization done (n=132): time 4.128e-06/1.088, allocations: 0 / 0.6345 GB, free: 52.05 MB / 426.7 MB Notification: Performance of matching and sorting (n=139): time 0.02186/1.11, allocations: 9.29 MB / 0.6436 GB, free: 47.76 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001009/1.111, allocations: 1.61 MB / 0.6451 GB, free: 46.04 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004792/1.116, allocations: 3.12 MB / 0.6482 GB, free: 43.27 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003832/1.116, allocations: 51.11 kB / 0.6482 GB, free: 43.21 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001651/1.118, allocations: 2.803 MB / 0.651 GB, free: 40.7 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007267/1.118, allocations: 0.5695 MB / 0.6515 GB, free: 40.21 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000213/1.119, allocations: 104 kB / 0.6516 GB, free: 40.11 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002537/1.119, allocations: 0.5344 MB / 0.6521 GB, free: 39.63 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002332/1.121, allocations: 1.854 MB / 0.6539 GB, free: 37.96 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003859/1.125, allocations: 5.286 MB / 0.6591 GB, free: 31.21 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003748/1.129, allocations: 3.095 MB / 0.6621 GB, free: 28.54 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.489e-05/1.129, allocations: 32 kB / 0.6622 GB, free: 28.51 MB / 426.7 MB Notification: Performance of matching and sorting (n=712) (initialization): time 0.01767/1.147, allocations: 8.379 MB / 0.6703 GB, free: 21.5 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.853e-05/1.147, allocations: 56 kB / 0.6704 GB, free: 21.45 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.008603/1.155, allocations: 3.132 MB / 0.6735 GB, free: 19.11 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009037/1.165, allocations: 1.95 MB / 0.6754 GB, free: 17.86 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003945/1.169, allocations: 1.246 MB / 0.6766 GB, free: 16.77 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006502/1.175, allocations: 5.675 MB / 0.6821 GB, free: 11.19 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0048/1.18, allocations: 379.2 kB / 0.6825 GB, free: 10.82 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007588/1.181, allocations: 340 kB / 0.6828 GB, free: 10.49 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 () * 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.0006842/1.181, allocations: 0.528 MB / 0.6833 GB, free: 9.957 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004709/1.182, allocations: 308 kB / 0.6836 GB, free: 9.652 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004746/1.187, allocations: 2.735 MB / 0.6863 GB, free: 6.902 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003783/1.19, allocations: 2.315 MB / 0.6885 GB, free: 4.566 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.243e-05/1.19, allocations: 4 kB / 0.6885 GB, free: 4.562 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.822e-05/1.19, allocations: 7.969 kB / 0.6886 GB, free: 4.555 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01332/1.204, allocations: 7.82 MB / 0.6962 GB, free: 12.65 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.494e-05/1.204, allocations: 4 kB / 0.6962 GB, free: 12.64 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00109/1.205, allocations: 227.6 kB / 0.6964 GB, free: 12.42 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003032/1.208, allocations: 1.037 MB / 0.6974 GB, free: 11.37 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002267/1.208, allocations: 43.8 kB / 0.6975 GB, free: 11.33 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00547/1.214, allocations: 4.948 MB / 0.7023 GB, free: 6.117 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001029/1.215, allocations: 1.481 MB / 0.7037 GB, free: 4.496 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2896/1.504, allocations: 5.034 MB / 0.7087 GB, free: 98.7 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001493/1.506, allocations: 366.7 kB / 0.709 GB, free: 98.61 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007169/1.507, allocations: 29.28 kB / 0.709 GB, free: 98.61 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001603/1.508, allocations: 123.8 kB / 0.7092 GB, free: 98.61 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002984/1.509, allocations: 88.56 kB / 0.7092 GB, free: 98.61 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001323/1.509, allocations: 42.02 kB / 0.7093 GB, free: 98.61 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00474/1.513, allocations: 2.147 MB / 0.7114 GB, free: 98.45 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.9e-07/1.513, allocations: 2.25 kB / 0.7114 GB, free: 98.45 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006124/1.52, allocations: 0.9622 MB / 0.7123 GB, free: 98.45 MB / 442.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 () * 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.01029/1.53, allocations: 6.032 MB / 0.7182 GB, free: 96.99 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0128/1.543, allocations: 5.09 MB / 0.7232 GB, free: 96.55 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.293e-05/1.543, allocations: 1.094 kB / 0.7232 GB, free: 96.55 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005365/1.548, allocations: 1.993 MB / 0.7251 GB, free: 96.11 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002964/1.551, allocations: 359 kB / 0.7255 GB, free: 96.09 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02566/1.577, allocations: 8.199 MB / 0.7335 GB, free: 94.51 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004294/1.581, allocations: 2.982 MB / 0.7364 GB, free: 93.74 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004659/1.586, allocations: 1.698 MB / 0.738 GB, free: 93.7 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002521/1.589, allocations: 1.611 MB / 0.7396 GB, free: 93.7 MB / 442.7 MB Notification: Performance of SimCode: time 1.743e-06/1.589, allocations: 3.125 kB / 0.7396 GB, free: 93.7 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09946/1.688, allocations: 69.86 MB / 0.8078 GB, free: 55.69 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001796/1.688, allocations: 193.2 kB / 0.808 GB, free: 55.47 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.275/5.964, allocations: 0 / 0.808 GB, free: 55.47 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.mat does not exist to compare? outputFormat=mat