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.001462/0.001461, allocations: 195.2 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.285/1.285, allocations: 226.5 MB / 244.7 MB, free: 8.191 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008547/0.0008551, allocations: 95.5 kB / 296.8 MB, free: 6.902 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002298/0.00023, allocations: 4 kB / 356.8 MB, free: 10.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2117/0.212, allocations: 51.3 MB / 408.1 MB, free: 27.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.02368/0.2357, allocations: 34.76 MB / 442.8 MB, free: 8.852 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01658/0.2523, allocations: 8.081 MB / 450.9 MB, free: 0.7578 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005835/0.2582, allocations: 163.6 kB / 451.1 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005139/0.2634, allocations: 1.765 MB / 452.8 MB, free: 14.82 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01388/0.2773, allocations: 5.378 MB / 458.2 MB, free: 9.426 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002565/0.2799, allocations: 0.5421 MB / 458.7 MB, free: 8.883 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.005157/0.2851, allocations: 4.051 MB / 462.8 MB, free: 4.824 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005724/0.2908, allocations: 3.934 MB / 466.7 MB, free: 0.8086 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002152/0.293, allocations: 1.117 MB / 467.8 MB, free: 15.69 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002731/0.2958, allocations: 1.655 MB / 469.5 MB, free: 14.03 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007523/0.2965, allocations: 120 kB / 469.6 MB, free: 13.91 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002352/0.2989, allocations: 1.002 MB / 470.6 MB, free: 12.91 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001916/0.3008, allocations: 1.465 MB / 472.1 MB, free: 11.44 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002468/0.3033, allocations: 1.671 MB / 473.8 MB, free: 9.75 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005223/0.3086, allocations: 4.755 MB / 478.5 MB, free: 4.984 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.646e-06/0.3086, allocations: 0 / 478.5 MB, free: 4.984 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3086, allocations: 3.938 kB / 478.5 MB, free: 4.98 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002256/0.3089, allocations: 4 kB / 478.5 MB, free: 4.977 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.007702/0.3166, allocations: 3.466 MB / 482 MB, free: 1.445 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.3166, allocations: 8.031 kB / 482 MB, free: 1.438 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006594/0.3232, allocations: 1.922 MB / 483.9 MB, free: 15.51 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004249/0.3275, allocations: 2.006 MB / 485.9 MB, free: 13.44 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001948/0.3277, allocations: 209.4 kB / 486.1 MB, free: 13.23 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001172/0.3289, allocations: 367.7 kB / 486.5 MB, free: 12.88 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0161/0.345, allocations: 8.858 MB / 495.3 MB, free: 3.383 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001254/0.3452, allocations: 39.62 kB / 495.4 MB, free: 3.344 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006854/0.3459, allocations: 139.9 kB / 495.5 MB, free: 3.207 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002402/0.3483, allocations: 1.637 MB / 497.2 MB, free: 1.566 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01452/0.3628, allocations: 7.482 MB / 0.4928 GB, free: 10.08 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.252/0.6148, allocations: 35.15 MB / 0.5271 GB, free: 68.36 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007311/0.6222, allocations: 3.443 MB / 0.5305 GB, free: 66.95 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001683/0.6239, allocations: 1.439 MB / 0.5319 GB, free: 66.23 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007967/0.6319, allocations: 6.808 MB / 0.5385 GB, free: 61.35 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.819e-05/0.632, allocations: 50.03 kB / 0.5386 GB, free: 61.3 MB / 378.7 MB Notification: Performance of pre-optimization done (n=132): time 3.997e-06/0.632, allocations: 3.938 kB / 0.5386 GB, free: 61.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=139): time 0.02394/0.6559, allocations: 11.1 MB / 0.5494 GB, free: 51.31 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009346/0.6569, allocations: 1.618 MB / 0.551 GB, free: 49.52 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004295/0.6612, allocations: 3.512 MB / 0.5545 GB, free: 46.01 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002252/0.6615, allocations: 41.7 kB / 0.5545 GB, free: 45.96 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001267/0.6628, allocations: 2.786 MB / 0.5572 GB, free: 43.18 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005296/0.6633, allocations: 0.5686 MB / 0.5578 GB, free: 42.62 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002961/0.6636, allocations: 108 kB / 0.5579 GB, free: 42.51 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002507/0.6639, allocations: 0.5412 MB / 0.5584 GB, free: 41.96 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002452/0.6663, allocations: 1.896 MB / 0.5603 GB, free: 40.06 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003533/0.6699, allocations: 5.349 MB / 0.5655 GB, free: 32.98 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006417/0.6763, allocations: 7.81 MB / 0.5731 GB, free: 23.46 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.25e-05/0.6764, allocations: 36 kB / 0.5731 GB, free: 23.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.01767/0.6941, allocations: 8.779 MB / 0.5817 GB, free: 14.62 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000147/0.6943, allocations: 59.94 kB / 0.5818 GB, free: 14.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009569/0.7039, allocations: 3.505 MB / 0.5852 GB, free: 11.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009484/0.7134, allocations: 2.324 MB / 0.5875 GB, free: 8.711 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003554/0.717, allocations: 1.252 MB / 0.5887 GB, free: 7.457 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007731/0.7247, allocations: 6.834 MB / 0.5954 GB, free: 364 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003915/0.7287, allocations: 376.3 kB / 0.5957 GB, free: 15.98 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008807/0.7296, allocations: 344.6 kB / 0.596 GB, free: 15.65 MB / 394.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.003561/0.7332, allocations: 1.852 MB / 0.5979 GB, free: 13.79 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006362/0.7338, allocations: 300.1 kB / 0.5981 GB, free: 13.49 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005789/0.7396, allocations: 2.764 MB / 0.6008 GB, free: 10.71 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004672/0.7443, allocations: 2.353 MB / 0.6031 GB, free: 8.336 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.811e-05/0.7444, allocations: 7.938 kB / 0.6031 GB, free: 8.328 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.198e-05/0.7444, allocations: 7.969 kB / 0.6031 GB, free: 8.32 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01674/0.7611, allocations: 7.841 MB / 0.6108 GB, free: 400 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-05/0.7612, allocations: 0 / 0.6108 GB, free: 400 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00111/0.7623, allocations: 231.7 kB / 0.611 GB, free: 168 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003142/0.7655, allocations: 1.045 MB / 0.612 GB, free: 15.11 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001975/0.7657, allocations: 39.97 kB / 0.6121 GB, free: 15.07 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005685/0.7714, allocations: 4.966 MB / 0.6169 GB, free: 9.836 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001059/0.7725, allocations: 1.478 MB / 0.6184 GB, free: 8.215 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008272/0.7808, allocations: 4.952 MB / 0.6232 GB, free: 3.223 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001141/0.782, allocations: 361 kB / 0.6236 GB, free: 2.848 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007247/0.7827, allocations: 37.55 kB / 0.6236 GB, free: 2.812 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001602/0.7843, allocations: 127.7 kB / 0.6237 GB, free: 2.688 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002715/0.7846, allocations: 80.47 kB / 0.6238 GB, free: 2.609 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001361/0.7848, allocations: 51.83 kB / 0.6238 GB, free: 2.562 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003979/0.7888, allocations: 2.171 MB / 0.626 GB, free: 412 kB / 410.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7888, allocations: 0 / 0.626 GB, free: 412 kB / 410.7 MB Notification: Performance of remove unused functions: time 0.004746/0.7935, allocations: 0.9635 MB / 0.6269 GB, free: 15.44 MB / 426.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.0005896/0.7941, allocations: 175.9 kB / 0.6271 GB, free: 15.27 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009546/0.8037, allocations: 5.174 MB / 0.6321 GB, free: 10.05 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.856e-06/0.8038, allocations: 4.562 kB / 0.6321 GB, free: 10.04 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003904/0.8077, allocations: 2.014 MB / 0.6341 GB, free: 7.957 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00354/0.8112, allocations: 372.4 kB / 0.6345 GB, free: 7.594 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01779/0.829, allocations: 10.39 MB / 0.6446 GB, free: 13.15 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003143/0.8322, allocations: 2.898 MB / 0.6474 GB, free: 10.22 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009435/0.8332, allocations: 259.4 kB / 0.6477 GB, free: 9.965 MB / 442.7 MB Notification: Performance of SimCode: time 1.202e-06/0.8332, allocations: 0 / 0.6477 GB, free: 9.965 MB / 442.7 MB Notification: Performance of Templates: time 0.3008/1.134, allocations: 116.9 MB / 0.7618 GB, free: 76.29 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