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.001653/0.001653, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001839/0.001839, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.08/2.08, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002113/0.002113, allocations: 42.53 kB / 300.7 MB, free: 5.738 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1429/0.1451, allocations: 49.44 MB / 350.2 MB, free: 4.293 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.02076/0.1659, allocations: 10.46 MB / 360.6 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01305/0.179, allocations: 3.828 MB / 364.4 MB, free: 5.934 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002955/0.182, allocations: 59.81 kB / 364.5 MB, free: 5.875 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008005/0.1901, allocations: 2.309 MB / 366.8 MB, free: 3.559 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007237/0.1974, allocations: 1.694 MB / 368.5 MB, free: 1.859 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002592/0.2, allocations: 0.6122 MB / 369.1 MB, free: 1.246 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.2835/0.4836, allocations: 3.448 MB / 372.6 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007353/0.491, allocations: 3.038 MB / 375.6 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004212/0.4953, allocations: 1.368 MB / 377 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005077/0.5004, allocations: 1.79 MB / 378.8 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001687/0.5021, allocations: 291.3 kB / 379.1 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004043/0.5062, allocations: 1.139 MB / 380.2 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002878/0.5091, allocations: 1.67 MB / 381.9 MB, free: 9.281 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004551/0.5137, allocations: 1.968 MB / 383.8 MB, free: 7.91 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008396/0.5221, allocations: 6.034 MB / 389.9 MB, free: 5.539 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.5222, allocations: 4 kB / 389.9 MB, free: 5.535 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.326e-06/0.5222, allocations: 0 / 389.9 MB, free: 5.535 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002001/0.5224, allocations: 3.844 kB / 389.9 MB, free: 5.535 MB / 302.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.01045/0.5329, allocations: 4.244 MB / 394.1 MB, free: 2.645 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.661e-05/0.5329, allocations: 13.23 kB / 394.1 MB, free: 2.641 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001144/0.5341, allocations: 0.6377 MB / 394.8 MB, free: 2.227 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007122/0.5412, allocations: 1.843 MB / 396.6 MB, free: 1.262 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005364/0.5466, allocations: 2.332 MB / 398.9 MB, free: 15.9 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002107/0.5469, allocations: 217.7 kB / 399.2 MB, free: 15.83 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001618/0.5485, allocations: 371.1 kB / 399.5 MB, free: 15.72 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01918/0.5677, allocations: 8.872 MB / 408.4 MB, free: 6.816 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001101/0.5679, allocations: 39.78 kB / 408.4 MB, free: 6.793 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004636/0.5683, allocations: 133.1 kB / 408.6 MB, free: 6.691 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002698/0.571, allocations: 1.636 MB / 410.2 MB, free: 5.078 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01594/0.587, allocations: 7.503 MB / 417.7 MB, free: 13.74 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04924/0.6363, allocations: 35.14 MB / 452.8 MB, free: 10.01 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01007/0.6464, allocations: 3.441 MB / 456.3 MB, free: 6.438 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002536/0.649, allocations: 1.441 MB / 457.7 MB, free: 4.984 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0136/0.6626, allocations: 6.785 MB / 464.5 MB, free: 13.93 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.801e-05/0.6627, allocations: 49.78 kB / 464.5 MB, free: 13.88 MB / 382.1 MB Notification: Performance of pre-optimization done (n=132): time 6.933e-06/0.6627, allocations: 7.984 kB / 464.6 MB, free: 13.87 MB / 382.1 MB Notification: Performance of matching and sorting (n=139): time 0.03028/0.693, allocations: 11.1 MB / 475.7 MB, free: 2.625 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001412/0.6945, allocations: 1.708 MB / 477.4 MB, free: 0.75 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005459/0.7, allocations: 3.544 MB / 480.9 MB, free: 13.21 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004071/0.7004, allocations: 41.7 kB / 480.9 MB, free: 13.16 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002283/0.7027, allocations: 2.789 MB / 483.7 MB, free: 10.38 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008479/0.7036, allocations: 0.5682 MB / 484.3 MB, free: 9.812 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001675/0.7053, allocations: 1.098 MB / 485.4 MB, free: 8.707 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.55e-05/0.7054, allocations: 305.1 kB / 485.7 MB, free: 8.406 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002929/0.7083, allocations: 1.916 MB / 487.6 MB, free: 6.484 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005192/0.7135, allocations: 5.355 MB / 493 MB, free: 15.4 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009266/0.7228, allocations: 7.831 MB / 0.4891 GB, free: 5.883 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001004/0.7229, allocations: 36 kB / 0.4891 GB, free: 5.848 MB / 414.1 MB Notification: Performance of matching and sorting (n=710) (initialization): time 0.02286/0.7458, allocations: 8.433 MB / 0.4973 GB, free: 13.4 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001461/0.746, allocations: 60 kB / 0.4974 GB, free: 13.34 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01199/0.758, allocations: 3.125 MB / 0.5004 GB, free: 10.2 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01591/0.774, allocations: 1.868 MB / 0.5023 GB, free: 8.32 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007325/0.7813, allocations: 1.248 MB / 0.5035 GB, free: 7.07 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01699/0.7984, allocations: 6.041 MB / 0.5094 GB, free: 0.7422 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009332/0.8078, allocations: 383.2 kB / 0.5098 GB, free: 376 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001933/0.8098, allocations: 336 kB / 0.5101 GB, free: 40 kB / 430.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.007666/0.8175, allocations: 1.857 MB / 0.5119 GB, free: 14.17 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001575/0.8191, allocations: 300.1 kB / 0.5122 GB, free: 13.88 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01229/0.8314, allocations: 2.76 MB / 0.5149 GB, free: 11.09 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009286/0.8407, allocations: 2.359 MB / 0.5172 GB, free: 8.711 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.981e-05/0.8408, allocations: 4 kB / 0.5172 GB, free: 8.707 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.828e-05/0.8409, allocations: 3.984 kB / 0.5172 GB, free: 8.703 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03163/0.8725, allocations: 7.845 MB / 0.5248 GB, free: 0.7734 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.248e-05/0.8726, allocations: 0 / 0.5248 GB, free: 0.7734 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002425/0.875, allocations: 235.7 kB / 0.5251 GB, free: 0.543 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2802/1.155, allocations: 1.045 MB / 0.5261 GB, free: 147.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004612/1.156, allocations: 35.91 kB / 0.5261 GB, free: 147.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006578/1.162, allocations: 5.287 MB / 0.5313 GB, free: 144.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009913/1.163, allocations: 1.568 MB / 0.5328 GB, free: 143.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008694/1.172, allocations: 4.966 MB / 0.5377 GB, free: 141.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001122/1.173, allocations: 358.3 kB / 0.538 GB, free: 141.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006887/1.174, allocations: 28.62 kB / 0.538 GB, free: 141.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001757/1.176, allocations: 124.1 kB / 0.5382 GB, free: 141.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003557/1.176, allocations: 90.61 kB / 0.5382 GB, free: 141.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001367/1.176, allocations: 44.47 kB / 0.5383 GB, free: 141.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005412/1.182, allocations: 2.192 MB / 0.5404 GB, free: 140.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.11e-07/1.182, allocations: 0 / 0.5404 GB, free: 140.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006796/1.189, allocations: 0.9566 MB / 0.5414 GB, free: 140.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 (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.009676/1.198, allocations: 5.604 MB / 0.5468 GB, free: 138 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0115/1.21, allocations: 5.67 MB / 0.5524 GB, free: 136 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/1.21, allocations: 1.594 kB / 0.5524 GB, free: 136 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003803/1.214, allocations: 2.012 MB / 0.5543 GB, free: 135.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003251/1.217, allocations: 397.5 kB / 0.5547 GB, free: 134.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09203/1.309, allocations: 46.76 MB / 0.6004 GB, free: 85.88 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006791/1.316, allocations: 2.904 MB / 0.6032 GB, free: 82.94 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.008979/1.325, allocations: 1.699 MB / 0.6049 GB, free: 81.24 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004658/1.33, allocations: 1.608 MB / 0.6064 GB, free: 79.63 MB / 446.1 MB Notification: Performance of SimCode: time 1.813e-06/1.33, allocations: 0 / 0.6064 GB, free: 79.63 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1742/1.504, allocations: 66.22 MB / 0.6711 GB, free: 13.79 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 22.34/23.85, allocations: 5.391 kB / 0.6711 GB, free: 13.78 MB / 446.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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/FreeBody/FreeBody.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches