Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.frame_a.r_0.1.|body.frame_a.r_0.2.|body.frame_a.r_0.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.|body.w_a.1.|body.w_a.2.|body.w_a.3.",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.frame_a.r_0.1.|body.frame_a.r_0.2.|body.frame_a.r_0.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.|body.w_a.1.|body.w_a.2.|body.w_a.3.",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001283/0.001283, allocations: 202.5 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.217/1.217, allocations: 227.2 MB / 245 MB, free: 7.574 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008886/0.0008887, allocations: 104.8 kB / 297.3 MB, free: 6.195 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002178/0.0002178, allocations: 4 kB / 357.9 MB, free: 9.551 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2094/0.2096, allocations: 51.49 MB / 409.4 MB, free: 26.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1037/0.3134, allocations: 94.15 MB / 0.4918 GB, free: 12.45 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001883/0.3136, allocations: 89.33 kB / 0.4919 GB, free: 12.37 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3202/0.6339, allocations: 59.58 MB / 0.55 GB, free: 60.85 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.6339, allocations: 3.938 kB / 0.55 GB, free: 60.84 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.655e-05/0.634, allocations: 48 kB / 0.5501 GB, free: 60.8 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: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.00902/0.643, allocations: 3.171 MB / 0.5532 GB, free: 57.57 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/0.6431, allocations: 8.031 kB / 0.5532 GB, free: 57.56 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007699/0.6508, allocations: 2.118 MB / 0.5553 GB, free: 55.43 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007485/0.6583, allocations: 2.983 MB / 0.5582 GB, free: 52.4 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001145/0.6584, allocations: 196.9 kB / 0.5584 GB, free: 52.2 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005568/0.659, allocations: 251.9 kB / 0.5586 GB, free: 51.96 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008484/0.6675, allocations: 7.031 MB / 0.5655 GB, free: 44.18 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.423e-05/0.6676, allocations: 43.53 kB / 0.5655 GB, free: 44.13 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003017/0.6679, allocations: 127.9 kB / 0.5656 GB, free: 44.01 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007563/0.6687, allocations: 0.715 MB / 0.5663 GB, free: 43.29 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00863/0.6773, allocations: 6.102 MB / 0.5723 GB, free: 37.19 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02462/0.7019, allocations: 32.69 MB / 0.6042 GB, free: 3.395 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005348/0.7073, allocations: 2.663 MB / 0.6068 GB, free: 0.5859 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005464/0.7128, allocations: 3.9 MB / 0.6106 GB, free: 12.43 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.327e-05/0.7129, allocations: 43.12 kB / 0.6107 GB, free: 12.38 MB / 394.7 MB Notification: Performance of pre-optimization done (n=112): time 4.749e-06/0.7129, allocations: 0 / 0.6107 GB, free: 12.38 MB / 394.7 MB Notification: Performance of matching and sorting (n=125): time 0.02462/0.7375, allocations: 10.53 MB / 0.6209 GB, free: 1.633 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001135/0.7387, allocations: 1.592 MB / 0.6225 GB, free: 15.87 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004531/0.7432, allocations: 2.464 MB / 0.6249 GB, free: 13.39 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001743/0.7434, allocations: 41.7 kB / 0.6249 GB, free: 13.34 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001506/0.7449, allocations: 2.079 MB / 0.627 GB, free: 11.23 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005399/0.7455, allocations: 0.5093 MB / 0.6275 GB, free: 10.71 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003045/0.7458, allocations: 84 kB / 0.6276 GB, free: 10.63 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003131/0.7461, allocations: 0.4961 MB / 0.628 GB, free: 10.12 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002543/0.7487, allocations: 1.625 MB / 0.6296 GB, free: 8.492 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005159/0.7539, allocations: 4.399 MB / 0.6339 GB, free: 2.691 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004397/0.7583, allocations: 2.633 MB / 0.6365 GB, free: 56 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.412e-05/0.7584, allocations: 28 kB / 0.6365 GB, free: 28 kB / 410.7 MB Notification: Performance of matching and sorting (n=589) (initialization): time 0.01364/0.772, allocations: 7.033 MB / 0.6434 GB, free: 8.977 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.622e-05/0.7721, allocations: 51.95 kB / 0.6434 GB, free: 8.926 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005689/0.7778, allocations: 2.525 MB / 0.6459 GB, free: 6.391 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004936/0.7827, allocations: 1.498 MB / 0.6474 GB, free: 4.883 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002994/0.7858, allocations: 1.006 MB / 0.6483 GB, free: 3.875 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00975/0.7955, allocations: 7.445 MB / 0.6556 GB, free: 12.16 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003608/0.7992, allocations: 371.6 kB / 0.656 GB, free: 11.79 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006675/0.7998, allocations: 280 kB / 0.6562 GB, free: 11.52 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 450 * Number of states: 0 () * Number of discrete variables: 21 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (541): * Single equations (assignments): 533 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002729/0.8026, allocations: 1.427 MB / 0.6576 GB, free: 10.08 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004883/0.8031, allocations: 233 kB / 0.6579 GB, free: 9.848 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006425/0.8095, allocations: 2.842 MB / 0.6606 GB, free: 6.98 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005577/0.8151, allocations: 2.501 MB / 0.6631 GB, free: 4.461 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.312e-05/0.8151, allocations: 4 kB / 0.6631 GB, free: 4.457 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.343e-05/0.8152, allocations: 7.969 kB / 0.6631 GB, free: 4.449 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2257/1.041, allocations: 6.871 MB / 0.6698 GB, free: 118.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.155e-05/1.041, allocations: 0 / 0.6698 GB, free: 118.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009006/1.042, allocations: 177.7 kB / 0.67 GB, free: 118.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004508/1.046, allocations: 1.43 MB / 0.6714 GB, free: 118.7 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002482/1.047, allocations: 29.66 kB / 0.6714 GB, free: 118.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008777/1.055, allocations: 7.551 MB / 0.6788 GB, free: 116.1 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006608/1.056, allocations: 1.46 MB / 0.6802 GB, free: 114.7 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00814/1.064, allocations: 4.951 MB / 0.685 GB, free: 114.1 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008274/1.065, allocations: 304.2 kB / 0.6853 GB, free: 114 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005552/1.066, allocations: 29.08 kB / 0.6853 GB, free: 114 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001451/1.067, allocations: 130.5 kB / 0.6855 GB, free: 114 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000232/1.067, allocations: 76.75 kB / 0.6855 GB, free: 114 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001117/1.068, allocations: 38 kB / 0.6856 GB, free: 114 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002424/1.07, allocations: 1.714 MB / 0.6872 GB, free: 113.9 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.3e-07/1.07, allocations: 0 / 0.6872 GB, free: 113.9 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003286/1.073, allocations: 0.7738 MB / 0.688 GB, free: 113.9 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.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],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 (83): * Single equations (assignments): 77 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003614/1.074, allocations: 176 kB / 0.6882 GB, free: 113.8 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005934/1.08, allocations: 4.319 MB / 0.6924 GB, free: 113.4 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/1.08, allocations: 0 / 0.6924 GB, free: 113.4 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002528/1.082, allocations: 1.723 MB / 0.6941 GB, free: 112.7 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001105/1.083, allocations: 252.8 kB / 0.6943 GB, free: 112.6 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01062/1.094, allocations: 7.619 MB / 0.7018 GB, free: 109 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00224/1.096, allocations: 2.353 MB / 0.7041 GB, free: 107.9 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002814/1.099, allocations: 1.406 MB / 0.7054 GB, free: 107.8 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003438/1.099, allocations: 175.2 kB / 0.7056 GB, free: 107.8 MB / 442.7 MB Notification: Performance of SimCode: time 9.12e-07/1.099, allocations: 0 / 0.7056 GB, free: 107.8 MB / 442.7 MB Notification: Performance of Templates: time 0.03733/1.137, allocations: 26.56 MB / 0.7315 GB, free: 91.45 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches