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.001468/0.001468, allocations: 113.9 kB / 17.69 MB, free: 5.305 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.001514/0.001514, allocations: 191 kB / 18.63 MB, free: 4.375 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.31/1.31, allocations: 222.9 MB / 242.3 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000933/0.0009332, allocations: 51.19 kB / 302.1 MB, free: 5.191 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08212/0.08307, allocations: 49.44 MB / 351.5 MB, free: 3.723 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.01061/0.09371, allocations: 10.46 MB / 362 MB, free: 9.207 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006581/0.1003, allocations: 3.824 MB / 365.8 MB, free: 5.375 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009899/0.1013, allocations: 67.81 kB / 365.9 MB, free: 5.309 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003998/0.1054, allocations: 2.301 MB / 368.2 MB, free: 3 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003672/0.1091, allocations: 1.692 MB / 369.8 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001293/0.1104, allocations: 0.6239 MB / 370.5 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1464/0.2567, allocations: 3.442 MB / 373.9 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003108/0.2599, allocations: 3.026 MB / 376.9 MB, free: 10 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001904/0.2618, allocations: 1.373 MB / 378.3 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002304/0.2641, allocations: 1.79 MB / 380.1 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006932/0.2648, allocations: 290.6 kB / 380.4 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002274/0.2671, allocations: 1.14 MB / 381.5 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00144/0.2686, allocations: 1.677 MB / 383.2 MB, free: 9.426 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001802/0.2704, allocations: 1.958 MB / 385.2 MB, free: 8.059 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005135/0.2755, allocations: 6.239 MB / 391.4 MB, free: 5.465 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.2756, allocations: 0 / 391.4 MB, free: 5.465 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2756, allocations: 0 / 391.4 MB, free: 5.465 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.649e-05/0.2757, allocations: 0 / 391.4 MB, free: 5.465 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.005989/0.2817, allocations: 4.228 MB / 395.6 MB, free: 2.586 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.426e-05/0.2817, allocations: 14.3 kB / 395.6 MB, free: 2.582 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005265/0.287, allocations: 1.835 MB / 397.5 MB, free: 1.621 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003418/0.2904, allocations: 2.056 MB / 399.5 MB, free: 392 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001206/0.2905, allocations: 208.7 kB / 399.7 MB, free: 324 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006811/0.2912, allocations: 374.3 kB / 400.1 MB, free: 216 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01289/0.3041, allocations: 8.876 MB / 409 MB, free: 7.18 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.642e-05/0.3042, allocations: 35.94 kB / 409 MB, free: 7.16 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003577/0.3046, allocations: 140.7 kB / 409.1 MB, free: 7.055 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002329/0.3069, allocations: 1.64 MB / 410.8 MB, free: 5.438 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01539/0.3223, allocations: 7.502 MB / 418.3 MB, free: 14.1 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.041/0.3634, allocations: 35 MB / 453.3 MB, free: 10.38 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008094/0.3715, allocations: 3.441 MB / 456.7 MB, free: 6.801 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001908/0.3735, allocations: 1.444 MB / 458.2 MB, free: 5.348 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01087/0.3843, allocations: 6.808 MB / 465 MB, free: 14.26 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.985e-05/0.3844, allocations: 47.22 kB / 465 MB, free: 14.2 MB / 382.1 MB Notification: Performance of pre-optimization done (n=132): time 4.368e-06/0.3845, allocations: 0 / 465 MB, free: 14.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=139): time 0.02476/0.4092, allocations: 11.12 MB / 476.2 MB, free: 2.926 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001278/0.4105, allocations: 1.701 MB / 477.9 MB, free: 1.051 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004516/0.4151, allocations: 3.532 MB / 481.4 MB, free: 13.52 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001825/0.4153, allocations: 45.7 kB / 481.4 MB, free: 13.47 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001671/0.4169, allocations: 2.79 MB / 484.2 MB, free: 10.68 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005122/0.4175, allocations: 0.5668 MB / 484.8 MB, free: 10.12 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001314/0.4188, allocations: 1.106 MB / 485.9 MB, free: 9.008 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.332e-05/0.4189, allocations: 301.1 kB / 486.2 MB, free: 8.711 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002473/0.4214, allocations: 1.92 MB / 488.1 MB, free: 6.785 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004342/0.4257, allocations: 5.369 MB / 493.5 MB, free: 15.68 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007549/0.4333, allocations: 7.829 MB / 0.4896 GB, free: 6.164 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.362e-05/0.4333, allocations: 36 kB / 0.4896 GB, free: 6.129 MB / 414.1 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.01936/0.4527, allocations: 8.765 MB / 0.4982 GB, free: 13.35 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.81e-05/0.4528, allocations: 56 kB / 0.4982 GB, free: 13.29 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009948/0.4628, allocations: 3.43 MB / 0.5016 GB, free: 9.848 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009763/0.4726, allocations: 2.234 MB / 0.5037 GB, free: 7.598 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003758/0.4764, allocations: 1.255 MB / 0.505 GB, free: 6.34 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009389/0.4858, allocations: 7.41 MB / 0.5122 GB, free: 14.64 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003893/0.4897, allocations: 371.3 kB / 0.5126 GB, free: 14.28 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004374/0.4901, allocations: 345.9 kB / 0.5129 GB, free: 13.94 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.002504/0.4926, allocations: 1.861 MB / 0.5147 GB, free: 12.07 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004483/0.4931, allocations: 300.1 kB / 0.515 GB, free: 11.77 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005163/0.4983, allocations: 2.761 MB / 0.5177 GB, free: 8.996 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00436/0.5026, allocations: 2.359 MB / 0.52 GB, free: 6.613 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.5026, allocations: 0 / 0.52 GB, free: 6.613 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.257e-05/0.5027, allocations: 7.984 kB / 0.52 GB, free: 6.605 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1764/0.6791, allocations: 7.84 MB / 0.5277 GB, free: 146.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.698e-05/0.6791, allocations: 3.094 kB / 0.5277 GB, free: 146.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001208/0.6804, allocations: 225.1 kB / 0.5279 GB, free: 146.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003152/0.6835, allocations: 1.058 MB / 0.5289 GB, free: 146.4 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002264/0.6838, allocations: 33.66 kB / 0.5289 GB, free: 146.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004637/0.6884, allocations: 5.281 MB / 0.5341 GB, free: 143.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007707/0.6892, allocations: 1.562 MB / 0.5356 GB, free: 142 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007558/0.6968, allocations: 4.966 MB / 0.5405 GB, free: 140.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009495/0.6977, allocations: 358.8 kB / 0.5408 GB, free: 140.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003349/0.6981, allocations: 33.95 kB / 0.5408 GB, free: 140.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001359/0.6995, allocations: 121.5 kB / 0.541 GB, free: 140 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002846/0.6998, allocations: 88.27 kB / 0.541 GB, free: 140 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001222/0.6999, allocations: 44.52 kB / 0.5411 GB, free: 140 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003486/0.7034, allocations: 2.188 MB / 0.5432 GB, free: 139.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.7034, allocations: 0 / 0.5432 GB, free: 139.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004477/0.7079, allocations: 0.9672 MB / 0.5442 GB, free: 139.2 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.0004006/0.7083, allocations: 174.4 kB / 0.5443 GB, free: 139.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007193/0.7155, allocations: 5.232 MB / 0.5494 GB, free: 137.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.7155, allocations: 3.828 kB / 0.5494 GB, free: 137.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003046/0.7186, allocations: 2.021 MB / 0.5514 GB, free: 136.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002115/0.7207, allocations: 399.7 kB / 0.5518 GB, free: 136.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009785/0.7305, allocations: 8.392 MB / 0.56 GB, free: 132.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002223/0.7327, allocations: 2.904 MB / 0.5628 GB, free: 130.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003003/0.7357, allocations: 1.7 MB / 0.5645 GB, free: 129.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004467/0.7362, allocations: 213.9 kB / 0.5647 GB, free: 129 MB / 446.1 MB Notification: Performance of SimCode: time 1.232e-06/0.7362, allocations: 0 / 0.5647 GB, free: 129 MB / 446.1 MB Notification: Performance of Templates: time 0.04746/0.7837, allocations: 31.26 MB / 0.5952 GB, free: 98.48 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 cvode -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