Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.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.SpringDamperSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body1.frame_a.r_0.1.|body1.frame_a.r_0.2.|body1.frame_a.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body1.w_a.1.|body1.w_a.2.|body1.w_a.3.|p2.s|p2.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body1.frame_a.r_0.1.|body1.frame_a.r_0.2.|body1.frame_a.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body1.w_a.1.|body1.w_a.2.|body1.w_a.3.|p2.s|p2.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001393/0.001393, allocations: 203.2 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.447/1.447, allocations: 226.5 MB / 245.3 MB, free: 8.254 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007792/0.0007792, allocations: 100.1 kB / 297.4 MB, free: 6.906 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002201/0.0002201, allocations: 4 kB / 357.4 MB, free: 10.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2314/0.2316, allocations: 51.29 MB / 408.7 MB, free: 27.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.138/0.3697, allocations: 99.53 MB / 0.4963 GB, free: 8.059 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004601/0.3703, allocations: 91.89 kB / 0.4964 GB, free: 7.969 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5927/0.963, allocations: 94.78 MB / 0.5889 GB, free: 21.97 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.115e-06/0.963, allocations: 0 / 0.5889 GB, free: 21.97 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000291/0.9633, allocations: 84 kB / 0.589 GB, free: 21.89 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: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.02213/0.9855, allocations: 4.994 MB / 0.5939 GB, free: 16.82 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.988e-05/0.9856, allocations: 8.031 kB / 0.5939 GB, free: 16.81 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0127/0.9983, allocations: 2.639 MB / 0.5965 GB, free: 14.16 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01167/1.01, allocations: 3.968 MB / 0.6003 GB, free: 10.13 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004936/1.011, allocations: 361.8 kB / 0.6007 GB, free: 9.773 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002728/1.013, allocations: 480.2 kB / 0.6011 GB, free: 9.305 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0331/1.046, allocations: 12.57 MB / 0.6134 GB, free: 11.57 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005539/1.047, allocations: 67.34 kB / 0.6135 GB, free: 11.5 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003334/1.05, allocations: 231.9 kB / 0.6137 GB, free: 11.28 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002775/1.053, allocations: 1.206 MB / 0.6149 GB, free: 10.07 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02708/1.08, allocations: 10.27 MB / 0.6249 GB, free: 15.77 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3307/1.411, allocations: 52.81 MB / 0.6765 GB, free: 62.7 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01103/1.422, allocations: 4.537 MB / 0.6809 GB, free: 61.76 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00257/1.425, allocations: 1.684 MB / 0.6826 GB, free: 61.72 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01054/1.435, allocations: 8.198 MB / 0.6906 GB, free: 59.2 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.199e-05/1.435, allocations: 59.53 kB / 0.6906 GB, free: 59.16 MB / 442.7 MB Notification: Performance of pre-optimization done (n=183): time 4.258e-06/1.435, allocations: 0 / 0.6906 GB, free: 59.16 MB / 442.7 MB Notification: Performance of matching and sorting (n=205): time 0.03544/1.471, allocations: 15.84 MB / 0.7061 GB, free: 55.87 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001023/1.472, allocations: 1.601 MB / 0.7077 GB, free: 54.35 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005831/1.478, allocations: 4.221 MB / 0.7118 GB, free: 53.95 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004226/1.478, allocations: 54.45 kB / 0.7118 GB, free: 53.92 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001743/1.48, allocations: 3.411 MB / 0.7152 GB, free: 52.06 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000808/1.481, allocations: 0.8033 MB / 0.7159 GB, free: 51.61 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003064/1.481, allocations: 133.4 kB / 0.7161 GB, free: 51.61 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002812/1.481, allocations: 0.5944 MB / 0.7167 GB, free: 51.29 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003253/1.485, allocations: 2.243 MB / 0.7188 GB, free: 51.27 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00484/1.489, allocations: 6.355 MB / 0.7251 GB, free: 46 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008762/1.498, allocations: 9.241 MB / 0.7341 GB, free: 39.32 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001385/1.498, allocations: 40.91 kB / 0.7341 GB, free: 39.32 MB / 442.7 MB Notification: Performance of matching and sorting (n=883) (initialization): time 0.01626/1.515, allocations: 9.089 MB / 0.743 GB, free: 36.47 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.989e-05/1.515, allocations: 66.47 kB / 0.7431 GB, free: 36.47 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005787/1.521, allocations: 2.818 MB / 0.7458 GB, free: 35.66 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003187/1.524, allocations: 1.078 MB / 0.7469 GB, free: 35.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005174/1.529, allocations: 1.588 MB / 0.7484 GB, free: 35.31 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0036/1.533, allocations: 4.383 MB / 0.7527 GB, free: 31.44 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00644/1.539, allocations: 0.4946 MB / 0.7532 GB, free: 31.04 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001052/1.54, allocations: 419.2 kB / 0.7536 GB, free: 30.64 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 662 * Number of states: 0 () * Number of discrete variables: 45 (damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (845): * Single equations (assignments): 836 * 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.003643/1.544, allocations: 2.208 MB / 0.7557 GB, free: 28.7 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006542/1.545, allocations: 379.1 kB / 0.7561 GB, free: 28.32 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005403/1.55, allocations: 3.252 MB / 0.7593 GB, free: 25.73 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004229/1.554, allocations: 2.722 MB / 0.7619 GB, free: 23.54 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.233e-05/1.554, allocations: 0 / 0.7619 GB, free: 23.54 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-05/1.554, allocations: 12.48 kB / 0.7619 GB, free: 23.54 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01595/1.57, allocations: 10.35 MB / 0.772 GB, free: 15.07 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.08e-05/1.57, allocations: 16.25 kB / 0.7721 GB, free: 15.05 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001373/1.572, allocations: 367.6 kB / 0.7724 GB, free: 14.75 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002532/1.574, allocations: 0.9722 MB / 0.7734 GB, free: 14.11 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001965/1.574, allocations: 63.55 kB / 0.7734 GB, free: 14.05 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003701/1.578, allocations: 4.611 MB / 0.7779 GB, free: 9.75 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006414/1.579, allocations: 1.471 MB / 0.7794 GB, free: 8.199 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00745/1.586, allocations: 5.879 MB / 0.7851 GB, free: 2.926 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001078/1.587, allocations: 452 kB / 0.7855 GB, free: 2.477 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003904/1.588, allocations: 57.16 kB / 0.7856 GB, free: 2.426 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001617/1.589, allocations: 178.7 kB / 0.7858 GB, free: 2.309 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002808/1.59, allocations: 178.5 kB / 0.7859 GB, free: 2.188 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001365/1.59, allocations: 75.28 kB / 0.786 GB, free: 2.117 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003845/1.594, allocations: 2.621 MB / 0.7886 GB, free: 0 / 442.7 MB Notification: Performance of sort global known variables: time 1.81e-07/1.594, allocations: 4.172 kB / 0.7886 GB, free: 0 / 442.7 MB Notification: Performance of remove unused functions: time 0.008709/1.602, allocations: 1.372 MB / 0.7899 GB, free: 15.32 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 61 * Number of states: 14 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],p2.s,p2.v) * 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 (179): * Single equations (assignments): 172 * 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.0005777/1.603, allocations: 235 kB / 0.7901 GB, free: 15.11 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0105/1.614, allocations: 5.865 MB / 0.7959 GB, free: 9.973 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.567e-05/1.614, allocations: 4 kB / 0.7959 GB, free: 9.969 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003905/1.618, allocations: 2.178 MB / 0.798 GB, free: 8.059 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01133/1.629, allocations: 491.3 kB / 0.7984 GB, free: 7.633 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02451/1.653, allocations: 13.05 MB / 0.8112 GB, free: 10.58 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004112/1.658, allocations: 3.458 MB / 0.8146 GB, free: 7.117 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001136/1.659, allocations: 327.4 kB / 0.8149 GB, free: 6.797 MB / 474.7 MB Notification: Performance of SimCode: time 1.252e-06/1.659, allocations: 0 / 0.8149 GB, free: 6.797 MB / 474.7 MB Notification: Performance of Templates: time 0.3468/2.006, allocations: 139.5 MB / 0.9511 GB, free: 91.13 MB / 0.4948 GB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringDamperSystem/SpringDamperSystem.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches