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.000783/0.000783, allocations: 93.59 kB / 17.31 MB, free: 5.941 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.0008461/0.0008461, allocations: 180.1 kB / 18.21 MB, free: 5.418 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.116/1.116, allocations: 223.3 MB / 242.3 MB, free: 12 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000207/0.0002069, allocations: 11.94 kB / 302.1 MB, free: 6.094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06891/0.06913, allocations: 50.42 MB / 352.5 MB, free: 3.664 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.1565/0.2257, allocations: 37.34 MB / 389.8 MB, free: 5.652 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01361/0.2393, allocations: 8.467 MB / 398.3 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005129/0.2445, allocations: 164.7 kB / 398.5 MB, free: 0.875 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009264/0.2454, allocations: 385.1 kB / 398.8 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003144/0.2486, allocations: 1.58 MB / 400.4 MB, free: 52 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001144/0.2497, allocations: 0.559 MB / 401 MB, free: 15.77 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004597/0.2543, allocations: 4.969 MB / 406 MB, free: 13.21 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004214/0.2586, allocations: 4.099 MB / 410.1 MB, free: 10.73 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001265/0.2599, allocations: 1.015 MB / 411.1 MB, free: 9.711 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001675/0.2615, allocations: 1.674 MB / 412.7 MB, free: 8.031 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002385/0.2618, allocations: 124 kB / 412.9 MB, free: 7.91 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001519/0.2633, allocations: 1.03 MB / 413.9 MB, free: 6.879 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001052/0.2644, allocations: 1.504 MB / 415.4 MB, free: 5.371 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001195/0.2656, allocations: 1.764 MB / 417.2 MB, free: 3.59 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003436/0.269, allocations: 4.767 MB / 421.9 MB, free: 14.81 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.269, allocations: 4 kB / 421.9 MB, free: 14.81 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.269, allocations: 4 kB / 421.9 MB, free: 14.8 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.546e-05/0.2691, allocations: 0 / 421.9 MB, free: 14.8 MB / 334.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.004868/0.274, allocations: 3.47 MB / 425.4 MB, free: 11.27 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.451e-05/0.274, allocations: 12.03 kB / 425.4 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005666/0.2797, allocations: 1.879 MB / 427.3 MB, free: 9.367 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002645/0.2823, allocations: 2.018 MB / 429.3 MB, free: 7.289 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001249/0.2825, allocations: 217.4 kB / 429.5 MB, free: 7.074 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006744/0.2832, allocations: 363.8 kB / 429.9 MB, free: 6.719 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01142/0.2946, allocations: 8.885 MB / 438.8 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.639e-05/0.2947, allocations: 31.75 kB / 438.8 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003086/0.295, allocations: 143.8 kB / 438.9 MB, free: 13.03 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002083/0.2971, allocations: 1.633 MB / 440.6 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01122/0.3083, allocations: 7.517 MB / 448.1 MB, free: 3.871 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02987/0.3382, allocations: 35.16 MB / 483.2 MB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007165/0.3454, allocations: 3.444 MB / 486.7 MB, free: 12.08 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001531/0.347, allocations: 1.446 MB / 488.1 MB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007124/0.3541, allocations: 6.792 MB / 494.9 MB, free: 3.516 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.986e-05/0.3541, allocations: 51.16 kB / 495 MB, free: 3.457 MB / 398.1 MB Notification: Performance of pre-optimization done (n=132): time 2.816e-06/0.3541, allocations: 0 / 495 MB, free: 3.457 MB / 398.1 MB Notification: Performance of matching and sorting (n=139): time 0.02209/0.3762, allocations: 11.11 MB / 0.4942 GB, free: 8.172 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001019/0.3773, allocations: 1.62 MB / 0.4958 GB, free: 6.379 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003635/0.3809, allocations: 3.535 MB / 0.4993 GB, free: 2.844 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000101/0.381, allocations: 53.69 kB / 0.4993 GB, free: 2.785 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001472/0.3825, allocations: 2.783 MB / 0.502 GB, free: 15.96 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000408/0.3829, allocations: 0.5672 MB / 0.5026 GB, free: 15.39 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004809/0.3834, allocations: 478 kB / 0.503 GB, free: 14.91 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 7.247e-05/0.3835, allocations: 309.1 kB / 0.5033 GB, free: 14.61 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002279/0.3858, allocations: 1.916 MB / 0.5052 GB, free: 12.69 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004013/0.3898, allocations: 5.365 MB / 0.5104 GB, free: 5.586 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006817/0.3966, allocations: 7.832 MB / 0.5181 GB, free: 12.05 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.966e-05/0.3967, allocations: 36 kB / 0.5181 GB, free: 12.01 MB / 446.1 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.01613/0.4128, allocations: 8.754 MB / 0.5267 GB, free: 3.234 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.822e-05/0.4129, allocations: 64.25 kB / 0.5267 GB, free: 3.172 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.1457/0.5586, allocations: 3.425 MB / 0.5301 GB, free: 145.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01017/0.5688, allocations: 2.239 MB / 0.5323 GB, free: 145.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003539/0.5724, allocations: 1.248 MB / 0.5335 GB, free: 145.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008038/0.5805, allocations: 6.811 MB / 0.5401 GB, free: 142.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003582/0.5841, allocations: 381 kB / 0.5405 GB, free: 142.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000652/0.5847, allocations: 343.1 kB / 0.5408 GB, free: 142.3 MB / 446.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.002453/0.5872, allocations: 1.854 MB / 0.5426 GB, free: 141.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004382/0.5876, allocations: 300.8 kB / 0.5429 GB, free: 141.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004663/0.5923, allocations: 2.778 MB / 0.5456 GB, free: 140.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003693/0.596, allocations: 2.351 MB / 0.5479 GB, free: 139.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.765e-06/0.596, allocations: 6.688 kB / 0.5479 GB, free: 139.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.035e-05/0.596, allocations: 7.562 kB / 0.548 GB, free: 139.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009179/0.6052, allocations: 7.838 MB / 0.5556 GB, free: 136.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/0.6052, allocations: 0 / 0.5556 GB, free: 136.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008293/0.6061, allocations: 229.2 kB / 0.5558 GB, free: 136.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002444/0.6085, allocations: 1.056 MB / 0.5569 GB, free: 136.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.16e-05/0.6086, allocations: 36.27 kB / 0.5569 GB, free: 136.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00359/0.6122, allocations: 4.964 MB / 0.5617 GB, free: 132.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0005715/0.6128, allocations: 1.474 MB / 0.5632 GB, free: 131.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005231/0.6181, allocations: 4.965 MB / 0.568 GB, free: 128.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003647/0.6184, allocations: 369.9 kB / 0.5684 GB, free: 128.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002592/0.6187, allocations: 32.62 kB / 0.5684 GB, free: 128.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001132/0.6198, allocations: 128.3 kB / 0.5685 GB, free: 128.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001725/0.62, allocations: 84.45 kB / 0.5686 GB, free: 128 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.052e-05/0.6201, allocations: 40.61 kB / 0.5687 GB, free: 128 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001888/0.622, allocations: 2.187 MB / 0.5708 GB, free: 125.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.622, allocations: 0 / 0.5708 GB, free: 125.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003011/0.625, allocations: 0.9721 MB / 0.5717 GB, free: 124.8 MB / 446.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.0002732/0.6253, allocations: 166.5 kB / 0.5719 GB, free: 124.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005593/0.6309, allocations: 5.2 MB / 0.577 GB, free: 119.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.6309, allocations: 0.75 kB / 0.577 GB, free: 119.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002706/0.6336, allocations: 2.015 MB / 0.5789 GB, free: 117.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002119/0.6358, allocations: 392.2 kB / 0.5793 GB, free: 117 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008471/0.6442, allocations: 10.78 MB / 0.5898 GB, free: 106.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00187/0.6461, allocations: 2.898 MB / 0.5927 GB, free: 103.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005199/0.6466, allocations: 259.4 kB / 0.5929 GB, free: 103 MB / 446.1 MB Notification: Performance of SimCode: time 3.81e-07/0.6466, allocations: 0 / 0.5929 GB, free: 103 MB / 446.1 MB Notification: Performance of Templates: time 0.2136/0.8602, allocations: 116.8 MB / 0.707 GB, free: 136.9 MB / 446.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/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