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.001225/0.001225, allocations: 203.1 kB / 18.07 MB, free: 3.648 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 226.5 MB / 245.4 MB, free: 8.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008781/0.0008781, allocations: 111 kB / 297.4 MB, free: 6.875 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003517/0.000352, allocations: 11.98 kB / 357.4 MB, free: 10.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3525/0.3529, allocations: 51.29 MB / 408.7 MB, free: 27.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1311/0.484, allocations: 96.22 MB / 0.4931 GB, free: 11.36 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003085/0.4844, allocations: 88.48 kB / 0.4931 GB, free: 11.28 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4114/0.8958, allocations: 73.9 MB / 0.5653 GB, free: 46.06 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.8959, allocations: 0 / 0.5653 GB, free: 46.06 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001279/0.896, allocations: 79.94 kB / 0.5654 GB, free: 45.98 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.01208/0.9081, allocations: 4.114 MB / 0.5694 GB, free: 41.8 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.9082, allocations: 8.031 kB / 0.5694 GB, free: 41.79 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008997/0.9172, allocations: 2.18 MB / 0.5715 GB, free: 39.61 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00642/0.9236, allocations: 3.184 MB / 0.5746 GB, free: 36.36 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001768/0.9238, allocations: 283.8 kB / 0.5749 GB, free: 36.08 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009544/0.9248, allocations: 372.2 kB / 0.5753 GB, free: 35.72 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01306/0.9378, allocations: 9.265 MB / 0.5843 GB, free: 25.49 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001266/0.938, allocations: 59.48 kB / 0.5844 GB, free: 25.43 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004389/0.9384, allocations: 183.9 kB / 0.5845 GB, free: 25.25 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000972/0.9394, allocations: 0.9038 MB / 0.5854 GB, free: 24.35 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0118/0.9512, allocations: 7.462 MB / 0.5927 GB, free: 16.88 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04122/0.9925, allocations: 43.85 MB / 0.6355 GB, free: 3.582 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008157/1.001, allocations: 3.42 MB / 0.6389 GB, free: 12 kB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001896/1.003, allocations: 1.436 MB / 0.6403 GB, free: 14.57 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00919/1.012, allocations: 6.812 MB / 0.6469 GB, free: 7.434 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.478e-05/1.012, allocations: 47.16 kB / 0.647 GB, free: 7.379 MB / 426.7 MB Notification: Performance of pre-optimization done (n=132): time 3.737e-06/1.012, allocations: 0 / 0.647 GB, free: 7.379 MB / 426.7 MB Notification: Performance of matching and sorting (n=139): time 0.02396/1.036, allocations: 11.05 MB / 0.6578 GB, free: 12.15 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001204/1.037, allocations: 1.604 MB / 0.6593 GB, free: 10.38 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004761/1.042, allocations: 3.536 MB / 0.6628 GB, free: 6.84 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002297/1.042, allocations: 49.64 kB / 0.6628 GB, free: 6.785 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001754/1.044, allocations: 2.802 MB / 0.6656 GB, free: 3.945 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005625/1.044, allocations: 0.5672 MB / 0.6661 GB, free: 3.371 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000229/1.045, allocations: 112 kB / 0.6662 GB, free: 3.262 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002795/1.045, allocations: 0.5334 MB / 0.6668 GB, free: 2.723 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002521/1.048, allocations: 1.9 MB / 0.6686 GB, free: 0.8164 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2955/1.343, allocations: 5.348 MB / 0.6738 GB, free: 106.8 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01029/1.353, allocations: 7.818 MB / 0.6815 GB, free: 102.3 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001932/1.354, allocations: 35.41 kB / 0.6815 GB, free: 102.3 MB / 442.7 MB Notification: Performance of matching and sorting (n=712) (initialization): time 0.02299/1.377, allocations: 8.424 MB / 0.6897 GB, free: 101.4 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002082/1.377, allocations: 58.66 kB / 0.6898 GB, free: 101.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00969/1.387, allocations: 3.146 MB / 0.6929 GB, free: 101.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008945/1.396, allocations: 1.899 MB / 0.6947 GB, free: 101.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004139/1.4, allocations: 1.247 MB / 0.6959 GB, free: 101.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007136/1.407, allocations: 5.709 MB / 0.7015 GB, free: 98.56 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005471/1.413, allocations: 370.7 kB / 0.7019 GB, free: 98.56 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001386/1.414, allocations: 343.5 kB / 0.7022 GB, free: 98.56 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.00478/1.419, allocations: 1.846 MB / 0.704 GB, free: 98.17 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007777/1.42, allocations: 302.8 kB / 0.7043 GB, free: 98.17 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005547/1.425, allocations: 2.757 MB / 0.707 GB, free: 97.21 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004216/1.429, allocations: 2.344 MB / 0.7093 GB, free: 96.43 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.675e-05/1.429, allocations: 3.469 kB / 0.7093 GB, free: 96.43 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.702e-05/1.429, allocations: 10.88 kB / 0.7093 GB, free: 96.43 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01598/1.445, allocations: 7.826 MB / 0.7169 GB, free: 93.52 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.811e-05/1.446, allocations: 3.594 kB / 0.7169 GB, free: 93.52 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001129/1.447, allocations: 219.3 kB / 0.7171 GB, free: 93.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002844/1.449, allocations: 1.049 MB / 0.7182 GB, free: 93.27 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002415/1.45, allocations: 38.2 kB / 0.7182 GB, free: 93.26 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004701/1.454, allocations: 4.953 MB / 0.723 GB, free: 89.95 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007821/1.455, allocations: 1.476 MB / 0.7245 GB, free: 88.5 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007475/1.463, allocations: 4.931 MB / 0.7293 GB, free: 86.46 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001109/1.464, allocations: 366.8 kB / 0.7296 GB, free: 86.15 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004485/1.464, allocations: 27.61 kB / 0.7297 GB, free: 86.12 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001349/1.466, allocations: 131.3 kB / 0.7298 GB, free: 86.05 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002633/1.466, allocations: 92.86 kB / 0.7299 GB, free: 85.99 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001202/1.466, allocations: 39 kB / 0.7299 GB, free: 85.96 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003658/1.47, allocations: 2.179 MB / 0.732 GB, free: 84.17 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.02e-07/1.47, allocations: 4 kB / 0.732 GB, free: 84.17 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005856/1.476, allocations: 0.9649 MB / 0.733 GB, free: 83.21 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.0005926/1.476, allocations: 181.8 kB / 0.7332 GB, free: 83.06 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.009411/1.486, allocations: 5.144 MB / 0.7382 GB, free: 78.54 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.438e-06/1.486, allocations: 0 / 0.7382 GB, free: 78.54 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003482/1.489, allocations: 2.023 MB / 0.7402 GB, free: 76.78 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00329/1.493, allocations: 370.3 kB / 0.7405 GB, free: 76.46 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01633/1.509, allocations: 10.34 MB / 0.7506 GB, free: 67.1 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002855/1.512, allocations: 2.908 MB / 0.7535 GB, free: 64.8 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009499/1.513, allocations: 255.5 kB / 0.7537 GB, free: 64.57 MB / 442.7 MB Notification: Performance of SimCode: time 1.163e-06/1.513, allocations: 0 / 0.7537 GB, free: 64.57 MB / 442.7 MB Notification: Performance of Templates: time 0.3727/1.886, allocations: 116.5 MB / 0.8675 GB, free: 115.1 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/jenkins1/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