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/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 3.2.3+maint.om/package.mo", uses=false) 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 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001932/0.001932, allocations: 110.5 kB / 17.73 MB, free: 5.359 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.002012/0.002012, allocations: 187.1 kB / 18.66 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.45/1.45, allocations: 205.1 MB / 224.5 MB, free: 12.28 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001675/0.001675, allocations: 43.94 kB / 328 MB, free: 3.812 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0905/0.09219, allocations: 46.62 MB / 374.7 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.1968/0.289, allocations: 10.46 MB / 385.1 MB, free: 7.453 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007417/0.2965, allocations: 3.817 MB / 388.9 MB, free: 5.453 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001664/0.2982, allocations: 61.72 kB / 389 MB, free: 5.441 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004069/0.3023, allocations: 2.312 MB / 391.3 MB, free: 4.363 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004377/0.3067, allocations: 1.685 MB / 393 MB, free: 3.602 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001509/0.3082, allocations: 0.6106 MB / 393.6 MB, free: 3.336 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005661/0.3139, allocations: 3.46 MB / 397.1 MB, free: 2.031 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004439/0.3183, allocations: 3.039 MB / 400.1 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00272/0.3211, allocations: 1.378 MB / 401.5 MB, free: 152 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003596/0.3247, allocations: 1.797 MB / 403.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001331/0.3261, allocations: 290.7 kB / 403.6 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003243/0.3293, allocations: 1.127 MB / 404.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002334/0.3317, allocations: 1.678 MB / 406.4 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003295/0.335, allocations: 1.977 MB / 408.3 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008374/0.3434, allocations: 6.274 MB / 414.6 MB, free: 7.801 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.3435, allocations: 0 / 414.6 MB, free: 7.801 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3435, allocations: 0 / 414.6 MB, free: 7.801 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001787/0.3437, allocations: 1.375 kB / 414.6 MB, free: 7.801 MB / 334.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.00952/0.3532, allocations: 4.369 MB / 419 MB, free: 3.363 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/0.3532, allocations: 8.031 kB / 419 MB, free: 3.355 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001042/0.3543, allocations: 0.6447 MB / 419.6 MB, free: 2.699 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006645/0.3609, allocations: 1.862 MB / 421.5 MB, free: 0.832 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005071/0.366, allocations: 2.538 MB / 424 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001959/0.3662, allocations: 217.4 kB / 424.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009749/0.3672, allocations: 371.6 kB / 424.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01703/0.3843, allocations: 8.877 MB / 433.5 MB, free: 4.148 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001175/0.3844, allocations: 39.69 kB / 433.5 MB, free: 4.109 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004914/0.3849, allocations: 135.9 kB / 433.7 MB, free: 3.977 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002728/0.3877, allocations: 1.633 MB / 435.3 MB, free: 2.344 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01559/0.4033, allocations: 7.506 MB / 442.8 MB, free: 10.82 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0499/0.4532, allocations: 35.06 MB / 477.9 MB, free: 6.723 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009394/0.4627, allocations: 3.44 MB / 481.3 MB, free: 3.133 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002414/0.4651, allocations: 1.455 MB / 482.8 MB, free: 1.668 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01167/0.4768, allocations: 6.786 MB / 489.5 MB, free: 10.56 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.98e-05/0.4769, allocations: 51.16 kB / 489.6 MB, free: 10.5 MB / 414.1 MB Notification: Performance of pre-optimization done (n=132): time 4.679e-06/0.4769, allocations: 0 / 489.6 MB, free: 10.5 MB / 414.1 MB Notification: Performance of matching and sorting (n=139): time 0.03073/0.5077, allocations: 11.38 MB / 0.4892 GB, free: 14.98 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001618/0.5093, allocations: 1.706 MB / 0.4909 GB, free: 13.09 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005579/0.5149, allocations: 3.573 MB / 0.4944 GB, free: 9.523 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003369/0.5153, allocations: 49.58 kB / 0.4944 GB, free: 9.469 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002414/0.5177, allocations: 2.912 MB / 0.4973 GB, free: 6.531 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008521/0.5186, allocations: 0.5894 MB / 0.4979 GB, free: 5.938 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001744/0.5204, allocations: 1.119 MB / 0.4989 GB, free: 4.809 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.5205, allocations: 305.1 kB / 0.4992 GB, free: 4.508 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003133/0.5236, allocations: 1.912 MB / 0.5011 GB, free: 2.59 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006437/0.5301, allocations: 5.353 MB / 0.5063 GB, free: 11.5 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01064/0.5408, allocations: 7.834 MB / 0.514 GB, free: 1.953 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001154/0.5409, allocations: 36 kB / 0.514 GB, free: 1.918 MB / 446.1 MB Notification: Performance of matching and sorting (n=710) (initialization): time 0.02271/0.5637, allocations: 8.448 MB / 0.5223 GB, free: 9.445 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001237/0.5638, allocations: 56 kB / 0.5223 GB, free: 9.391 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0105/0.5743, allocations: 3.124 MB / 0.5254 GB, free: 6.254 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009692/0.5841, allocations: 1.856 MB / 0.5272 GB, free: 4.383 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004173/0.5883, allocations: 1.252 MB / 0.5284 GB, free: 3.129 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009697/0.598, allocations: 6.044 MB / 0.5343 GB, free: 12.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005284/0.6034, allocations: 375.5 kB / 0.5347 GB, free: 12.44 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001293/0.6047, allocations: 348 kB / 0.535 GB, free: 12.1 MB / 478.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 (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004853/0.6096, allocations: 1.861 MB / 0.5368 GB, free: 10.22 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000813/0.6104, allocations: 321.8 kB / 0.5371 GB, free: 9.906 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006415/0.6168, allocations: 2.762 MB / 0.5398 GB, free: 7.117 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005032/0.6219, allocations: 2.363 MB / 0.5421 GB, free: 4.73 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-05/0.622, allocations: 4 kB / 0.5421 GB, free: 4.727 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.826e-05/0.622, allocations: 7.969 kB / 0.5421 GB, free: 4.719 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2057/0.8277, allocations: 7.842 MB / 0.5498 GB, free: 147.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.343e-05/0.8277, allocations: 1.094 kB / 0.5498 GB, free: 147.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001249/0.829, allocations: 226.3 kB / 0.55 GB, free: 147.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003396/0.8324, allocations: 1.053 MB / 0.551 GB, free: 147.6 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000343/0.8328, allocations: 40.58 kB / 0.5511 GB, free: 147.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005906/0.8387, allocations: 5.273 MB / 0.5562 GB, free: 144.2 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001008/0.8398, allocations: 1.568 MB / 0.5578 GB, free: 142.7 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0093/0.8491, allocations: 4.978 MB / 0.5626 GB, free: 140.9 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00107/0.8502, allocations: 380.2 kB / 0.563 GB, free: 140.7 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008901/0.8511, allocations: 31.52 kB / 0.563 GB, free: 140.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002101/0.8532, allocations: 122 kB / 0.5631 GB, free: 140.7 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004915/0.8538, allocations: 93.45 kB / 0.5632 GB, free: 140.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001824/0.8539, allocations: 43.92 kB / 0.5633 GB, free: 140.7 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005063/0.859, allocations: 2.211 MB / 0.5654 GB, free: 139.9 MB / 478.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.8591, allocations: 0 / 0.5654 GB, free: 139.9 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005846/0.8649, allocations: 0.9527 MB / 0.5664 GB, free: 139.9 MB / 478.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 (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008957/0.8739, allocations: 5.632 MB / 0.5719 GB, free: 137.5 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008863/0.8828, allocations: 5.189 MB / 0.5769 GB, free: 135.5 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.158e-06/0.8829, allocations: 0.6562 kB / 0.5769 GB, free: 135.5 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00379/0.8867, allocations: 2.023 MB / 0.5789 GB, free: 134.7 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003534/0.8902, allocations: 387.8 kB / 0.5793 GB, free: 134.5 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07386/0.9641, allocations: 42.69 MB / 0.621 GB, free: 91.32 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004802/0.969, allocations: 2.906 MB / 0.6238 GB, free: 88.38 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004092/0.9731, allocations: 1.707 MB / 0.6255 GB, free: 86.67 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002885/0.9761, allocations: 1.612 MB / 0.627 GB, free: 85.05 MB / 478.1 MB Notification: Performance of SimCode: time 1.624e-06/0.9761, allocations: 0 / 0.627 GB, free: 85.05 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.112/1.088, allocations: 63.11 MB / 0.6887 GB, free: 21.86 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 22.55/23.63, allocations: 15.62 kB / 0.6887 GB, free: 21.84 MB / 478.1 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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/FreeBody/FreeBody.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches