Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001178/0.001178, allocations: 113 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001177/0.001177, allocations: 212.9 kB / 19.4 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.364/1.364, allocations: 227.4 MB / 247.6 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 59.91 kB / 359.4 MB, free: 12.87 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2529/0.2541, allocations: 50.54 MB / 409.9 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.01047/0.2646, allocations: 10.42 MB / 420.4 MB, free: 7.074 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007481/0.2722, allocations: 3.836 MB / 424.2 MB, free: 3.227 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001711/0.2739, allocations: 59.81 kB / 424.3 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004064/0.278, allocations: 2.305 MB / 426.6 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004034/0.2821, allocations: 1.654 MB / 428.2 MB, free: 15.19 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001297/0.2834, allocations: 0.6161 MB / 428.8 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00462/0.288, allocations: 3.486 MB / 432.3 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003242/0.2913, allocations: 3.033 MB / 435.3 MB, free: 8.004 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001872/0.2932, allocations: 1.347 MB / 436.7 MB, free: 6.652 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002271/0.2955, allocations: 1.791 MB / 438.5 MB, free: 4.855 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005163/0.296, allocations: 292 kB / 438.8 MB, free: 4.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001992/0.298, allocations: 1.12 MB / 439.9 MB, free: 3.449 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001382/0.2994, allocations: 1.683 MB / 441.6 MB, free: 1.762 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001713/0.3011, allocations: 1.946 MB / 443.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005834/0.307, allocations: 6.182 MB / 449.7 MB, free: 9.602 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.307, allocations: 4 kB / 449.7 MB, free: 9.598 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.135e-06/0.307, allocations: 0 / 449.7 MB, free: 9.598 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001038/0.3071, allocations: 3.938 kB / 449.7 MB, free: 9.594 MB / 366.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.007488/0.3146, allocations: 4.207 MB / 453.9 MB, free: 5.32 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.3147, allocations: 8.031 kB / 453.9 MB, free: 5.312 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006461/0.3211, allocations: 1.891 MB / 455.8 MB, free: 3.414 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003457/0.3246, allocations: 2.025 MB / 457.8 MB, free: 1.328 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001437/0.3248, allocations: 213.4 kB / 458 MB, free: 1.117 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007727/0.3256, allocations: 367.7 kB / 458.4 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01492/0.3405, allocations: 8.897 MB / 467.3 MB, free: 7.227 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001345/0.3407, allocations: 39.66 kB / 467.3 MB, free: 7.188 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006978/0.3414, allocations: 131.9 kB / 467.5 MB, free: 7.059 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002495/0.3439, allocations: 1.641 MB / 469.1 MB, free: 5.414 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01451/0.3584, allocations: 7.529 MB / 476.6 MB, free: 13.88 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04314/0.4016, allocations: 35.02 MB / 0.4997 GB, free: 9.812 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008939/0.4106, allocations: 3.471 MB / 0.5031 GB, free: 6.191 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00198/0.4126, allocations: 1.448 MB / 0.5045 GB, free: 4.734 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01057/0.4232, allocations: 6.882 MB / 0.5112 GB, free: 13.52 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.04e-05/0.4233, allocations: 51.16 kB / 0.5112 GB, free: 13.46 MB / 446.1 MB Notification: Performance of pre-optimization done (n=132): time 4.389e-06/0.4233, allocations: 0 / 0.5112 GB, free: 13.46 MB / 446.1 MB Notification: Performance of matching and sorting (n=139): time 0.02842/0.4517, allocations: 11.16 MB / 0.5221 GB, free: 2.133 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001367/0.4531, allocations: 1.71 MB / 0.5238 GB, free: 244 kB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005667/0.4588, allocations: 3.523 MB / 0.5272 GB, free: 12.71 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000292/0.4591, allocations: 49.69 kB / 0.5273 GB, free: 12.66 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002047/0.4612, allocations: 2.786 MB / 0.53 GB, free: 9.836 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008232/0.4621, allocations: 0.5672 MB / 0.5306 GB, free: 9.262 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002183/0.4643, allocations: 1.107 MB / 0.5317 GB, free: 8.145 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001042/0.4644, allocations: 309.1 kB / 0.5319 GB, free: 7.84 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003107/0.4675, allocations: 1.924 MB / 0.5338 GB, free: 5.91 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2405/0.708, allocations: 5.366 MB / 0.5391 GB, free: 119.4 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007961/0.716, allocations: 7.853 MB / 0.5467 GB, free: 113.3 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.484e-05/0.7161, allocations: 39.34 kB / 0.5468 GB, free: 113.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.0175/0.7336, allocations: 8.85 MB / 0.5554 GB, free: 110.6 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.827e-05/0.7338, allocations: 62.41 kB / 0.5555 GB, free: 110.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009644/0.7434, allocations: 3.53 MB / 0.5589 GB, free: 109.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01008/0.7535, allocations: 2.319 MB / 0.5612 GB, free: 108 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003499/0.757, allocations: 1.255 MB / 0.5624 GB, free: 106.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008053/0.7651, allocations: 7.431 MB / 0.5697 GB, free: 99.06 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003962/0.7691, allocations: 387.5 kB / 0.57 GB, free: 98.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004506/0.7696, allocations: 340 kB / 0.5704 GB, free: 98.37 MB / 462.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.002164/0.7717, allocations: 1.866 MB / 0.5722 GB, free: 96.55 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004401/0.7722, allocations: 305.5 kB / 0.5725 GB, free: 96.41 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006607/0.7729, allocations: 402.1 kB / 0.5729 GB, free: 96.01 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003857/0.7767, allocations: 2.382 MB / 0.5752 GB, free: 93.61 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.117e-05/0.7767, allocations: 4 kB / 0.5752 GB, free: 93.61 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.194e-05/0.7768, allocations: 7.969 kB / 0.5752 GB, free: 93.6 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0106/0.7874, allocations: 7.844 MB / 0.5829 GB, free: 85.71 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.05e-05/0.7874, allocations: 0 / 0.5829 GB, free: 85.71 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009986/0.7884, allocations: 234.4 kB / 0.5831 GB, free: 85.48 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002705/0.7911, allocations: 1.058 MB / 0.5841 GB, free: 84.41 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001171/0.7913, allocations: 35.97 kB / 0.5841 GB, free: 84.38 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004274/0.7955, allocations: 5.28 MB / 0.5893 GB, free: 78.86 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006974/0.7963, allocations: 1.563 MB / 0.5908 GB, free: 77.16 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006413/0.8027, allocations: 5.001 MB / 0.5957 GB, free: 72.27 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007121/0.8034, allocations: 357.1 kB / 0.5961 GB, free: 71.89 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003186/0.8037, allocations: 28 kB / 0.5961 GB, free: 71.87 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001262/0.805, allocations: 131.8 kB / 0.5962 GB, free: 71.74 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002284/0.8053, allocations: 88.45 kB / 0.5963 GB, free: 71.65 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.276e-05/0.8054, allocations: 39.98 kB / 0.5963 GB, free: 71.61 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00238/0.8077, allocations: 2.179 MB / 0.5985 GB, free: 69.45 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.8078, allocations: 4 kB / 0.5985 GB, free: 69.44 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003953/0.8117, allocations: 0.9517 MB / 0.5994 GB, free: 68.5 MB / 462.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.0003596/0.8121, allocations: 163 kB / 0.5995 GB, free: 68.33 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007319/0.8194, allocations: 5.26 MB / 0.6047 GB, free: 63.04 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.081e-06/0.8195, allocations: 8.188 kB / 0.6047 GB, free: 63.03 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003301/0.8228, allocations: 2.031 MB / 0.6067 GB, free: 60.93 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002256/0.825, allocations: 389.5 kB / 0.607 GB, free: 60.55 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01164/0.8367, allocations: 8.833 MB / 0.6157 GB, free: 51.67 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002212/0.839, allocations: 2.904 MB / 0.6185 GB, free: 48.73 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007998/0.8398, allocations: 247.4 kB / 0.6187 GB, free: 48.49 MB / 462.1 MB Notification: Performance of SimCode: time 1.303e-06/0.8398, allocations: 0 / 0.6187 GB, free: 48.49 MB / 462.1 MB Notification: Performance of Templates: time 0.3207/1.16, allocations: 117.8 MB / 0.7338 GB, free: 189.4 MB / 0.5294 GB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches