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.001073/0.001073, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001386/0.001386, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.361/1.361, allocations: 227.4 MB / 246.9 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001114/0.001114, allocations: 63.89 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2371/0.2382, allocations: 50.55 MB / 409.3 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.01055/0.2488, allocations: 10.42 MB / 419.7 MB, free: 7.105 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006361/0.2552, allocations: 3.832 MB / 423.5 MB, free: 3.262 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007478/0.2559, allocations: 63.81 kB / 423.6 MB, free: 3.199 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003816/0.2598, allocations: 2.305 MB / 425.9 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003278/0.2631, allocations: 1.7 MB / 427.6 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001084/0.2642, allocations: 0.6122 MB / 428.2 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003467/0.2677, allocations: 3.479 MB / 431.7 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002876/0.2705, allocations: 3.025 MB / 434.7 MB, free: 8.008 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001545/0.2721, allocations: 1.359 MB / 436.1 MB, free: 6.645 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001958/0.2741, allocations: 1.791 MB / 437.8 MB, free: 4.848 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000471/0.2746, allocations: 292 kB / 438.1 MB, free: 4.562 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001735/0.2763, allocations: 1.123 MB / 439.3 MB, free: 3.438 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00138/0.2777, allocations: 1.679 MB / 440.9 MB, free: 1.754 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00188/0.2796, allocations: 1.942 MB / 442.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006542/0.2862, allocations: 6.191 MB / 449.1 MB, free: 9.59 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.2862, allocations: 0 / 449.1 MB, free: 9.59 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2862, allocations: 0 / 449.1 MB, free: 9.59 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001153/0.2863, allocations: 0 / 449.1 MB, free: 9.59 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.008279/0.2946, allocations: 4.203 MB / 453.3 MB, free: 5.32 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.832e-05/0.2947, allocations: 12.03 kB / 453.3 MB, free: 5.309 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00641/0.3011, allocations: 1.891 MB / 455.2 MB, free: 3.41 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003879/0.305, allocations: 2.029 MB / 457.2 MB, free: 1.32 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001674/0.3052, allocations: 217.4 kB / 457.4 MB, free: 1.105 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007927/0.306, allocations: 367.6 kB / 457.8 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01454/0.3205, allocations: 8.897 MB / 466.7 MB, free: 7.215 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.707e-05/0.3207, allocations: 35.66 kB / 466.7 MB, free: 7.18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003903/0.3211, allocations: 135.9 kB / 466.8 MB, free: 7.047 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002323/0.3234, allocations: 1.641 MB / 468.5 MB, free: 5.402 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01403/0.3374, allocations: 7.537 MB / 476 MB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04274/0.3802, allocations: 35.01 MB / 0.499 GB, free: 9.805 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008321/0.3886, allocations: 3.479 MB / 0.5024 GB, free: 6.176 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001985/0.3906, allocations: 1.44 MB / 0.5038 GB, free: 4.727 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009503/0.4001, allocations: 6.89 MB / 0.5106 GB, free: 13.5 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.686e-05/0.4002, allocations: 47.16 kB / 0.5106 GB, free: 13.45 MB / 446.1 MB Notification: Performance of pre-optimization done (n=132): time 3.767e-06/0.4002, allocations: 0 / 0.5106 GB, free: 13.45 MB / 446.1 MB Notification: Performance of matching and sorting (n=139): time 0.02569/0.4259, allocations: 11.17 MB / 0.5215 GB, free: 2.117 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001377/0.4273, allocations: 1.699 MB / 0.5232 GB, free: 240 kB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004848/0.4322, allocations: 3.523 MB / 0.5266 GB, free: 12.71 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003125/0.4325, allocations: 49.61 kB / 0.5267 GB, free: 12.66 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001756/0.4343, allocations: 2.786 MB / 0.5294 GB, free: 9.832 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006391/0.435, allocations: 0.575 MB / 0.53 GB, free: 9.25 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001367/0.4363, allocations: 1.107 MB / 0.531 GB, free: 8.133 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.4364, allocations: 301.1 kB / 0.5313 GB, free: 7.836 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00275/0.4392, allocations: 1.932 MB / 0.5332 GB, free: 5.898 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2178/0.657, allocations: 5.36 MB / 0.5384 GB, free: 119.5 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007293/0.6644, allocations: 7.859 MB / 0.5461 GB, free: 113.4 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.983e-05/0.6645, allocations: 39.22 kB / 0.5462 GB, free: 113.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.01611/0.6806, allocations: 8.842 MB / 0.5548 GB, free: 110.7 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.244e-05/0.6807, allocations: 64.56 kB / 0.5549 GB, free: 110.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009249/0.6899, allocations: 3.528 MB / 0.5583 GB, free: 109.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009235/0.6992, allocations: 2.321 MB / 0.5606 GB, free: 108 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003544/0.7028, allocations: 1.262 MB / 0.5618 GB, free: 106.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00803/0.7108, allocations: 7.431 MB / 0.5691 GB, free: 99.09 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004144/0.715, allocations: 380.8 kB / 0.5694 GB, free: 98.74 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005595/0.7156, allocations: 344 kB / 0.5697 GB, free: 98.41 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.002361/0.7179, allocations: 1.872 MB / 0.5716 GB, free: 96.58 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004384/0.7184, allocations: 297.6 kB / 0.5719 GB, free: 96.45 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005364/0.7189, allocations: 402.1 kB / 0.5722 GB, free: 96.05 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003898/0.7228, allocations: 2.382 MB / 0.5746 GB, free: 93.65 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.017e-05/0.7228, allocations: 0 / 0.5746 GB, free: 93.65 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.319e-05/0.7229, allocations: 11.97 kB / 0.5746 GB, free: 93.64 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01085/0.7337, allocations: 7.848 MB / 0.5822 GB, free: 85.75 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.21e-05/0.7338, allocations: 0 / 0.5822 GB, free: 85.75 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001007/0.7348, allocations: 231.7 kB / 0.5825 GB, free: 85.52 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002688/0.7375, allocations: 1.056 MB / 0.5835 GB, free: 84.45 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001412/0.7376, allocations: 43.8 kB / 0.5835 GB, free: 84.41 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004261/0.7419, allocations: 5.268 MB / 0.5887 GB, free: 78.89 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006693/0.7426, allocations: 1.566 MB / 0.5902 GB, free: 77.19 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006394/0.749, allocations: 4.996 MB / 0.5951 GB, free: 72.31 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006489/0.7497, allocations: 357.1 kB / 0.5954 GB, free: 71.94 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002887/0.75, allocations: 32 kB / 0.5955 GB, free: 71.91 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001218/0.7512, allocations: 135.6 kB / 0.5956 GB, free: 71.78 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002246/0.7514, allocations: 88.59 kB / 0.5957 GB, free: 71.69 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001047/0.7515, allocations: 39.98 kB / 0.5957 GB, free: 71.65 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002381/0.7539, allocations: 2.179 MB / 0.5978 GB, free: 69.48 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.7539, allocations: 0 / 0.5978 GB, free: 69.48 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003644/0.7576, allocations: 0.9479 MB / 0.5988 GB, free: 68.54 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.0003339/0.7579, allocations: 173.5 kB / 0.5989 GB, free: 68.36 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007256/0.7652, allocations: 5.258 MB / 0.6041 GB, free: 63.07 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.462e-06/0.7652, allocations: 0 / 0.6041 GB, free: 63.07 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003182/0.7684, allocations: 2.024 MB / 0.606 GB, free: 60.97 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00236/0.7708, allocations: 397.3 kB / 0.6064 GB, free: 60.59 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01077/0.7816, allocations: 8.418 MB / 0.6146 GB, free: 52.14 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00223/0.7838, allocations: 2.908 MB / 0.6175 GB, free: 49.2 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003068/0.7869, allocations: 1.691 MB / 0.6191 GB, free: 47.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004643/0.7874, allocations: 211.4 kB / 0.6193 GB, free: 47.29 MB / 462.1 MB Notification: Performance of SimCode: time 8.72e-07/0.7874, allocations: 0 / 0.6193 GB, free: 47.29 MB / 462.1 MB Notification: Performance of Templates: time 0.04926/0.8367, allocations: 32.94 MB / 0.6515 GB, free: 14.54 MB / 462.1 MB 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/FreeBody/FreeBody.csv","/var/lib/jenkins/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