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.001252/0.001252, allocations: 108.5 kB / 17.16 MB, free: 6.324 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.00124/0.00124, allocations: 198.9 kB / 18.08 MB, free: 5.422 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.316/1.316, allocations: 222.9 MB / 241.8 MB, free: 13.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001083/0.001083, allocations: 51.64 kB / 300.6 MB, free: 5.988 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0984/0.0995, allocations: 49.45 MB / 350.1 MB, free: 4.523 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.2076/0.3072, allocations: 38.4 MB / 388.5 MB, free: 5.102 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0173/0.3245, allocations: 8.541 MB / 397 MB, free: 15.84 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008323/0.3329, allocations: 167.1 kB / 397.2 MB, free: 15.82 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004911/0.3379, allocations: 2.284 MB / 399.5 MB, free: 14.77 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004697/0.3426, allocations: 1.585 MB / 401 MB, free: 13.98 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001464/0.3441, allocations: 0.5495 MB / 401.6 MB, free: 13.6 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006204/0.3503, allocations: 4.989 MB / 406.6 MB, free: 11.02 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003926/0.3543, allocations: 2.996 MB / 409.6 MB, free: 9.211 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002373/0.3567, allocations: 1.218 MB / 410.8 MB, free: 7.988 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002555/0.3593, allocations: 1.923 MB / 412.7 MB, free: 6.059 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005282/0.3598, allocations: 200 kB / 412.9 MB, free: 5.863 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002244/0.3621, allocations: 1.104 MB / 414 MB, free: 4.758 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001518/0.3636, allocations: 1.621 MB / 415.6 MB, free: 3.133 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002058/0.3657, allocations: 1.883 MB / 417.5 MB, free: 1.238 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005087/0.3708, allocations: 4.881 MB / 422.4 MB, free: 12.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.747e-06/0.3708, allocations: 4 kB / 422.4 MB, free: 12.34 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3708, allocations: 0 / 422.4 MB, free: 12.34 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001737/0.371, allocations: 0 / 422.4 MB, free: 12.34 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.008212/0.3792, allocations: 4.222 MB / 426.6 MB, free: 8.051 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.596e-05/0.3793, allocations: 8.031 kB / 426.6 MB, free: 8.043 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006344/0.3856, allocations: 1.84 MB / 428.5 MB, free: 6.195 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004231/0.3899, allocations: 2.01 MB / 430.5 MB, free: 4.125 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001884/0.3901, allocations: 213.4 kB / 430.7 MB, free: 3.914 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001111/0.3912, allocations: 371.6 kB / 431.1 MB, free: 3.551 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01524/0.4065, allocations: 8.866 MB / 439.9 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.994e-05/0.4066, allocations: 35.59 kB / 440 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003753/0.407, allocations: 143.8 kB / 440.1 MB, free: 9.879 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002299/0.4093, allocations: 1.641 MB / 441.7 MB, free: 8.234 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01396/0.4233, allocations: 7.506 MB / 449.3 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04138/0.4647, allocations: 35.16 MB / 484.4 MB, free: 12.52 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00826/0.473, allocations: 3.448 MB / 487.9 MB, free: 8.93 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001942/0.475, allocations: 1.443 MB / 489.3 MB, free: 7.473 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009503/0.4845, allocations: 6.811 MB / 496.1 MB, free: 352 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.872e-05/0.4846, allocations: 43.22 kB / 496.2 MB, free: 300 kB / 398.1 MB Notification: Performance of pre-optimization done (n=132): time 4.268e-06/0.4846, allocations: 0 / 496.2 MB, free: 300 kB / 398.1 MB Notification: Performance of matching and sorting (n=139): time 0.02762/0.5123, allocations: 11.11 MB / 0.4954 GB, free: 5.012 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001331/0.5136, allocations: 1.613 MB / 0.4969 GB, free: 3.227 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005417/0.5191, allocations: 3.535 MB / 0.5004 GB, free: 15.69 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002932/0.5194, allocations: 45.7 kB / 0.5004 GB, free: 15.64 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002039/0.5214, allocations: 2.786 MB / 0.5032 GB, free: 12.82 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008645/0.5223, allocations: 0.5672 MB / 0.5037 GB, free: 12.24 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001986/0.5243, allocations: 1.11 MB / 0.5048 GB, free: 11.12 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.613e-05/0.5244, allocations: 301.1 kB / 0.5051 GB, free: 10.82 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002918/0.5274, allocations: 1.92 MB / 0.507 GB, free: 8.898 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005357/0.5327, allocations: 5.373 MB / 0.5122 GB, free: 1.789 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008925/0.5417, allocations: 7.819 MB / 0.5198 GB, free: 8.262 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001094/0.5418, allocations: 32 kB / 0.5199 GB, free: 8.23 MB / 446.1 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.1816/0.7235, allocations: 8.765 MB / 0.5284 GB, free: 143.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001215/0.7237, allocations: 58.23 kB / 0.5285 GB, free: 143.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01077/0.7344, allocations: 3.435 MB / 0.5318 GB, free: 143.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01059/0.7451, allocations: 2.235 MB / 0.534 GB, free: 143.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00379/0.7489, allocations: 1.249 MB / 0.5353 GB, free: 143.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008375/0.7573, allocations: 6.812 MB / 0.5419 GB, free: 140 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003961/0.7613, allocations: 381.3 kB / 0.5423 GB, free: 139.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000743/0.762, allocations: 339.5 kB / 0.5426 GB, free: 139.9 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.002583/0.7646, allocations: 1.861 MB / 0.5444 GB, free: 139.1 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004819/0.7651, allocations: 299.6 kB / 0.5447 GB, free: 139.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00495/0.7701, allocations: 2.757 MB / 0.5474 GB, free: 138.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00393/0.774, allocations: 2.364 MB / 0.5497 GB, free: 137.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.327e-05/0.7741, allocations: 3.469 kB / 0.5497 GB, free: 137.4 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.27e-05/0.7741, allocations: 11.23 kB / 0.5497 GB, free: 137.4 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01126/0.7854, allocations: 7.843 MB / 0.5574 GB, free: 134.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.349e-05/0.7854, allocations: 5.547 kB / 0.5574 GB, free: 134.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001003/0.7864, allocations: 227.9 kB / 0.5576 GB, free: 134 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002765/0.7892, allocations: 1.056 MB / 0.5586 GB, free: 133.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001505/0.7894, allocations: 35.94 kB / 0.5587 GB, free: 133.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004157/0.7935, allocations: 4.944 MB / 0.5635 GB, free: 129.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007046/0.7943, allocations: 1.48 MB / 0.5649 GB, free: 128.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006233/0.8005, allocations: 4.96 MB / 0.5698 GB, free: 124.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006772/0.8012, allocations: 361.3 kB / 0.5701 GB, free: 124.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003422/0.8016, allocations: 27.98 kB / 0.5701 GB, free: 124.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001219/0.8028, allocations: 123.8 kB / 0.5703 GB, free: 124.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002393/0.803, allocations: 84.08 kB / 0.5703 GB, free: 124.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001031/0.8032, allocations: 39.98 kB / 0.5704 GB, free: 124.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002367/0.8055, allocations: 2.195 MB / 0.5725 GB, free: 122.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 8.72e-07/0.8055, allocations: 0 / 0.5725 GB, free: 122.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003909/0.8095, allocations: 0.9703 MB / 0.5735 GB, free: 121.3 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.0003715/0.8098, allocations: 177.1 kB / 0.5736 GB, free: 121.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006757/0.8166, allocations: 5.21 MB / 0.5787 GB, free: 116 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.8166, allocations: 0 / 0.5787 GB, free: 116 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002974/0.8196, allocations: 2.017 MB / 0.5807 GB, free: 114 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002206/0.8218, allocations: 374 kB / 0.5811 GB, free: 113.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01127/0.8331, allocations: 10.61 MB / 0.5914 GB, free: 103 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002196/0.8354, allocations: 2.908 MB / 0.5943 GB, free: 100 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007627/0.8361, allocations: 251.4 kB / 0.5945 GB, free: 99.78 MB / 446.1 MB Notification: Performance of SimCode: time 5.61e-07/0.8361, allocations: 0 / 0.5945 GB, free: 99.78 MB / 446.1 MB Notification: Performance of Templates: time 0.2644/1.101, allocations: 117.5 MB / 0.7093 GB, free: 135.1 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