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.001038/0.001038, allocations: 99.02 kB / 17.58 MB, free: 5.418 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.001121/0.001121, allocations: 192 kB / 18.51 MB, free: 4.508 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.362/1.362, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.001141/0.001141, allocations: 55.91 kB / 280.8 MB, free: 3.074 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07693/0.07808, allocations: 46.64 MB / 327.4 MB, free: 4.367 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.0109/0.08901, allocations: 10.45 MB / 337.8 MB, free: 9.852 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006932/0.09601, allocations: 3.821 MB / 341.7 MB, free: 6.02 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001062/0.0971, allocations: 59.81 kB / 341.7 MB, free: 5.961 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003801/0.1009, allocations: 2.309 MB / 344 MB, free: 3.645 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003147/0.1041, allocations: 1.692 MB / 345.7 MB, free: 1.945 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001117/0.1052, allocations: 0.6083 MB / 346.3 MB, free: 1.336 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003691/0.1089, allocations: 3.463 MB / 349.8 MB, free: 13.86 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0035/0.1125, allocations: 3.032 MB / 352.8 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00201/0.1145, allocations: 1.371 MB / 354.2 MB, free: 9.406 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002293/0.1168, allocations: 1.799 MB / 356 MB, free: 7.602 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006009/0.1174, allocations: 292 kB / 356.3 MB, free: 7.316 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001848/0.1192, allocations: 1.127 MB / 357.4 MB, free: 6.188 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001316/0.1206, allocations: 1.683 MB / 359.1 MB, free: 4.5 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001702/0.1223, allocations: 1.965 MB / 361.1 MB, free: 2.523 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004967/0.1273, allocations: 6.051 MB / 367.1 MB, free: 12.45 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/0.1273, allocations: 4 kB / 367.1 MB, free: 12.45 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1273, allocations: 0 / 367.1 MB, free: 12.45 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.51e-05/0.1274, allocations: 0 / 367.1 MB, free: 12.45 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.006662/0.1341, allocations: 4.253 MB / 371.4 MB, free: 8.129 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.1341, allocations: 11.97 kB / 371.4 MB, free: 8.117 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006949/0.1348, allocations: 0.6369 MB / 372 MB, free: 7.469 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006176/0.141, allocations: 1.844 MB / 373.9 MB, free: 5.617 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004086/0.1451, allocations: 2.501 MB / 376.4 MB, free: 3.055 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001424/0.1453, allocations: 209.4 kB / 376.6 MB, free: 2.848 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007596/0.146, allocations: 371.6 kB / 376.9 MB, free: 2.484 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1456/0.2917, allocations: 8.863 MB / 385.8 MB, free: 46.55 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.301e-05/0.2918, allocations: 37.69 kB / 385.8 MB, free: 46.54 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003505/0.2922, allocations: 139.7 kB / 386 MB, free: 46.47 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002402/0.2946, allocations: 1.639 MB / 387.6 MB, free: 46.18 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0123/0.3069, allocations: 7.503 MB / 395.1 MB, free: 43.74 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02835/0.3353, allocations: 35.15 MB / 430.3 MB, free: 10.01 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00732/0.3426, allocations: 3.455 MB / 433.7 MB, free: 6.41 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001408/0.3441, allocations: 1.444 MB / 435.2 MB, free: 4.953 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007732/0.3518, allocations: 6.763 MB / 441.9 MB, free: 13.91 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.819e-05/0.3519, allocations: 47.22 kB / 442 MB, free: 13.85 MB / 334.1 MB Notification: Performance of pre-optimization done (n=132): time 5.2e-06/0.3519, allocations: 0 / 442 MB, free: 13.85 MB / 334.1 MB Notification: Performance of matching and sorting (n=139): time 0.02647/0.3784, allocations: 11.18 MB / 453.2 MB, free: 2.5 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001377/0.3798, allocations: 1.707 MB / 454.9 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005526/0.3853, allocations: 3.564 MB / 458.4 MB, free: 13.05 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003352/0.3857, allocations: 45.61 kB / 458.5 MB, free: 13 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002178/0.3879, allocations: 2.786 MB / 461.3 MB, free: 10.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009554/0.3889, allocations: 0.5711 MB / 461.8 MB, free: 9.598 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002582/0.3915, allocations: 1.099 MB / 462.9 MB, free: 8.488 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.273e-05/0.3916, allocations: 309.1 kB / 463.2 MB, free: 8.184 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002929/0.3945, allocations: 1.914 MB / 465.1 MB, free: 6.266 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004735/0.3992, allocations: 5.357 MB / 470.5 MB, free: 15.17 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007997/0.4073, allocations: 7.821 MB / 478.3 MB, free: 5.637 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.677e-05/0.4074, allocations: 40 kB / 478.4 MB, free: 5.598 MB / 366.1 MB Notification: Performance of matching and sorting (n=710) (initialization): time 0.01808/0.4255, allocations: 8.438 MB / 486.8 MB, free: 13.14 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.894e-05/0.4256, allocations: 60 kB / 486.9 MB, free: 13.08 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009373/0.435, allocations: 3.133 MB / 490 MB, free: 9.934 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009198/0.4442, allocations: 1.868 MB / 491.9 MB, free: 8.051 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003974/0.4482, allocations: 1.24 MB / 493.1 MB, free: 6.809 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008119/0.4563, allocations: 6.051 MB / 499.1 MB, free: 484 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004277/0.4606, allocations: 387.3 kB / 499.5 MB, free: 96 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000768/0.4614, allocations: 344 kB / 499.9 MB, free: 15.76 MB / 398.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.002969/0.4644, allocations: 1.846 MB / 0.4899 GB, free: 13.9 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006989/0.4651, allocations: 308 kB / 0.4902 GB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005479/0.4706, allocations: 2.766 MB / 0.4929 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004475/0.4751, allocations: 2.363 MB / 0.4952 GB, free: 8.426 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.73e-05/0.4751, allocations: 4 kB / 0.4953 GB, free: 8.422 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.641e-05/0.4751, allocations: 3.984 kB / 0.4953 GB, free: 8.418 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01523/0.4904, allocations: 7.859 MB / 0.5029 GB, free: 452 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.245e-05/0.4904, allocations: 4 kB / 0.5029 GB, free: 448 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001035/0.4915, allocations: 219.7 kB / 0.5031 GB, free: 228 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003076/0.4946, allocations: 1.065 MB / 0.5042 GB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001495/0.4947, allocations: 39.97 kB / 0.5042 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005623/0.5004, allocations: 5.283 MB / 0.5094 GB, free: 9.547 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001033/0.5014, allocations: 1.557 MB / 0.5109 GB, free: 7.84 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007362/0.5088, allocations: 4.957 MB / 0.5157 GB, free: 2.828 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008693/0.5097, allocations: 365 kB / 0.5161 GB, free: 2.449 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006305/0.5103, allocations: 28 kB / 0.5161 GB, free: 2.422 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001659/0.512, allocations: 127.8 kB / 0.5162 GB, free: 2.297 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002532/0.5122, allocations: 92.39 kB / 0.5163 GB, free: 2.207 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001202/0.5124, allocations: 39.98 kB / 0.5164 GB, free: 2.168 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003597/0.516, allocations: 2.207 MB / 0.5185 GB, free: 15.97 MB / 430.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.516, allocations: 0 / 0.5185 GB, free: 15.97 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004381/0.5204, allocations: 0.9556 MB / 0.5195 GB, free: 15.02 MB / 430.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.008054/0.5285, allocations: 5.621 MB / 0.5249 GB, free: 9.352 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.009631/0.5381, allocations: 5.657 MB / 0.5305 GB, free: 3.664 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.693e-06/0.5381, allocations: 0 / 0.5305 GB, free: 3.664 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003752/0.5419, allocations: 2.013 MB / 0.5324 GB, free: 1.574 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002717/0.5446, allocations: 404.6 kB / 0.5328 GB, free: 1.184 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1914/0.736, allocations: 46.96 MB / 0.5787 GB, free: 114.6 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002835/0.7389, allocations: 2.905 MB / 0.5815 GB, free: 111.7 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003226/0.7421, allocations: 1.709 MB / 0.5832 GB, free: 110 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001601/0.7437, allocations: 1.608 MB / 0.5848 GB, free: 108.4 MB / 430.1 MB Notification: Performance of SimCode: time 1.022e-06/0.7438, allocations: 0 / 0.5848 GB, free: 108.4 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08585/0.8296, allocations: 66.44 MB / 0.6496 GB, free: 41.79 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.98/13.81, allocations: 20.22 kB / 0.6497 GB, free: 41.77 MB / 430.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 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.mat","/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