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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00109/0.00109, allocations: 99.3 kB / 16.3 MB, free: 5.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001251/0.001251, allocations: 184.2 kB / 17.2 MB, free: 5.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.368/1.368, allocations: 223.2 MB / 241.1 MB, free: 368 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002779/0.0002782, allocations: 4 kB / 300.8 MB, free: 6.359 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1164, allocations: 50.43 MB / 351.2 MB, free: 3.922 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.2478/0.3642, allocations: 32.85 MB / 384.1 MB, free: 8.273 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0222/0.3865, allocations: 8.36 MB / 392.5 MB, free: 4.102 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009454/0.396, allocations: 163.9 kB / 392.6 MB, free: 4.074 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006798/0.4029, allocations: 1.607 MB / 394.2 MB, free: 3.543 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01791/0.4208, allocations: 4.8 MB / 399 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003/0.4238, allocations: 0.4971 MB / 399.5 MB, free: 196 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005151/0.429, allocations: 1.953 MB / 401.5 MB, free: 15.02 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007311/0.4363, allocations: 3.698 MB / 405.2 MB, free: 12.85 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00268/0.439, allocations: 0.9161 MB / 406.1 MB, free: 12.37 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002447/0.4415, allocations: 1.155 MB / 407.2 MB, free: 11.75 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009695/0.4425, allocations: 121.5 kB / 407.4 MB, free: 11.75 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002535/0.445, allocations: 0.8658 MB / 408.2 MB, free: 11.15 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001934/0.447, allocations: 1.364 MB / 409.6 MB, free: 9.781 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001432/0.4484, allocations: 0.7454 MB / 410.3 MB, free: 9.027 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005723/0.4542, allocations: 4.771 MB / 415.1 MB, free: 4.246 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.4542, allocations: 0 / 415.1 MB, free: 4.246 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.4542, allocations: 3.938 kB / 415.1 MB, free: 4.242 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002543/0.4545, allocations: 0 / 415.1 MB, free: 4.242 MB / 318.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.008447/0.4629, allocations: 3.541 MB / 418.6 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.095e-05/0.463, allocations: 8.031 kB / 418.7 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002107/0.4651, allocations: 0.6407 MB / 419.3 MB, free: 15.97 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008007/0.4731, allocations: 2.179 MB / 421.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005794/0.4789, allocations: 2.088 MB / 423.6 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002511/0.4792, allocations: 209.4 kB / 423.8 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001633/0.4809, allocations: 363.7 kB / 424.1 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0185/0.4994, allocations: 8.948 MB / 433.1 MB, free: 1.496 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001666/0.4996, allocations: 39.67 kB / 433.1 MB, free: 1.457 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001022/0.5007, allocations: 139.9 kB / 433.2 MB, free: 1.32 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002608/0.5033, allocations: 1.634 MB / 434.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01579/0.5191, allocations: 7.573 MB / 442.5 MB, free: 8.105 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04849/0.5676, allocations: 35.26 MB / 477.7 MB, free: 3.805 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009896/0.5775, allocations: 3.448 MB / 481.2 MB, free: 212 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01343/0.591, allocations: 6.847 MB / 488 MB, free: 9.047 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.581e-05/0.5911, allocations: 55.14 kB / 488.1 MB, free: 8.984 MB / 398.1 MB Notification: Performance of pre-optimization done (n=132): time 5.27e-06/0.5912, allocations: 0 / 488.1 MB, free: 8.984 MB / 398.1 MB Notification: Performance of matching and sorting (n=139): time 0.03145/0.6226, allocations: 11.39 MB / 499.4 MB, free: 13.37 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001535/0.6242, allocations: 1.631 MB / 0.4893 GB, free: 11.56 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006886/0.6311, allocations: 3.649 MB / 0.4929 GB, free: 7.914 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004044/0.6315, allocations: 41.7 kB / 0.4929 GB, free: 7.867 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002559/0.6341, allocations: 2.79 MB / 0.4957 GB, free: 5.039 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009718/0.6351, allocations: 0.5711 MB / 0.4962 GB, free: 4.461 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005536/0.6357, allocations: 104 kB / 0.4963 GB, free: 4.359 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000542/0.6362, allocations: 0.5373 MB / 0.4968 GB, free: 3.816 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003415/0.6397, allocations: 1.931 MB / 0.4987 GB, free: 1.879 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006614/0.6463, allocations: 5.341 MB / 0.5039 GB, free: 10.8 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005258/0.6516, allocations: 3.147 MB / 0.507 GB, free: 7.656 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001413/0.6517, allocations: 36 kB / 0.507 GB, free: 7.621 MB / 430.1 MB Notification: Performance of matching and sorting (n=710) (initialization): time 0.02434/0.6761, allocations: 8.751 MB / 0.5156 GB, free: 14.85 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002258/0.6764, allocations: 60 kB / 0.5157 GB, free: 14.79 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01159/0.688, allocations: 3.476 MB / 0.519 GB, free: 11.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01072/0.6987, allocations: 2.254 MB / 0.5212 GB, free: 9.031 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004176/0.7029, allocations: 1.244 MB / 0.5225 GB, free: 7.785 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0106/0.7135, allocations: 7.235 MB / 0.5295 GB, free: 288 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.2596/0.9732, allocations: 376.9 kB / 0.5299 GB, free: 144.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002042/0.9753, allocations: 338.7 kB / 0.5302 GB, free: 144.2 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 557 * 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 (672): * Single equations (assignments): 663 * 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.006897/0.9822, allocations: 1.848 MB / 0.532 GB, free: 144.1 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001296/0.9835, allocations: 302.3 kB / 0.5323 GB, free: 144.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01075/0.9943, allocations: 2.774 MB / 0.535 GB, free: 144 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009086/1.003, allocations: 2.351 MB / 0.5373 GB, free: 143.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-05/1.004, allocations: 2.531 kB / 0.5373 GB, free: 143.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.26e-05/1.004, allocations: 10.59 kB / 0.5373 GB, free: 143.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.034/1.038, allocations: 7.842 MB / 0.545 GB, free: 140.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.882e-05/1.038, allocations: 4.844 kB / 0.545 GB, free: 140.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00167/1.039, allocations: 224 kB / 0.5452 GB, free: 140.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004379/1.044, allocations: 1.055 MB / 0.5462 GB, free: 140.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003491/1.044, allocations: 39.7 kB / 0.5463 GB, free: 140.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005713/1.05, allocations: 5.054 MB / 0.5512 GB, free: 136.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001009/1.051, allocations: 1.492 MB / 0.5527 GB, free: 135.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007906/1.059, allocations: 5.09 MB / 0.5576 GB, free: 133.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001641/1.061, allocations: 376.6 kB / 0.558 GB, free: 133.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001017/1.062, allocations: 31.22 kB / 0.558 GB, free: 133.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001926/1.064, allocations: 123.9 kB / 0.5581 GB, free: 133.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003014/1.064, allocations: 88.86 kB / 0.5582 GB, free: 133.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001173/1.064, allocations: 47.59 kB / 0.5583 GB, free: 133.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003786/1.068, allocations: 2.268 MB / 0.5605 GB, free: 132.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/1.068, allocations: 0 / 0.5605 GB, free: 132.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006303/1.074, allocations: 0.9838 MB / 0.5614 GB, free: 132.3 MB / 446.1 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 {(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 Backend phase and start with SimCode phase: time 0.008022/1.082, allocations: 6.117 MB / 0.5674 GB, free: 128.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01142/1.094, allocations: 5.227 MB / 0.5725 GB, free: 123.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.117e-06/1.094, allocations: 0 / 0.5725 GB, free: 123.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004797/1.098, allocations: 2.001 MB / 0.5745 GB, free: 121.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003303/1.102, allocations: 363.6 kB / 0.5748 GB, free: 121.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08733/1.189, allocations: 115.6 MB / 0.6877 GB, free: 1.723 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003229/1.192, allocations: 2.989 MB / 0.6906 GB, free: 14.71 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004468/1.197, allocations: 1.699 MB / 0.6922 GB, free: 13 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002732/1.2, allocations: 1.608 MB / 0.6938 GB, free: 11.39 MB / 462.1 MB Notification: Performance of SimCode: time 1.613e-06/1.2, allocations: 0 / 0.6938 GB, free: 11.39 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3031/1.503, allocations: 71.35 MB / 0.7635 GB, free: 118.4 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001433/1.503, allocations: 224 kB / 0.7637 GB, free: 118.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.446/4.949, allocations: 3.828 kB / 0.7637 GB, free: 118.2 MB / 462.1 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