Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.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.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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001199/0.001198, allocations: 179.3 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: 11.84 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.0008659/0.000866, allocations: 96.19 kB / 291.5 MB, free: 10.88 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002924/0.0002923, allocations: 4 kB / 351.1 MB, free: 15.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2282/0.2285, allocations: 50.41 MB / 401.5 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1077/0.3362, allocations: 98.84 MB / 0.4886 GB, free: 13.58 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002624/0.3365, allocations: 93.05 kB / 0.4887 GB, free: 13.49 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3993/0.7358, allocations: 95 MB / 0.5815 GB, free: 30.96 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.935e-06/0.7358, allocations: 0 / 0.5815 GB, free: 30.96 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003157/0.7362, allocations: 84 kB / 0.5816 GB, free: 30.88 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.01959/0.7558, allocations: 4.936 MB / 0.5864 GB, free: 25.88 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.9e-05/0.7558, allocations: 12.03 kB / 0.5864 GB, free: 25.86 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01264/0.7685, allocations: 2.689 MB / 0.589 GB, free: 23.16 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01411/0.7827, allocations: 5.336 MB / 0.5942 GB, free: 17.76 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004312/0.7831, allocations: 361.5 kB / 0.5946 GB, free: 17.41 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002815/0.786, allocations: 479.8 kB / 0.595 GB, free: 16.94 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0311/0.8171, allocations: 12.67 MB / 0.6074 GB, free: 3.105 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003892/0.8175, allocations: 67.41 kB / 0.6075 GB, free: 3.039 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002265/0.8198, allocations: 231.9 kB / 0.6077 GB, free: 2.812 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001978/0.8218, allocations: 1.214 MB / 0.6089 GB, free: 1.594 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02651/0.8484, allocations: 10.4 MB / 0.619 GB, free: 7.172 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2935/1.142, allocations: 52.86 MB / 0.6707 GB, free: 52.9 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01003/1.152, allocations: 4.539 MB / 0.6751 GB, free: 51.96 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01321/1.165, allocations: 8.267 MB / 0.6832 GB, free: 49.31 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.659e-05/1.165, allocations: 54.3 kB / 0.6832 GB, free: 49.27 MB / 426.7 MB Notification: Performance of pre-optimization done (n=183): time 5.04e-06/1.165, allocations: 0 / 0.6832 GB, free: 49.27 MB / 426.7 MB Notification: Performance of matching and sorting (n=205): time 0.03561/1.201, allocations: 16.1 MB / 0.6989 GB, free: 45.65 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009328/1.202, allocations: 1.603 MB / 0.7005 GB, free: 44.12 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005119/1.207, allocations: 3.775 MB / 0.7042 GB, free: 43.75 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003688/1.207, allocations: 54.61 kB / 0.7042 GB, free: 43.71 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001506/1.209, allocations: 3.406 MB / 0.7076 GB, free: 41.86 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006952/1.21, allocations: 0.8052 MB / 0.7083 GB, free: 41.4 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002502/1.21, allocations: 140.6 kB / 0.7085 GB, free: 41.4 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002681/1.21, allocations: 0.5885 MB / 0.7091 GB, free: 41.09 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003077/1.213, allocations: 2.242 MB / 0.7112 GB, free: 41.07 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004432/1.218, allocations: 6.329 MB / 0.7174 GB, free: 35.73 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004906/1.223, allocations: 3.654 MB / 0.721 GB, free: 34.59 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.598e-05/1.223, allocations: 41.09 kB / 0.721 GB, free: 34.59 MB / 426.7 MB Notification: Performance of matching and sorting (n=883) (initialization): time 0.01534/1.238, allocations: 9.1 MB / 0.7299 GB, free: 32.09 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.506e-05/1.238, allocations: 67 kB / 0.73 GB, free: 32.09 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004641/1.243, allocations: 2.816 MB / 0.7327 GB, free: 31.27 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002984/1.246, allocations: 1.083 MB / 0.7338 GB, free: 31.13 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004902/1.251, allocations: 1.592 MB / 0.7353 GB, free: 30.61 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003667/1.254, allocations: 4.463 MB / 0.7397 GB, free: 26.38 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00543/1.26, allocations: 0.4901 MB / 0.7402 GB, free: 25.99 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009812/1.261, allocations: 418.1 kB / 0.7406 GB, free: 25.59 MB / 426.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.003538/1.264, allocations: 2.212 MB / 0.7427 GB, free: 23.64 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006195/1.265, allocations: 375.1 kB / 0.7431 GB, free: 23.27 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005436/1.271, allocations: 3.261 MB / 0.7463 GB, free: 20.68 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004286/1.275, allocations: 2.718 MB / 0.7489 GB, free: 18.5 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.332e-05/1.275, allocations: 7.969 kB / 0.7489 GB, free: 18.49 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.185e-05/1.275, allocations: 11.3 kB / 0.749 GB, free: 18.49 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01707/1.292, allocations: 10.33 MB / 0.759 GB, free: 10.06 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.067e-05/1.292, allocations: 12 kB / 0.7591 GB, free: 10.05 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001426/1.294, allocations: 375 kB / 0.7594 GB, free: 9.746 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002659/1.296, allocations: 0.9786 MB / 0.7604 GB, free: 9.105 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001669/1.296, allocations: 60.67 kB / 0.7604 GB, free: 9.055 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003809/1.3, allocations: 4.69 MB / 0.765 GB, free: 4.699 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006784/1.301, allocations: 1.486 MB / 0.7665 GB, free: 3.125 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0128/1.314, allocations: 7.816 MB / 0.7741 GB, free: 12.64 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001354/1.315, allocations: 445.4 kB / 0.7745 GB, free: 12.2 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000485/1.316, allocations: 65.7 kB / 0.7746 GB, free: 12.15 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001779/1.317, allocations: 180.9 kB / 0.7747 GB, free: 12.03 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002936/1.318, allocations: 173 kB / 0.7749 GB, free: 11.91 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001527/1.318, allocations: 79.31 kB / 0.775 GB, free: 11.84 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004752/1.323, allocations: 2.614 MB / 0.7775 GB, free: 9.695 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.91e-07/1.323, allocations: 0 / 0.7775 GB, free: 9.695 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006596/1.329, allocations: 1.15 MB / 0.7787 GB, free: 8.559 MB / 442.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.0005598/1.33, allocations: 232.9 kB / 0.7789 GB, free: 8.344 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01079/1.341, allocations: 5.864 MB / 0.7846 GB, free: 2.988 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.669e-05/1.341, allocations: 0 / 0.7846 GB, free: 2.988 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00413/1.345, allocations: 2.177 MB / 0.7867 GB, free: 0.7422 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003369/1.348, allocations: 459.4 kB / 0.7872 GB, free: 308 kB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02039/1.369, allocations: 12.51 MB / 0.7994 GB, free: 3.668 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003808/1.372, allocations: 3.546 MB / 0.8029 GB, free: 104 kB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.005268/1.378, allocations: 2.025 MB / 0.8048 GB, free: 14.08 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007661/1.379, allocations: 267.4 kB / 0.8051 GB, free: 13.82 MB / 474.7 MB Notification: Performance of SimCode: time 6.21e-07/1.379, allocations: 0 / 0.8051 GB, free: 13.82 MB / 474.7 MB Notification: Performance of Templates: time 0.3038/1.682, allocations: 36.97 MB / 0.8412 GB, free: 130.2 MB / 490.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringDamperSystem/SpringDamperSystem.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches