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: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|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.|body.v_0.1.|body.v_0.2.|body.v_0.3.",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|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.|body.v_0.1.|body.v_0.2.|body.v_0.3.",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001107/0.001107, allocations: 114 kB / 17.69 MB, free: 5.297 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.001036/0.001036, allocations: 191 kB / 18.63 MB, free: 4.363 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.514/1.514, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009867/0.0009868, allocations: 47.7 kB / 302.1 MB, free: 5.164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08976/0.09076, allocations: 49.46 MB / 351.5 MB, free: 3.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.01096/0.1018, allocations: 10.45 MB / 362 MB, free: 9.184 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00723/0.109, allocations: 3.816 MB / 365.8 MB, free: 5.355 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001615/0.1107, allocations: 63.81 kB / 365.8 MB, free: 5.293 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004465/0.1152, allocations: 2.324 MB / 368.2 MB, free: 2.961 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004463/0.1197, allocations: 1.685 MB / 369.9 MB, free: 1.27 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001544/0.1213, allocations: 0.6083 MB / 370.5 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1604/0.2817, allocations: 3.447 MB / 373.9 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003259/0.285, allocations: 3.038 MB / 376.9 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002023/0.2871, allocations: 1.372 MB / 378.3 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002136/0.2892, allocations: 1.794 MB / 380.1 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005031/0.2897, allocations: 289.8 kB / 380.4 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001942/0.2917, allocations: 1.138 MB / 381.5 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001369/0.2931, allocations: 1.677 MB / 383.2 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00155/0.2946, allocations: 1.956 MB / 385.2 MB, free: 8.297 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005008/0.2996, allocations: 6.237 MB / 391.4 MB, free: 5.664 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.2997, allocations: 0 / 391.4 MB, free: 5.664 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.2997, allocations: 0 / 391.4 MB, free: 5.664 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001222/0.2998, allocations: 1.281 kB / 391.4 MB, free: 5.664 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.007151/0.307, allocations: 4.227 MB / 395.6 MB, free: 2.785 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.743e-05/0.307, allocations: 8.875 kB / 395.6 MB, free: 2.785 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00561/0.3126, allocations: 1.834 MB / 397.5 MB, free: 1.824 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003875/0.3165, allocations: 2.06 MB / 399.5 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001028/0.3166, allocations: 213.3 kB / 399.7 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006902/0.3173, allocations: 372.2 kB / 400.1 MB, free: 420 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01365/0.331, allocations: 8.863 MB / 409 MB, free: 7.309 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.464e-05/0.3311, allocations: 40.16 kB / 409 MB, free: 7.289 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003525/0.3315, allocations: 139.8 kB / 409.1 MB, free: 7.184 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002329/0.3338, allocations: 1.643 MB / 410.8 MB, free: 5.562 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01422/0.3481, allocations: 7.497 MB / 418.3 MB, free: 14.23 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03997/0.3881, allocations: 35.02 MB / 453.3 MB, free: 10.49 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008016/0.3961, allocations: 3.433 MB / 456.7 MB, free: 6.914 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001917/0.3981, allocations: 1.449 MB / 458.2 MB, free: 5.453 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00977/0.4079, allocations: 6.808 MB / 465 MB, free: 14.37 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.468e-05/0.4079, allocations: 47.2 kB / 465 MB, free: 14.32 MB / 382.1 MB Notification: Performance of pre-optimization done (n=132): time 4.318e-06/0.408, allocations: 3.938 kB / 465 MB, free: 14.31 MB / 382.1 MB Notification: Performance of matching and sorting (n=139): time 0.02434/0.4323, allocations: 11.1 MB / 476.1 MB, free: 3.039 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00122/0.4335, allocations: 1.702 MB / 477.8 MB, free: 1.16 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004337/0.4379, allocations: 3.533 MB / 481.4 MB, free: 13.63 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001523/0.4381, allocations: 41.7 kB / 481.4 MB, free: 13.58 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00169/0.4398, allocations: 2.791 MB / 484.2 MB, free: 10.8 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000514/0.4403, allocations: 0.5754 MB / 484.8 MB, free: 10.23 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001335/0.4416, allocations: 1.106 MB / 485.9 MB, free: 9.113 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.616e-05/0.4417, allocations: 301.1 kB / 486.2 MB, free: 8.816 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002573/0.4443, allocations: 1.92 MB / 488.1 MB, free: 6.891 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004617/0.4489, allocations: 5.366 MB / 493.5 MB, free: 15.8 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00782/0.4568, allocations: 7.831 MB / 0.4896 GB, free: 6.281 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.359e-05/0.4568, allocations: 36 kB / 0.4896 GB, free: 6.246 MB / 414.1 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.01913/0.476, allocations: 8.761 MB / 0.4981 GB, free: 13.47 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.38e-05/0.4761, allocations: 60 kB / 0.4982 GB, free: 13.41 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01071/0.4868, allocations: 3.431 MB / 0.5016 GB, free: 9.965 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01024/0.4971, allocations: 2.227 MB / 0.5037 GB, free: 7.723 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003862/0.501, allocations: 1.252 MB / 0.5049 GB, free: 6.469 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009855/0.5108, allocations: 7.422 MB / 0.5122 GB, free: 14.76 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004076/0.5149, allocations: 386.3 kB / 0.5126 GB, free: 14.39 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004898/0.5154, allocations: 340 kB / 0.5129 GB, free: 14.05 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 (676): * Single equations (assignments): 667 * 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.002618/0.5181, allocations: 1.857 MB / 0.5147 GB, free: 12.18 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004499/0.5185, allocations: 300.1 kB / 0.515 GB, free: 11.89 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005228/0.5237, allocations: 2.763 MB / 0.5177 GB, free: 9.109 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004463/0.5282, allocations: 2.355 MB / 0.52 GB, free: 6.73 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.01e-05/0.5282, allocations: 7.938 kB / 0.52 GB, free: 6.723 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.302e-05/0.5283, allocations: 7.969 kB / 0.52 GB, free: 6.715 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1835/0.7118, allocations: 7.832 MB / 0.5277 GB, free: 146.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.092e-05/0.7119, allocations: 3.125 kB / 0.5277 GB, free: 146.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001192/0.7131, allocations: 225.4 kB / 0.5279 GB, free: 146.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003119/0.7162, allocations: 1.064 MB / 0.5289 GB, free: 146.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001615/0.7164, allocations: 32.45 kB / 0.5289 GB, free: 146.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004528/0.7209, allocations: 5.282 MB / 0.5341 GB, free: 143.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006891/0.7216, allocations: 1.564 MB / 0.5356 GB, free: 142.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007063/0.7287, allocations: 4.953 MB / 0.5405 GB, free: 140.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008122/0.7295, allocations: 361.8 kB / 0.5408 GB, free: 140.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000328/0.7299, allocations: 37.11 kB / 0.5408 GB, free: 140.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001307/0.7312, allocations: 126.2 kB / 0.541 GB, free: 140.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002553/0.7314, allocations: 86.81 kB / 0.541 GB, free: 140.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001139/0.7316, allocations: 45.19 kB / 0.5411 GB, free: 140.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003017/0.7346, allocations: 2.185 MB / 0.5432 GB, free: 139.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.7346, allocations: 0 / 0.5432 GB, free: 139.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003745/0.7383, allocations: 0.9682 MB / 0.5442 GB, free: 139.4 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.0003491/0.7387, allocations: 167.2 kB / 0.5443 GB, free: 139.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007058/0.7458, allocations: 5.235 MB / 0.5494 GB, free: 137.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/0.7458, allocations: 0 / 0.5494 GB, free: 137.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003095/0.7489, allocations: 2.021 MB / 0.5514 GB, free: 136.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00235/0.7513, allocations: 401.9 kB / 0.5518 GB, free: 136.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01233/0.7636, allocations: 8.392 MB / 0.56 GB, free: 132.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002819/0.7665, allocations: 2.905 MB / 0.5628 GB, free: 130.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003322/0.7698, allocations: 1.702 MB / 0.5645 GB, free: 129.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005591/0.7704, allocations: 217.5 kB / 0.5647 GB, free: 129.3 MB / 446.1 MB Notification: Performance of SimCode: time 1.212e-06/0.7704, allocations: 0 / 0.5647 GB, free: 129.3 MB / 446.1 MB Notification: Performance of Templates: time 0.04817/0.8186, allocations: 31.26 MB / 0.5952 GB, free: 98.76 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.makefile (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 & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > 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.mat","/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