Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001147/0.001147, allocations: 179.2 kB / 16.41 MB, free: 5.73 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.355/1.355, allocations: 205.4 MB / 222.6 MB, free: 9.102 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007946/0.0007948, allocations: 96.92 kB / 270.9 MB, free: 8.34 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004777/0.0004777, allocations: 8 kB / 327 MB, free: 180 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2577/0.2582, allocations: 47.58 MB / 374.6 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.02164/0.2799, allocations: 34.76 MB / 409.3 MB, free: 13.99 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01335/0.2933, allocations: 8.054 MB / 417.4 MB, free: 5.91 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003024/0.2963, allocations: 167.6 kB / 417.5 MB, free: 5.746 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002138/0.2985, allocations: 1.757 MB / 419.3 MB, free: 3.98 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007874/0.3064, allocations: 5.362 MB / 424.7 MB, free: 14.6 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001173/0.3076, allocations: 0.511 MB / 425.2 MB, free: 14.09 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003972/0.3115, allocations: 3.978 MB / 429.1 MB, free: 10.1 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004355/0.3159, allocations: 3.705 MB / 432.9 MB, free: 6.328 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001247/0.3172, allocations: 1.105 MB / 434 MB, free: 5.219 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001766/0.319, allocations: 1.666 MB / 435.6 MB, free: 3.547 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002542/0.3192, allocations: 124 kB / 435.7 MB, free: 3.426 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001499/0.3207, allocations: 0.8815 MB / 436.6 MB, free: 2.543 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001234/0.322, allocations: 1.484 MB / 438.1 MB, free: 1.055 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005864/0.3226, allocations: 0.7337 MB / 438.8 MB, free: 320 kB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003978/0.3265, allocations: 4.771 MB / 443.6 MB, free: 11.53 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.3266, allocations: 0 / 443.6 MB, free: 11.53 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.3266, allocations: 0 / 443.6 MB, free: 11.53 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.567e-05/0.3266, allocations: 0 / 443.6 MB, free: 11.53 MB / 330.7 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.005311/0.3319, allocations: 3.52 MB / 447.1 MB, free: 7.941 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.332, allocations: 16.03 kB / 447.2 MB, free: 7.926 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00576/0.3378, allocations: 1.874 MB / 449 MB, free: 6.043 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002997/0.3408, allocations: 2.025 MB / 451.1 MB, free: 3.957 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001434/0.3409, allocations: 213.4 kB / 451.3 MB, free: 3.746 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007059/0.3416, allocations: 375.6 kB / 451.6 MB, free: 3.379 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01178/0.3534, allocations: 8.851 MB / 460.5 MB, free: 9.898 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.681e-05/0.3535, allocations: 39.59 kB / 460.5 MB, free: 9.859 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003127/0.3538, allocations: 135.9 kB / 460.6 MB, free: 9.727 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002212/0.3561, allocations: 1.645 MB / 462.3 MB, free: 8.078 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01205/0.3681, allocations: 7.467 MB / 469.8 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2575/0.6256, allocations: 35.15 MB / 0.4931 GB, free: 86.75 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007975/0.6336, allocations: 3.437 MB / 0.4964 GB, free: 86.09 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001772/0.6354, allocations: 1.441 MB / 0.4978 GB, free: 86.05 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009274/0.6447, allocations: 6.811 MB / 0.5045 GB, free: 82.95 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.374e-05/0.6448, allocations: 46.91 kB / 0.5045 GB, free: 82.89 MB / 378.7 MB Notification: Performance of pre-optimization done (n=132): time 6.292e-06/0.6449, allocations: 3.344 kB / 0.5045 GB, free: 82.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=139): time 0.02471/0.6696, allocations: 11.11 MB / 0.5154 GB, free: 77.12 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001062/0.6707, allocations: 1.618 MB / 0.517 GB, free: 75.46 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004329/0.675, allocations: 3.538 MB / 0.5204 GB, free: 72.8 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002474/0.6753, allocations: 41.7 kB / 0.5205 GB, free: 72.75 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00125/0.6765, allocations: 2.79 MB / 0.5232 GB, free: 69.97 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004847/0.677, allocations: 0.5676 MB / 0.5237 GB, free: 69.41 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002011/0.6773, allocations: 104 kB / 0.5238 GB, free: 69.3 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002562/0.6775, allocations: 0.5374 MB / 0.5244 GB, free: 68.76 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002308/0.6798, allocations: 1.896 MB / 0.5262 GB, free: 66.86 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003635/0.6835, allocations: 5.347 MB / 0.5314 GB, free: 59.94 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003719/0.6872, allocations: 3.116 MB / 0.5345 GB, free: 56.94 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.916e-05/0.6873, allocations: 32 kB / 0.5345 GB, free: 56.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.02072/0.708, allocations: 8.715 MB / 0.543 GB, free: 48.26 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001063/0.7082, allocations: 59.95 kB / 0.5431 GB, free: 48.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01014/0.7184, allocations: 3.432 MB / 0.5464 GB, free: 44.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01017/0.7286, allocations: 2.251 MB / 0.5486 GB, free: 42.49 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004543/0.7332, allocations: 1.251 MB / 0.5499 GB, free: 41.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00838/0.7416, allocations: 6.803 MB / 0.5565 GB, free: 34.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005867/0.7476, allocations: 387.3 kB / 0.5569 GB, free: 33.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001276/0.7489, allocations: 345.1 kB / 0.5572 GB, free: 33.46 MB / 378.7 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 (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004069/0.753, allocations: 1.855 MB / 0.559 GB, free: 31.59 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008508/0.7538, allocations: 308.1 kB / 0.5593 GB, free: 31.29 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005171/0.759, allocations: 2.765 MB / 0.562 GB, free: 28.5 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003925/0.763, allocations: 2.359 MB / 0.5643 GB, free: 26.12 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.631e-05/0.763, allocations: 0 / 0.5643 GB, free: 26.12 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.04e-05/0.763, allocations: 11.97 kB / 0.5643 GB, free: 26.11 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01401/0.7771, allocations: 7.837 MB / 0.572 GB, free: 18.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-05/0.7771, allocations: 0 / 0.572 GB, free: 18.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001046/0.7782, allocations: 227.7 kB / 0.5722 GB, free: 17.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00276/0.781, allocations: 1.049 MB / 0.5732 GB, free: 16.9 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001962/0.7812, allocations: 44.92 kB / 0.5733 GB, free: 16.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00449/0.7857, allocations: 4.958 MB / 0.5781 GB, free: 11.64 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007695/0.7865, allocations: 1.481 MB / 0.5795 GB, free: 10.02 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007105/0.7936, allocations: 4.951 MB / 0.5844 GB, free: 5.016 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001131/0.7948, allocations: 368.9 kB / 0.5847 GB, free: 4.633 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002802/0.7951, allocations: 32.73 kB / 0.5848 GB, free: 4.602 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001231/0.7963, allocations: 133 kB / 0.5849 GB, free: 4.473 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002254/0.7965, allocations: 88.48 kB / 0.585 GB, free: 4.387 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.978e-05/0.7966, allocations: 39.98 kB / 0.585 GB, free: 4.348 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002908/0.7996, allocations: 2.183 MB / 0.5871 GB, free: 2.176 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.7996, allocations: 0 / 0.5871 GB, free: 2.176 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00428/0.8038, allocations: 0.9695 MB / 0.5881 GB, free: 1.215 MB / 378.7 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 (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003826/0.8042, allocations: 166.3 kB / 0.5882 GB, free: 1.043 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.008488/0.8127, allocations: 5.177 MB / 0.5933 GB, free: 11.83 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.8128, allocations: 3.938 kB / 0.5933 GB, free: 11.82 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003602/0.8164, allocations: 2.009 MB / 0.5953 GB, free: 9.742 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002643/0.819, allocations: 386.5 kB / 0.5956 GB, free: 9.367 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0156/0.8346, allocations: 10.39 MB / 0.6058 GB, free: 14.93 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002897/0.8376, allocations: 2.902 MB / 0.6086 GB, free: 11.99 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009004/0.8385, allocations: 255.4 kB / 0.6089 GB, free: 11.74 MB / 410.7 MB Notification: Performance of SimCode: time 7.91e-07/0.8385, allocations: 0 / 0.6089 GB, free: 11.74 MB / 410.7 MB Notification: Performance of Templates: time 0.3566/1.195, allocations: 117.1 MB / 0.7232 GB, free: 99.96 MB / 442.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/FreeBody/FreeBody.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches