Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3.2.3_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_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.001055/0.001055, allocations: 102.4 kB / 16.94 MB, free: 6.441 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.0008887/0.0008888, allocations: 187.5 kB / 17.83 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.386/1.386, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004769/0.0004769, allocations: 15.98 kB / 280.8 MB, free: 3.758 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1006, allocations: 47.59 MB / 328.3 MB, free: 4.098 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.03099/0.1316, allocations: 32.85 MB / 361.2 MB, free: 3.156 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01858/0.1503, allocations: 8.372 MB / 369.6 MB, free: 10.76 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00849/0.1588, allocations: 163.6 kB / 369.7 MB, free: 10.6 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007919/0.1668, allocations: 1.598 MB / 371.3 MB, free: 8.996 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01533/0.1822, allocations: 4.796 MB / 376.1 MB, free: 4.188 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002564/0.1847, allocations: 0.4991 MB / 376.6 MB, free: 3.688 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004497/0.1893, allocations: 1.958 MB / 378.6 MB, free: 1.723 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2085/0.3978, allocations: 3.693 MB / 382.3 MB, free: 10.7 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00233/0.4001, allocations: 0.9218 MB / 383.2 MB, free: 10.7 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002088/0.4023, allocations: 1.158 MB / 384.3 MB, free: 10.69 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005985/0.4029, allocations: 121.5 kB / 384.5 MB, free: 10.69 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002109/0.405, allocations: 0.857 MB / 385.3 MB, free: 10.69 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001834/0.4068, allocations: 1.367 MB / 386.7 MB, free: 10.69 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001278/0.4081, allocations: 0.7385 MB / 387.4 MB, free: 10.66 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006385/0.4145, allocations: 4.785 MB / 392.2 MB, free: 10.32 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.4146, allocations: 0.8438 kB / 392.2 MB, free: 10.32 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.537e-06/0.4146, allocations: 0 / 392.2 MB, free: 10.32 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002783/0.4149, allocations: 4 kB / 392.2 MB, free: 10.32 MB / 318.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.00905/0.4239, allocations: 3.543 MB / 395.8 MB, free: 8.629 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.451e-05/0.424, allocations: 9.625 kB / 395.8 MB, free: 8.629 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008295/0.4323, allocations: 2.182 MB / 397.9 MB, free: 7.781 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006616/0.439, allocations: 2.249 MB / 400.2 MB, free: 7.02 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002718/0.4393, allocations: 216.5 kB / 400.4 MB, free: 7.012 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00202/0.4413, allocations: 367.2 kB / 400.8 MB, free: 6.988 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01744/0.4588, allocations: 8.937 MB / 409.7 MB, free: 3.902 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001202/0.4589, allocations: 41.14 kB / 409.7 MB, free: 3.895 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004098/0.4594, allocations: 137.7 kB / 409.9 MB, free: 3.895 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002583/0.4619, allocations: 1.642 MB / 411.5 MB, free: 3.539 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.015/0.477, allocations: 7.576 MB / 419.1 MB, free: 15.48 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05072/0.5277, allocations: 35.25 MB / 454.3 MB, free: 1.422 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009496/0.5373, allocations: 3.453 MB / 457.8 MB, free: 14.58 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01205/0.5494, allocations: 6.865 MB / 464.7 MB, free: 7.973 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.435e-05/0.5495, allocations: 54.39 kB / 464.7 MB, free: 7.914 MB / 366.1 MB Notification: Performance of pre-optimization done (n=132): time 5.56e-06/0.5495, allocations: 0 / 464.7 MB, free: 7.914 MB / 366.1 MB Notification: Performance of matching and sorting (n=139): time 0.02944/0.579, allocations: 11.46 MB / 476.2 MB, free: 12.26 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001545/0.5806, allocations: 1.623 MB / 477.8 MB, free: 10.48 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005251/0.5858, allocations: 3.677 MB / 481.5 MB, free: 6.809 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000341/0.5862, allocations: 45.7 kB / 481.5 MB, free: 6.758 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001814/0.588, allocations: 2.797 MB / 484.3 MB, free: 3.98 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007052/0.5887, allocations: 0.5623 MB / 484.9 MB, free: 3.422 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000216/0.589, allocations: 104 kB / 485 MB, free: 3.32 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002895/0.5893, allocations: 0.5371 MB / 485.5 MB, free: 2.781 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002597/0.5919, allocations: 1.924 MB / 487.4 MB, free: 0.8516 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004647/0.5965, allocations: 5.349 MB / 492.8 MB, free: 9.832 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004242/0.6008, allocations: 3.142 MB / 495.9 MB, free: 6.801 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.293e-05/0.6009, allocations: 34.08 kB / 496 MB, free: 6.77 MB / 398.1 MB Notification: Performance of matching and sorting (n=710) (initialization): time 0.02176/0.6226, allocations: 8.762 MB / 0.4929 GB, free: 14.49 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.131e-05/0.6228, allocations: 60 kB / 0.493 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01061/0.6334, allocations: 3.476 MB / 0.4964 GB, free: 10.94 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01023/0.6437, allocations: 2.25 MB / 0.4986 GB, free: 8.676 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004549/0.6483, allocations: 1.252 MB / 0.4998 GB, free: 7.422 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0104/0.6587, allocations: 7.239 MB / 0.5068 GB, free: 15.91 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004836/0.6636, allocations: 383.2 kB / 0.5072 GB, free: 15.54 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009897/0.6646, allocations: 340 kB / 0.5075 GB, free: 15.21 MB / 430.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 (672): * Single equations (assignments): 663 * 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.00392/0.6685, allocations: 1.853 MB / 0.5093 GB, free: 13.34 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007173/0.6692, allocations: 308.1 kB / 0.5096 GB, free: 13.04 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005637/0.6749, allocations: 2.761 MB / 0.5123 GB, free: 10.26 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004499/0.6794, allocations: 2.355 MB / 0.5146 GB, free: 7.879 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.169e-05/0.6795, allocations: 3.953 kB / 0.5146 GB, free: 7.875 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.901e-05/0.6795, allocations: 7.984 kB / 0.5146 GB, free: 7.867 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01805/0.6975, allocations: 7.86 MB / 0.5223 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-05/0.6976, allocations: 0 / 0.5223 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001132/0.6987, allocations: 227.7 kB / 0.5225 GB, free: 15.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003115/0.7019, allocations: 1.057 MB / 0.5236 GB, free: 14.63 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002071/0.7021, allocations: 35.98 kB / 0.5236 GB, free: 14.59 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005941/0.708, allocations: 5.053 MB / 0.5285 GB, free: 9.277 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001171/0.7092, allocations: 1.486 MB / 0.53 GB, free: 7.652 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008474/0.7177, allocations: 5.096 MB / 0.535 GB, free: 2.48 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001277/0.719, allocations: 373 kB / 0.5353 GB, free: 2.094 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003979/0.7195, allocations: 37.73 kB / 0.5354 GB, free: 2.059 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00148/0.7209, allocations: 123.7 kB / 0.5355 GB, free: 1.938 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002699/0.7212, allocations: 88.47 kB / 0.5356 GB, free: 1.848 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001251/0.7214, allocations: 46.58 kB / 0.5356 GB, free: 1.805 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.199/0.9204, allocations: 2.287 MB / 0.5378 GB, free: 159.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.222e-06/0.9204, allocations: 1.375 kB / 0.5378 GB, free: 159.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007157/0.9276, allocations: 0.9859 MB / 0.5388 GB, free: 159.1 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 (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.0006303/0.9282, allocations: 191.1 kB / 0.539 GB, free: 159 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009799/0.938, allocations: 5.222 MB / 0.5441 GB, free: 158.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/0.9381, allocations: 3.75 kB / 0.5441 GB, free: 158.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003844/0.9419, allocations: 2.001 MB / 0.546 GB, free: 157.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002428/0.9444, allocations: 365.8 kB / 0.5464 GB, free: 157.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01471/0.9591, allocations: 9.944 MB / 0.5561 GB, free: 152.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003399/0.9626, allocations: 2.98 MB / 0.559 GB, free: 151.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004309/0.9669, allocations: 1.709 MB / 0.5607 GB, free: 151 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006348/0.9676, allocations: 215.4 kB / 0.5609 GB, free: 151 MB / 446.1 MB Notification: Performance of SimCode: time 1.212e-06/0.9676, allocations: 0 / 0.5609 GB, free: 151 MB / 446.1 MB Notification: Performance of Templates: time 0.05538/1.023, allocations: 34.54 MB / 0.5946 GB, free: 122.6 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_3.2.3_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_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches