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.001234/0.001234, allocations: 113.2 kB / 17.73 MB, free: 5.336 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.001336/0.001336, allocations: 188.2 kB / 18.67 MB, free: 4.402 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.404/1.404, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.002186/0.002187, allocations: 59.91 kB / 328 MB, free: 3.789 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1142, allocations: 46.62 MB / 374.7 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.2038/0.318, allocations: 10.46 MB / 385.1 MB, free: 7.418 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007542/0.3256, allocations: 3.817 MB / 388.9 MB, free: 5.43 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00209/0.3278, allocations: 62.31 kB / 389 MB, free: 5.418 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00433/0.3322, allocations: 2.315 MB / 391.3 MB, free: 4.34 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005381/0.3376, allocations: 1.721 MB / 393 MB, free: 3.555 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001677/0.3393, allocations: 0.6088 MB / 393.6 MB, free: 3.289 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005424/0.3447, allocations: 3.464 MB / 397.1 MB, free: 1.98 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003559/0.3483, allocations: 3.038 MB / 400.1 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002321/0.3507, allocations: 1.363 MB / 401.5 MB, free: 116 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002879/0.3536, allocations: 1.807 MB / 403.3 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007811/0.3544, allocations: 295.2 kB / 403.6 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002485/0.3569, allocations: 1.134 MB / 404.7 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001854/0.3587, allocations: 1.702 MB / 406.4 MB, free: 13.58 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002704/0.3614, allocations: 1.978 MB / 408.4 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008577/0.37, allocations: 6.284 MB / 414.7 MB, free: 7.719 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.748e-06/0.3701, allocations: 0 / 414.7 MB, free: 7.719 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.3701, allocations: 0 / 414.7 MB, free: 7.719 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002924/0.3704, allocations: 0 / 414.7 MB, free: 7.719 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.01227/0.3827, allocations: 4.364 MB / 419.1 MB, free: 3.281 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.071e-05/0.3828, allocations: 12.03 kB / 419.1 MB, free: 3.27 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001423/0.3842, allocations: 0.6408 MB / 419.7 MB, free: 2.617 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007014/0.3912, allocations: 1.866 MB / 421.6 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005847/0.3971, allocations: 2.545 MB / 424.1 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002188/0.3973, allocations: 217.4 kB / 424.3 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001421/0.3988, allocations: 371.7 kB / 424.7 MB, free: 13.56 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01677/0.4156, allocations: 8.862 MB / 433.6 MB, free: 4.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001166/0.4157, allocations: 39.64 kB / 433.6 MB, free: 4.031 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005353/0.4163, allocations: 139.9 kB / 433.7 MB, free: 3.895 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00255/0.4188, allocations: 1.649 MB / 435.4 MB, free: 2.246 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01516/0.434, allocations: 7.486 MB / 442.9 MB, free: 10.75 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04593/0.48, allocations: 35.06 MB / 477.9 MB, free: 6.648 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008922/0.489, allocations: 3.44 MB / 481.4 MB, free: 3.059 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002006/0.491, allocations: 1.463 MB / 482.8 MB, free: 1.586 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01075/0.5018, allocations: 6.786 MB / 489.6 MB, free: 10.48 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.21e-05/0.5019, allocations: 47.22 kB / 489.7 MB, free: 10.43 MB / 414.1 MB Notification: Performance of pre-optimization done (n=132): time 4.979e-06/0.5019, allocations: 0 / 489.7 MB, free: 10.43 MB / 414.1 MB Notification: Performance of matching and sorting (n=139): time 0.0328/0.5347, allocations: 11.37 MB / 0.4893 GB, free: 14.91 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002031/0.5368, allocations: 1.711 MB / 0.491 GB, free: 13.02 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009289/0.5461, allocations: 3.573 MB / 0.4945 GB, free: 9.449 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005213/0.5467, allocations: 49.97 kB / 0.4945 GB, free: 9.395 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003528/0.5502, allocations: 2.908 MB / 0.4973 GB, free: 6.461 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00124/0.5515, allocations: 0.5932 MB / 0.4979 GB, free: 5.863 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002515/0.554, allocations: 1.111 MB / 0.499 GB, free: 4.742 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.5542, allocations: 301.1 kB / 0.4993 GB, free: 4.445 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004592/0.5588, allocations: 1.912 MB / 0.5012 GB, free: 2.527 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008086/0.5669, allocations: 5.361 MB / 0.5064 GB, free: 11.43 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01224/0.5792, allocations: 7.834 MB / 0.5141 GB, free: 1.879 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001402/0.5794, allocations: 36 kB / 0.5141 GB, free: 1.844 MB / 446.1 MB Notification: Performance of matching and sorting (n=710) (initialization): time 0.02526/0.6046, allocations: 8.448 MB / 0.5223 GB, free: 9.375 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001466/0.6048, allocations: 56 kB / 0.5224 GB, free: 9.32 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01034/0.6152, allocations: 3.124 MB / 0.5254 GB, free: 6.184 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009743/0.625, allocations: 1.864 MB / 0.5273 GB, free: 4.305 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004228/0.6292, allocations: 1.248 MB / 0.5285 GB, free: 3.055 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009224/0.6385, allocations: 6.048 MB / 0.5344 GB, free: 12.73 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005365/0.6439, allocations: 379.4 kB / 0.5347 GB, free: 12.36 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001451/0.6454, allocations: 340 kB / 0.5351 GB, free: 12.02 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.004724/0.6501, allocations: 1.861 MB / 0.5369 GB, free: 10.15 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009705/0.6511, allocations: 321.8 kB / 0.5372 GB, free: 9.832 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006453/0.6576, allocations: 2.766 MB / 0.5399 GB, free: 7.039 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004745/0.6624, allocations: 2.355 MB / 0.5422 GB, free: 4.66 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.08e-05/0.6624, allocations: 7.938 kB / 0.5422 GB, free: 4.652 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.291e-05/0.6624, allocations: 7.969 kB / 0.5422 GB, free: 4.645 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2281/0.8905, allocations: 7.846 MB / 0.5499 GB, free: 147.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.719e-05/0.8906, allocations: 3.281 kB / 0.5499 GB, free: 147.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001182/0.8917, allocations: 224.3 kB / 0.5501 GB, free: 147.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003242/0.895, allocations: 1.057 MB / 0.5511 GB, free: 147.5 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002251/0.8952, allocations: 36.38 kB / 0.5512 GB, free: 147.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005266/0.9005, allocations: 5.284 MB / 0.5563 GB, free: 144 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000838/0.9014, allocations: 1.562 MB / 0.5578 GB, free: 142.5 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007916/0.9093, allocations: 4.975 MB / 0.5627 GB, free: 140.7 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009751/0.9103, allocations: 376.8 kB / 0.5631 GB, free: 140.6 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005026/0.9108, allocations: 35.69 kB / 0.5631 GB, free: 140.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00155/0.9124, allocations: 122.3 kB / 0.5632 GB, free: 140.5 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002956/0.9127, allocations: 85.19 kB / 0.5633 GB, free: 140.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001215/0.9128, allocations: 41.67 kB / 0.5633 GB, free: 140.5 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003673/0.9165, allocations: 2.211 MB / 0.5655 GB, free: 139.8 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.9165, allocations: 3.781 kB / 0.5655 GB, free: 139.8 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005706/0.9223, allocations: 0.9594 MB / 0.5664 GB, free: 139.7 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.008108/0.9304, allocations: 5.623 MB / 0.5719 GB, free: 137.3 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008105/0.9385, allocations: 5.204 MB / 0.577 GB, free: 135.3 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.542e-06/0.9386, allocations: 0 / 0.577 GB, free: 135.3 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003323/0.9419, allocations: 2.02 MB / 0.579 GB, free: 134.5 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002618/0.9446, allocations: 392.1 kB / 0.5794 GB, free: 134.3 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05794/1.003, allocations: 42.66 MB / 0.621 GB, free: 91.29 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002412/1.005, allocations: 2.906 MB / 0.6239 GB, free: 88.35 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003293/1.008, allocations: 1.704 MB / 0.6255 GB, free: 86.64 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001844/1.01, allocations: 1.608 MB / 0.6271 GB, free: 85.03 MB / 478.1 MB Notification: Performance of SimCode: time 8.91e-07/1.01, allocations: 4 kB / 0.6271 GB, free: 85.03 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09849/1.109, allocations: 63.12 MB / 0.6887 GB, free: 21.82 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.67/21.78, allocations: 15.7 kB / 0.6888 GB, free: 21.8 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