Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001608/0.001608, allocations: 194.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.505/1.505, allocations: 226.6 MB / 244.3 MB, free: 8.305 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008935/0.0008936, allocations: 94.09 kB / 296.4 MB, free: 6.996 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000242/0.000242, allocations: 8 kB / 356.2 MB, free: 11.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.32/0.3203, allocations: 51.29 MB / 407.5 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.02766/0.3481, allocations: 34.76 MB / 442.3 MB, free: 8.953 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02242/0.3706, allocations: 8.091 MB / 450.3 MB, free: 0.8516 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009716/0.3803, allocations: 163.6 kB / 450.5 MB, free: 0.6914 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006885/0.3873, allocations: 1.757 MB / 452.3 MB, free: 14.93 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01757/0.4049, allocations: 5.358 MB / 457.6 MB, free: 9.547 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002841/0.4077, allocations: 0.507 MB / 458.1 MB, free: 9.039 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.00628/0.414, allocations: 4.02 MB / 462.2 MB, free: 5.008 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00622/0.4203, allocations: 3.709 MB / 465.9 MB, free: 1.23 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002698/0.423, allocations: 1.113 MB / 467 MB, free: 116 kB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003066/0.4261, allocations: 1.647 MB / 468.6 MB, free: 14.46 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007874/0.4269, allocations: 124 kB / 468.7 MB, free: 14.34 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002571/0.4295, allocations: 0.8776 MB / 469.6 MB, free: 13.46 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002143/0.4316, allocations: 1.473 MB / 471.1 MB, free: 11.98 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001599/0.4332, allocations: 0.7337 MB / 471.8 MB, free: 11.24 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006881/0.4401, allocations: 4.763 MB / 476.6 MB, free: 6.469 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.067e-06/0.4401, allocations: 0 / 476.6 MB, free: 6.469 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.637e-06/0.4402, allocations: 0 / 476.6 MB, free: 6.469 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003466/0.4405, allocations: 0 / 476.6 MB, free: 6.469 MB / 346.7 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.009694/0.4502, allocations: 3.517 MB / 480.1 MB, free: 2.887 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.537e-05/0.4503, allocations: 8.031 kB / 480.1 MB, free: 2.879 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006353/0.4566, allocations: 1.929 MB / 482 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003703/0.4603, allocations: 1.959 MB / 484 MB, free: 14.92 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001718/0.4605, allocations: 213.4 kB / 484.2 MB, free: 14.71 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000754/0.4613, allocations: 371.6 kB / 484.6 MB, free: 14.35 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01436/0.4757, allocations: 8.843 MB / 493.4 MB, free: 4.871 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001044/0.4758, allocations: 47.55 kB / 493.5 MB, free: 4.824 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003441/0.4762, allocations: 131.9 kB / 493.6 MB, free: 4.695 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002482/0.4786, allocations: 1.653 MB / 495.2 MB, free: 3.035 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01483/0.4935, allocations: 7.467 MB / 0.4909 GB, free: 11.57 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3108/0.8044, allocations: 35.14 MB / 0.5252 GB, free: 69.54 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007223/0.8116, allocations: 3.436 MB / 0.5286 GB, free: 68.14 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001485/0.8132, allocations: 1.44 MB / 0.53 GB, free: 67.49 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007659/0.8208, allocations: 6.808 MB / 0.5366 GB, free: 62.62 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.048e-05/0.8209, allocations: 42.09 kB / 0.5367 GB, free: 62.57 MB / 378.7 MB Notification: Performance of pre-optimization done (n=132): time 4.328e-06/0.8209, allocations: 5.125 kB / 0.5367 GB, free: 62.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=139): time 0.02114/0.842, allocations: 11.1 MB / 0.5475 GB, free: 52.2 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0008955/0.843, allocations: 1.616 MB / 0.5491 GB, free: 50.41 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003464/0.8465, allocations: 3.52 MB / 0.5526 GB, free: 46.89 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001352/0.8466, allocations: 43.52 kB / 0.5526 GB, free: 46.84 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001072/0.8477, allocations: 2.774 MB / 0.5553 GB, free: 44.07 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003878/0.8481, allocations: 0.5758 MB / 0.5559 GB, free: 43.5 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001813/0.8483, allocations: 113.4 kB / 0.556 GB, free: 43.39 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001909/0.8485, allocations: 0.5335 MB / 0.5565 GB, free: 42.86 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002012/0.8505, allocations: 1.9 MB / 0.5584 GB, free: 40.95 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003256/0.8537, allocations: 5.342 MB / 0.5636 GB, free: 33.88 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003194/0.8569, allocations: 3.113 MB / 0.5666 GB, free: 30.75 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.85e-05/0.857, allocations: 36 kB / 0.5666 GB, free: 30.72 MB / 378.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.017/0.874, allocations: 8.78 MB / 0.5752 GB, free: 21.93 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.11e-05/0.8741, allocations: 63.95 kB / 0.5753 GB, free: 21.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009339/0.8835, allocations: 3.506 MB / 0.5787 GB, free: 18.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009382/0.8929, allocations: 2.34 MB / 0.581 GB, free: 15.99 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003913/0.8968, allocations: 1.259 MB / 0.5822 GB, free: 14.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007378/0.9042, allocations: 6.832 MB / 0.5889 GB, free: 7.629 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004331/0.9086, allocations: 376.6 kB / 0.5892 GB, free: 7.262 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000368/0.9089, allocations: 345.3 kB / 0.5896 GB, free: 6.926 MB / 378.7 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 (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.002499/0.9114, allocations: 1.843 MB / 0.5914 GB, free: 5.07 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003554/0.9118, allocations: 308.1 kB / 0.5917 GB, free: 4.766 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004356/0.9162, allocations: 2.761 MB / 0.5944 GB, free: 1.984 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003829/0.92, allocations: 2.359 MB / 0.5967 GB, free: 15.6 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.538e-06/0.92, allocations: 4 kB / 0.5967 GB, free: 15.6 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.523e-05/0.9201, allocations: 7.969 kB / 0.5967 GB, free: 15.59 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01285/0.9329, allocations: 7.844 MB / 0.6043 GB, free: 7.668 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.613e-06/0.9329, allocations: 4 kB / 0.6043 GB, free: 7.664 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009867/0.9339, allocations: 223.8 kB / 0.6046 GB, free: 7.445 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002871/0.9368, allocations: 1.061 MB / 0.6056 GB, free: 6.371 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001054/0.9369, allocations: 39.97 kB / 0.6056 GB, free: 6.332 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005355/0.9423, allocations: 4.953 MB / 0.6105 GB, free: 1.109 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001026/0.9433, allocations: 1.478 MB / 0.6119 GB, free: 15.49 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007432/0.9508, allocations: 4.946 MB / 0.6167 GB, free: 10.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009016/0.9517, allocations: 369 kB / 0.6171 GB, free: 10.12 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002704/0.952, allocations: 29 kB / 0.6171 GB, free: 10.09 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001187/0.9532, allocations: 123.8 kB / 0.6172 GB, free: 9.969 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000195/0.9534, allocations: 88.48 kB / 0.6173 GB, free: 9.883 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000107/0.9535, allocations: 40.92 kB / 0.6174 GB, free: 9.844 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003562/0.957, allocations: 2.167 MB / 0.6195 GB, free: 7.688 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.924e-06/0.9571, allocations: 3.938 kB / 0.6195 GB, free: 7.684 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004274/0.9613, allocations: 0.973 MB / 0.6204 GB, free: 6.715 MB / 410.7 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.0004059/0.9618, allocations: 167.8 kB / 0.6206 GB, free: 6.551 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008233/0.97, allocations: 5.185 MB / 0.6257 GB, free: 1.32 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.002e-06/0.97, allocations: 4.188 kB / 0.6257 GB, free: 1.316 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003441/0.9735, allocations: 2.012 MB / 0.6276 GB, free: 15.23 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002104/0.9756, allocations: 389.9 kB / 0.628 GB, free: 14.86 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01436/0.99, allocations: 10.37 MB / 0.6381 GB, free: 4.426 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002981/0.993, allocations: 2.905 MB / 0.641 GB, free: 1.484 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009126/0.9939, allocations: 255.4 kB / 0.6412 GB, free: 1.234 MB / 426.7 MB Notification: Performance of SimCode: time 1.031e-06/0.9939, allocations: 0 / 0.6412 GB, free: 1.234 MB / 426.7 MB Notification: Performance of Templates: time 0.3127/1.307, allocations: 117 MB / 0.7554 GB, free: 80.63 MB / 458.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches