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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001943/0.001943, allocations: 180.2 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.299/1.299, allocations: 223.2 MB / 240.3 MB, free: 10.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009084/0.0009084, allocations: 90.17 kB / 291.5 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003076/0.0003076, allocations: 11.94 kB / 351.1 MB, free: 15.09 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2583/0.2587, allocations: 50.4 MB / 401.5 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1124/0.3711, allocations: 95.54 MB / 497 MB, free: 0.8711 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002218/0.3713, allocations: 91.95 kB / 497.1 MB, free: 0.7812 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.383/0.7544, allocations: 74.54 MB / 0.5583 GB, free: 54.59 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.7544, allocations: 0 / 0.5583 GB, free: 54.59 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001296/0.7546, allocations: 72 kB / 0.5583 GB, free: 54.52 MB / 378.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.01249/0.7671, allocations: 4.056 MB / 0.5623 GB, free: 50.4 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.7671, allocations: 12.03 kB / 0.5623 GB, free: 50.39 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008667/0.7758, allocations: 2.155 MB / 0.5644 GB, free: 48.23 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01066/0.7865, allocations: 4.346 MB / 0.5687 GB, free: 43.82 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001896/0.7867, allocations: 287.4 kB / 0.5689 GB, free: 43.54 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001231/0.7879, allocations: 367.9 kB / 0.5693 GB, free: 43.18 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01849/0.8064, allocations: 9.338 MB / 0.5784 GB, free: 32.88 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002895/0.8068, allocations: 55.47 kB / 0.5785 GB, free: 32.82 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001724/0.8085, allocations: 183.9 kB / 0.5786 GB, free: 32.64 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00131/0.8099, allocations: 0.9077 MB / 0.5795 GB, free: 31.73 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0143/0.8242, allocations: 7.563 MB / 0.5869 GB, free: 24.16 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04926/0.8735, allocations: 43.9 MB / 0.6298 GB, free: 10.82 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008454/0.882, allocations: 3.44 MB / 0.6331 GB, free: 7.23 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01057/0.8926, allocations: 6.847 MB / 0.6398 GB, free: 68 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.57e-05/0.8927, allocations: 43.22 kB / 0.6399 GB, free: 16 kB / 410.7 MB Notification: Performance of pre-optimization done (n=132): time 3.056e-06/0.8927, allocations: 0 / 0.6399 GB, free: 16 kB / 410.7 MB Notification: Performance of matching and sorting (n=139): time 0.02512/0.9178, allocations: 11.32 MB / 0.6509 GB, free: 4.465 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001293/0.9191, allocations: 1.624 MB / 0.6525 GB, free: 2.668 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004623/0.9238, allocations: 3.152 MB / 0.6556 GB, free: 15.52 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000247/0.924, allocations: 45.7 kB / 0.6556 GB, free: 15.46 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001903/0.9259, allocations: 2.802 MB / 0.6584 GB, free: 12.62 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008531/0.9268, allocations: 0.5672 MB / 0.6589 GB, free: 12.05 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002816/0.9271, allocations: 108 kB / 0.659 GB, free: 11.95 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003641/0.9275, allocations: 0.5375 MB / 0.6596 GB, free: 11.4 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002732/0.9302, allocations: 1.892 MB / 0.6614 GB, free: 9.504 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004895/0.9351, allocations: 5.335 MB / 0.6666 GB, free: 2.426 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.205/1.14, allocations: 3.103 MB / 0.6696 GB, free: 113.1 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001135/1.14, allocations: 35.56 kB / 0.6697 GB, free: 113.1 MB / 442.7 MB Notification: Performance of matching and sorting (n=712) (initialization): time 0.01666/1.157, allocations: 8.461 MB / 0.6779 GB, free: 112.7 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.424e-05/1.157, allocations: 59.66 kB / 0.678 GB, free: 112.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.008432/1.166, allocations: 3.171 MB / 0.6811 GB, free: 112.6 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009207/1.175, allocations: 1.946 MB / 0.683 GB, free: 112.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004089/1.179, allocations: 1.248 MB / 0.6842 GB, free: 112.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007585/1.186, allocations: 5.915 MB / 0.69 GB, free: 109.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005404/1.192, allocations: 377.8 kB / 0.6903 GB, free: 109.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001386/1.193, allocations: 334.3 kB / 0.6907 GB, free: 109.8 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 559 * 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 (674): * Single equations (assignments): 665 * 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.004419/1.198, allocations: 1.851 MB / 0.6925 GB, free: 109.6 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006211/1.198, allocations: 302.8 kB / 0.6928 GB, free: 109.6 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004783/1.203, allocations: 2.758 MB / 0.6955 GB, free: 109.4 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004045/1.207, allocations: 2.346 MB / 0.6977 GB, free: 109.2 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.343e-05/1.207, allocations: 3.75 kB / 0.6977 GB, free: 109.2 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.49e-05/1.207, allocations: 7.344 kB / 0.6978 GB, free: 109.2 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01629/1.224, allocations: 7.828 MB / 0.7054 GB, free: 106.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.61e-05/1.224, allocations: 0 / 0.7054 GB, free: 106.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001089/1.225, allocations: 228.3 kB / 0.7056 GB, free: 106.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002926/1.228, allocations: 1.05 MB / 0.7066 GB, free: 106 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001914/1.228, allocations: 31.55 kB / 0.7067 GB, free: 106 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004502/1.232, allocations: 5.047 MB / 0.7116 GB, free: 102.7 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007668/1.233, allocations: 1.487 MB / 0.7131 GB, free: 101.2 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006948/1.24, allocations: 5.077 MB / 0.718 GB, free: 99.18 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001281/1.242, allocations: 368.4 kB / 0.7184 GB, free: 98.9 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009404/1.242, allocations: 25.78 kB / 0.7184 GB, free: 98.89 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001902/1.244, allocations: 125.8 kB / 0.7185 GB, free: 98.88 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002704/1.245, allocations: 94.3 kB / 0.7186 GB, free: 98.86 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000132/1.245, allocations: 43.34 kB / 0.7186 GB, free: 98.85 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004499/1.249, allocations: 2.175 MB / 0.7208 GB, free: 98.11 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.673e-06/1.249, allocations: 2.219 kB / 0.7208 GB, free: 98.11 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005477/1.255, allocations: 0.9707 MB / 0.7217 GB, free: 97.68 MB / 442.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 {(3,100.0%),(4,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.000568/1.255, allocations: 174 kB / 0.7219 GB, free: 97.52 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008445/1.264, allocations: 5.142 MB / 0.7269 GB, free: 93.07 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.172e-06/1.264, allocations: 0 / 0.7269 GB, free: 93.07 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003402/1.267, allocations: 2.012 MB / 0.7289 GB, free: 91.32 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002302/1.27, allocations: 366.8 kB / 0.7292 GB, free: 91.02 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01633/1.286, allocations: 9.888 MB / 0.7389 GB, free: 82.18 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004181/1.29, allocations: 2.977 MB / 0.7418 GB, free: 79.89 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004415/1.295, allocations: 1.699 MB / 0.7434 GB, free: 78.83 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008174/1.296, allocations: 213.9 kB / 0.7436 GB, free: 78.63 MB / 442.7 MB Notification: Performance of SimCode: time 1.513e-06/1.296, allocations: 0 / 0.7436 GB, free: 78.63 MB / 442.7 MB Notification: Performance of Templates: time 0.05749/1.353, allocations: 32.87 MB / 0.7757 GB, free: 48.32 MB / 442.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/FreeBody/FreeBody.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches