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.001538/0.001539, allocations: 110 kB / 17.06 MB, free: 6.113 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.001691/0.001691, allocations: 200 kB / 18 MB, free: 5.188 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.397/1.397, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001434/0.001434, allocations: 47.92 kB / 351.3 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2563/0.2578, allocations: 49.44 MB / 400.7 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.01014/0.268, allocations: 10.45 MB / 411.2 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00678/0.2748, allocations: 3.824 MB / 415 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001318/0.2761, allocations: 63.81 kB / 415.1 MB, free: 10.49 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003883/0.2801, allocations: 2.313 MB / 417.4 MB, free: 8.168 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003465/0.2835, allocations: 1.687 MB / 419.1 MB, free: 6.477 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00117/0.2847, allocations: 0.6044 MB / 419.7 MB, free: 5.871 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004005/0.2887, allocations: 3.454 MB / 423.1 MB, free: 2.41 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002987/0.2917, allocations: 3.037 MB / 426.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001666/0.2934, allocations: 1.359 MB / 427.5 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002015/0.2954, allocations: 1.799 MB / 429.3 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004601/0.2959, allocations: 292 kB / 429.6 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00177/0.2977, allocations: 1.155 MB / 430.8 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001255/0.299, allocations: 1.699 MB / 432.5 MB, free: 9.012 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001506/0.3005, allocations: 1.961 MB / 434.4 MB, free: 7.039 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005421/0.3059, allocations: 6.233 MB / 440.7 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.3059, allocations: 0 / 440.7 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3059, allocations: 4 kB / 440.7 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.938e-05/0.306, allocations: 0 / 440.7 MB, free: 0.7812 MB / 350.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.007032/0.3131, allocations: 4.234 MB / 444.9 MB, free: 12.48 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.3131, allocations: 8.031 kB / 444.9 MB, free: 12.47 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006128/0.3193, allocations: 1.828 MB / 446.7 MB, free: 10.64 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003449/0.3227, allocations: 2.06 MB / 448.8 MB, free: 8.516 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001332/0.3229, allocations: 213.4 kB / 449 MB, free: 8.305 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007276/0.3236, allocations: 371.6 kB / 449.4 MB, free: 7.941 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01316/0.3368, allocations: 8.862 MB / 458.2 MB, free: 14.45 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.744e-05/0.3369, allocations: 43.59 kB / 458.3 MB, free: 14.41 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003304/0.3372, allocations: 131.9 kB / 458.4 MB, free: 14.28 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002355/0.3396, allocations: 1.645 MB / 460 MB, free: 12.63 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01312/0.3527, allocations: 7.498 MB / 467.5 MB, free: 5.121 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03861/0.3914, allocations: 35.02 MB / 0.4908 GB, free: 1.055 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008344/0.3997, allocations: 3.435 MB / 0.4941 GB, free: 13.48 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001856/0.4016, allocations: 1.452 MB / 0.4955 GB, free: 12.02 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00906/0.4107, allocations: 6.804 MB / 0.5022 GB, free: 4.891 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.568e-05/0.4108, allocations: 51.16 kB / 0.5022 GB, free: 4.832 MB / 430.1 MB Notification: Performance of pre-optimization done (n=132): time 2.705e-06/0.4108, allocations: 0 / 0.5022 GB, free: 4.832 MB / 430.1 MB Notification: Performance of matching and sorting (n=139): time 0.02514/0.4359, allocations: 11.11 MB / 0.5131 GB, free: 9.555 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001287/0.4372, allocations: 1.71 MB / 0.5148 GB, free: 7.664 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00535/0.4426, allocations: 3.524 MB / 0.5182 GB, free: 4.141 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003819/0.443, allocations: 45.7 kB / 0.5182 GB, free: 4.09 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00187/0.4449, allocations: 2.786 MB / 0.521 GB, free: 1.266 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007305/0.4456, allocations: 0.5711 MB / 0.5215 GB, free: 0.6875 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001379/0.447, allocations: 1.11 MB / 0.5226 GB, free: 15.57 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.82e-05/0.4471, allocations: 309.1 kB / 0.5229 GB, free: 15.26 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00254/0.4497, allocations: 1.916 MB / 0.5248 GB, free: 13.34 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004823/0.4545, allocations: 5.373 MB / 0.53 GB, free: 6.234 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2468/0.7013, allocations: 7.821 MB / 0.5377 GB, free: 123.7 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001078/0.7014, allocations: 34.66 kB / 0.5377 GB, free: 123.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.01965/0.7211, allocations: 8.759 MB / 0.5462 GB, free: 121.3 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.796e-05/0.7212, allocations: 62.41 kB / 0.5463 GB, free: 121.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009434/0.7306, allocations: 3.431 MB / 0.5497 GB, free: 120.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01019/0.7409, allocations: 2.236 MB / 0.5518 GB, free: 120 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003502/0.7444, allocations: 1.252 MB / 0.5531 GB, free: 119.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008187/0.7526, allocations: 7.411 MB / 0.5603 GB, free: 112.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004107/0.7567, allocations: 388 kB / 0.5607 GB, free: 111.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000588/0.7573, allocations: 332 kB / 0.561 GB, free: 111.6 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.002258/0.7596, allocations: 1.855 MB / 0.5628 GB, free: 109.8 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004534/0.7601, allocations: 299.4 kB / 0.5631 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004519/0.7646, allocations: 2.759 MB / 0.5658 GB, free: 106.9 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003709/0.7683, allocations: 2.363 MB / 0.5681 GB, free: 104.5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-05/0.7683, allocations: 4 kB / 0.5681 GB, free: 104.5 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.675e-05/0.7684, allocations: 7.969 kB / 0.5681 GB, free: 104.5 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01084/0.7792, allocations: 7.832 MB / 0.5757 GB, free: 96.58 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.678e-06/0.7792, allocations: 4 kB / 0.5757 GB, free: 96.57 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009406/0.7802, allocations: 227.6 kB / 0.576 GB, free: 96.35 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002634/0.7828, allocations: 1.053 MB / 0.577 GB, free: 95.29 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001124/0.7829, allocations: 35.97 kB / 0.577 GB, free: 95.25 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00425/0.7872, allocations: 5.287 MB / 0.5822 GB, free: 89.72 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007124/0.7879, allocations: 1.555 MB / 0.5837 GB, free: 88.02 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006003/0.7939, allocations: 4.964 MB / 0.5886 GB, free: 83.18 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008015/0.7948, allocations: 364.9 kB / 0.5889 GB, free: 82.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002733/0.795, allocations: 35.98 kB / 0.5889 GB, free: 82.77 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001209/0.7963, allocations: 123.8 kB / 0.5891 GB, free: 82.65 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002195/0.7965, allocations: 88.47 kB / 0.5891 GB, free: 82.56 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.63e-05/0.7966, allocations: 39.98 kB / 0.5892 GB, free: 82.52 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002493/0.7991, allocations: 2.183 MB / 0.5913 GB, free: 80.35 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.7991, allocations: 0 / 0.5913 GB, free: 80.35 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003842/0.8029, allocations: 0.9756 MB / 0.5923 GB, free: 79.38 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.0003448/0.8033, allocations: 173.8 kB / 0.5924 GB, free: 79.21 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007153/0.8105, allocations: 5.235 MB / 0.5975 GB, free: 73.93 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.8105, allocations: 0 / 0.5975 GB, free: 73.93 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003122/0.8136, allocations: 2.025 MB / 0.5995 GB, free: 71.85 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002143/0.8158, allocations: 399.6 kB / 0.5999 GB, free: 71.46 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01176/0.8275, allocations: 8.395 MB / 0.6081 GB, free: 63.03 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002203/0.8298, allocations: 2.905 MB / 0.6109 GB, free: 60.09 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003172/0.833, allocations: 1.711 MB / 0.6126 GB, free: 58.38 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005235/0.8335, allocations: 211.4 kB / 0.6128 GB, free: 58.17 MB / 462.1 MB Notification: Performance of SimCode: time 8.12e-07/0.8335, allocations: 3.938 kB / 0.6128 GB, free: 58.17 MB / 462.1 MB Notification: Performance of Templates: time 0.05066/0.8842, allocations: 32.98 MB / 0.645 GB, free: 25.45 MB / 462.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 -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/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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches