Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_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_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001224/0.001224, allocations: 198.9 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.198/1.198, allocations: 227.2 MB / 245 MB, free: 5.891 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008184/0.0008186, allocations: 100.8 kB / 297.3 MB, free: 5.98 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002131/0.0002131, allocations: 4 kB / 357.9 MB, free: 9.336 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1945/0.1948, allocations: 51.49 MB / 409.4 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1105/0.3053, allocations: 99.49 MB / 0.497 GB, free: 7.07 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002325/0.3055, allocations: 91.95 kB / 0.4971 GB, free: 6.98 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3851/0.6907, allocations: 97.23 MB / 0.592 GB, free: 17.87 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.6907, allocations: 0 / 0.592 GB, free: 17.87 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001749/0.6909, allocations: 91.98 kB / 0.5921 GB, free: 17.78 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.01549/0.7064, allocations: 5.045 MB / 0.597 GB, free: 12.66 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.7065, allocations: 12.03 kB / 0.597 GB, free: 12.65 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01202/0.7185, allocations: 2.747 MB / 0.5997 GB, free: 9.891 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01188/0.7304, allocations: 4.689 MB / 0.6043 GB, free: 5.137 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003417/0.7308, allocations: 369.4 kB / 0.6047 GB, free: 4.773 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002162/0.733, allocations: 479.8 kB / 0.6051 GB, free: 4.305 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02721/0.7602, allocations: 12.67 MB / 0.6175 GB, free: 6.473 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002496/0.7605, allocations: 67.33 kB / 0.6175 GB, free: 6.406 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001663/0.7621, allocations: 235.9 kB / 0.6178 GB, free: 6.176 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001638/0.7638, allocations: 1.202 MB / 0.6189 GB, free: 4.973 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02092/0.7847, allocations: 10.41 MB / 0.6291 GB, free: 10.54 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2576/1.042, allocations: 52.87 MB / 0.6807 GB, free: 60.79 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009406/1.052, allocations: 4.541 MB / 0.6852 GB, free: 59.84 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0118/1.064, allocations: 8.275 MB / 0.6933 GB, free: 57.25 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.832e-05/1.064, allocations: 51.12 kB / 0.6933 GB, free: 57.21 MB / 442.7 MB Notification: Performance of pre-optimization done (n=183): time 4.729e-06/1.064, allocations: 0 / 0.6933 GB, free: 57.21 MB / 442.7 MB Notification: Performance of matching and sorting (n=205): time 0.03326/1.097, allocations: 16.08 MB / 0.709 GB, free: 53.59 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0008908/1.098, allocations: 1.614 MB / 0.7106 GB, free: 52.05 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004549/1.102, allocations: 3.767 MB / 0.7143 GB, free: 51.68 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001597/1.103, allocations: 54.08 kB / 0.7143 GB, free: 51.65 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001589/1.104, allocations: 3.42 MB / 0.7177 GB, free: 49.79 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000511/1.105, allocations: 0.7988 MB / 0.7184 GB, free: 49.34 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002663/1.105, allocations: 131.4 kB / 0.7186 GB, free: 49.34 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002842/1.105, allocations: 0.5872 MB / 0.7191 GB, free: 49.03 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003436/1.109, allocations: 2.248 MB / 0.7213 GB, free: 49.01 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00411/1.113, allocations: 6.329 MB / 0.7275 GB, free: 43.74 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004237/1.117, allocations: 3.654 MB / 0.7311 GB, free: 43.23 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.696e-05/1.117, allocations: 41.78 kB / 0.7311 GB, free: 43.23 MB / 442.7 MB Notification: Performance of matching and sorting (n=883) (initialization): time 0.01273/1.13, allocations: 9.096 MB / 0.74 GB, free: 40.76 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.297e-05/1.13, allocations: 68.16 kB / 0.7401 GB, free: 40.76 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004462/1.134, allocations: 2.82 MB / 0.7428 GB, free: 39.95 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002835/1.137, allocations: 1.086 MB / 0.7439 GB, free: 39.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003912/1.141, allocations: 1.592 MB / 0.7454 GB, free: 39.61 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003456/1.145, allocations: 4.458 MB / 0.7498 GB, free: 36.52 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004487/1.149, allocations: 0.489 MB / 0.7503 GB, free: 36.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004365/1.15, allocations: 413.2 kB / 0.7507 GB, free: 36.34 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.002993/1.153, allocations: 2.209 MB / 0.7528 GB, free: 34.83 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005694/1.153, allocations: 382.7 kB / 0.7532 GB, free: 34.45 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005414/1.159, allocations: 3.256 MB / 0.7564 GB, free: 31.86 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004076/1.163, allocations: 2.715 MB / 0.759 GB, free: 29.68 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/1.163, allocations: 7.875 kB / 0.759 GB, free: 29.68 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.585e-05/1.163, allocations: 13.7 kB / 0.759 GB, free: 29.68 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01644/1.179, allocations: 10.34 MB / 0.7691 GB, free: 21.25 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.678e-05/1.179, allocations: 16 kB / 0.7691 GB, free: 21.23 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001624/1.181, allocations: 369.5 kB / 0.7695 GB, free: 20.93 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002555/1.183, allocations: 0.974 MB / 0.7704 GB, free: 20.29 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001355/1.184, allocations: 68.81 kB / 0.7705 GB, free: 20.24 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003713/1.187, allocations: 4.687 MB / 0.7751 GB, free: 15.88 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007237/1.188, allocations: 1.492 MB / 0.7765 GB, free: 14.32 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008121/1.196, allocations: 7.503 MB / 0.7839 GB, free: 7.066 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001008/1.197, allocations: 446.6 kB / 0.7843 GB, free: 6.625 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003426/1.198, allocations: 55.52 kB / 0.7843 GB, free: 6.574 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00154/1.199, allocations: 179.2 kB / 0.7845 GB, free: 6.457 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002607/1.199, allocations: 177.2 kB / 0.7847 GB, free: 6.336 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001294/1.2, allocations: 71.75 kB / 0.7848 GB, free: 6.27 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003576/1.203, allocations: 2.616 MB / 0.7873 GB, free: 4.121 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.6e-07/1.203, allocations: 0 / 0.7873 GB, free: 4.121 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004422/1.208, allocations: 1.16 MB / 0.7884 GB, free: 2.977 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.0004048/1.208, allocations: 228.4 kB / 0.7887 GB, free: 2.766 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008666/1.217, allocations: 5.889 MB / 0.7944 GB, free: 13.71 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.696e-06/1.217, allocations: 0 / 0.7944 GB, free: 13.71 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003471/1.22, allocations: 2.177 MB / 0.7965 GB, free: 11.8 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002296/1.222, allocations: 467.6 kB / 0.797 GB, free: 11.4 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0191/1.242, allocations: 12.53 MB / 0.8092 GB, free: 15.91 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004041/1.246, allocations: 3.549 MB / 0.8127 GB, free: 12.37 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.005058/1.251, allocations: 2.027 MB / 0.8147 GB, free: 10.35 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005902/1.251, allocations: 279.3 kB / 0.8149 GB, free: 10.07 MB / 474.7 MB Notification: Performance of SimCode: time 8.32e-07/1.251, allocations: 0 / 0.8149 GB, free: 10.07 MB / 474.7 MB Notification: Performance of Templates: time 0.06228/1.314, allocations: 36.96 MB / 0.851 GB, free: 5.773 MB / 0.4948 GB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches