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.001197/0.001197, allocations: 112.3 kB / 17.74 MB, free: 5.293 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.00119/0.00119, allocations: 187 kB / 18.67 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.379/1.379, allocations: 222.9 MB / 242.4 MB, free: 15.06 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001033/0.001033, allocations: 51.92 kB / 352 MB, free: 3.215 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2495/0.2505, allocations: 49.43 MB / 401.4 MB, free: 8.719 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.01106/0.2616, allocations: 10.47 MB / 411.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008105/0.2697, allocations: 3.816 MB / 415.7 MB, free: 10.49 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002107/0.2719, allocations: 59.81 kB / 415.8 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004653/0.2766, allocations: 2.309 MB / 418.1 MB, free: 8.117 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005009/0.2817, allocations: 1.685 MB / 419.7 MB, free: 6.426 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001851/0.2835, allocations: 0.6161 MB / 420.4 MB, free: 5.809 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005632/0.2892, allocations: 3.453 MB / 423.8 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004135/0.2933, allocations: 3.03 MB / 426.8 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002508/0.2959, allocations: 1.363 MB / 428.2 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003066/0.299, allocations: 1.795 MB / 430 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001054/0.3, allocations: 292 kB / 430.3 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002869/0.3029, allocations: 1.151 MB / 431.4 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002335/0.3053, allocations: 1.703 MB / 433.1 MB, free: 8.957 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003469/0.3088, allocations: 1.957 MB / 435.1 MB, free: 6.988 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00797/0.3168, allocations: 6.236 MB / 441.3 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.178e-05/0.3168, allocations: 3.984 kB / 441.3 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3168, allocations: 0 / 441.3 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002054/0.3171, allocations: 4 kB / 441.3 MB, free: 0.7227 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.009324/0.3264, allocations: 4.226 MB / 445.6 MB, free: 12.43 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/0.3265, allocations: 16.03 kB / 445.6 MB, free: 12.41 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006761/0.3332, allocations: 1.825 MB / 447.4 MB, free: 10.58 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004343/0.3376, allocations: 2.068 MB / 449.5 MB, free: 8.453 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001604/0.3378, allocations: 213.4 kB / 449.7 MB, free: 8.242 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009688/0.3388, allocations: 367.6 kB / 450 MB, free: 7.883 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01544/0.3542, allocations: 8.862 MB / 458.9 MB, free: 14.39 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001064/0.3544, allocations: 35.59 kB / 458.9 MB, free: 14.36 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004129/0.3548, allocations: 139.9 kB / 459.1 MB, free: 14.22 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002501/0.3573, allocations: 1.641 MB / 460.7 MB, free: 12.57 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01446/0.3718, allocations: 7.498 MB / 468.2 MB, free: 5.066 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04148/0.4133, allocations: 35.02 MB / 0.4914 GB, free: 1 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008574/0.4219, allocations: 3.448 MB / 0.4948 GB, free: 13.41 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001954/0.4239, allocations: 1.452 MB / 0.4962 GB, free: 11.95 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009097/0.4331, allocations: 6.792 MB / 0.5029 GB, free: 4.836 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.124e-05/0.4332, allocations: 55.16 kB / 0.5029 GB, free: 4.773 MB / 430.1 MB Notification: Performance of pre-optimization done (n=132): time 4.198e-06/0.4332, allocations: 0 / 0.5029 GB, free: 4.773 MB / 430.1 MB Notification: Performance of matching and sorting (n=139): time 0.02737/0.4605, allocations: 11.1 MB / 0.5138 GB, free: 9.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001356/0.4619, allocations: 1.71 MB / 0.5154 GB, free: 7.609 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004726/0.4667, allocations: 3.528 MB / 0.5189 GB, free: 4.082 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003092/0.467, allocations: 49.67 kB / 0.5189 GB, free: 4.027 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001844/0.4689, allocations: 2.786 MB / 0.5216 GB, free: 1.203 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006697/0.4695, allocations: 0.575 MB / 0.5222 GB, free: 0.6211 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001384/0.4709, allocations: 1.103 MB / 0.5233 GB, free: 15.51 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001/0.4711, allocations: 301.1 kB / 0.5236 GB, free: 15.21 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002623/0.4737, allocations: 1.931 MB / 0.5255 GB, free: 13.27 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005006/0.4787, allocations: 5.357 MB / 0.5307 GB, free: 6.184 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2457/0.7245, allocations: 7.831 MB / 0.5383 GB, free: 123.7 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001436/0.7247, allocations: 35.34 kB / 0.5384 GB, free: 123.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.01957/0.7443, allocations: 8.757 MB / 0.5469 GB, free: 121.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001073/0.7444, allocations: 57.94 kB / 0.547 GB, free: 121.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01016/0.7546, allocations: 3.436 MB / 0.5503 GB, free: 120.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01043/0.7651, allocations: 2.23 MB / 0.5525 GB, free: 120 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003733/0.7689, allocations: 1.252 MB / 0.5537 GB, free: 119.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008335/0.7773, allocations: 7.416 MB / 0.561 GB, free: 112.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004502/0.7818, allocations: 374.3 kB / 0.5613 GB, free: 111.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000773/0.7826, allocations: 344 kB / 0.5617 GB, free: 111.4 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.002605/0.7852, allocations: 1.851 MB / 0.5635 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005285/0.7858, allocations: 309.2 kB / 0.5638 GB, free: 109.5 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004655/0.7904, allocations: 2.757 MB / 0.5664 GB, free: 106.7 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003758/0.7942, allocations: 2.359 MB / 0.5688 GB, free: 104.3 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-05/0.7942, allocations: 4 kB / 0.5688 GB, free: 104.3 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.159e-05/0.7943, allocations: 5.547 kB / 0.5688 GB, free: 104.3 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.012/0.8063, allocations: 7.829 MB / 0.5764 GB, free: 96.45 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.307e-05/0.8063, allocations: 0 / 0.5764 GB, free: 96.45 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001021/0.8074, allocations: 235.6 kB / 0.5766 GB, free: 96.22 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002674/0.8101, allocations: 1.053 MB / 0.5777 GB, free: 95.16 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001481/0.8102, allocations: 39.48 kB / 0.5777 GB, free: 95.12 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004337/0.8146, allocations: 5.271 MB / 0.5828 GB, free: 89.61 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007452/0.8153, allocations: 1.569 MB / 0.5844 GB, free: 87.89 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00631/0.8216, allocations: 4.967 MB / 0.5892 GB, free: 83.05 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008168/0.8225, allocations: 364.9 kB / 0.5896 GB, free: 82.68 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000324/0.8228, allocations: 31.98 kB / 0.5896 GB, free: 82.64 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001254/0.8241, allocations: 115.8 kB / 0.5897 GB, free: 82.53 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002309/0.8243, allocations: 95.97 kB / 0.5898 GB, free: 82.44 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.583e-05/0.8244, allocations: 43.98 kB / 0.5898 GB, free: 82.4 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002669/0.8271, allocations: 2.183 MB / 0.592 GB, free: 80.23 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.8271, allocations: 0 / 0.592 GB, free: 80.23 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004918/0.832, allocations: 0.9645 MB / 0.5929 GB, free: 79.27 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.0005376/0.8326, allocations: 186 kB / 0.5931 GB, free: 79.08 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007868/0.8405, allocations: 5.244 MB / 0.5982 GB, free: 73.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.313e-06/0.8405, allocations: 0 / 0.5982 GB, free: 73.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003288/0.8438, allocations: 2.022 MB / 0.6002 GB, free: 71.72 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002464/0.8463, allocations: 405.1 kB / 0.6006 GB, free: 71.33 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01231/0.8586, allocations: 8.809 MB / 0.6092 GB, free: 62.47 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002274/0.861, allocations: 2.898 MB / 0.612 GB, free: 59.54 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000874/0.8619, allocations: 255.4 kB / 0.6123 GB, free: 59.29 MB / 462.1 MB Notification: Performance of SimCode: time 1.002e-06/0.8619, allocations: 0 / 0.6123 GB, free: 59.29 MB / 462.1 MB Notification: Performance of Templates: time 0.328/1.19, allocations: 118.1 MB / 0.7276 GB, free: 178.8 MB / 0.5137 GB 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/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