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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001598/0.001598, allocations: 106 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001858/0.001858, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.406/1.406, allocations: 227.4 MB / 246.8 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001785/0.001785, allocations: 59.2 kB / 307 MB, free: 0.5547 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1034, allocations: 50.54 MB / 357.5 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01425/0.1177, allocations: 11.99 MB / 369.5 MB, free: 1.973 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1798/0.2976, allocations: 4.194 MB / 373.7 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001692/0.2993, allocations: 70 kB / 373.8 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005054/0.3044, allocations: 2.751 MB / 376.5 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005461/0.3099, allocations: 1.926 MB / 378.5 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002021/0.3119, allocations: 0.8122 MB / 379.3 MB, free: 8.84 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007557/0.3195, allocations: 4.676 MB / 383.9 MB, free: 7.527 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004717/0.3243, allocations: 3.555 MB / 387.5 MB, free: 6.055 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002728/0.327, allocations: 1.68 MB / 389.2 MB, free: 5.219 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003309/0.3303, allocations: 2.33 MB / 391.5 MB, free: 3.945 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001032/0.3314, allocations: 352.5 kB / 391.9 MB, free: 3.945 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002719/0.3341, allocations: 1.258 MB / 393.1 MB, free: 3.5 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001706/0.3358, allocations: 2.082 MB / 395.2 MB, free: 2.301 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002392/0.3382, allocations: 2.405 MB / 397.6 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00895/0.3472, allocations: 7.193 MB / 404.8 MB, free: 10.02 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.3472, allocations: 0 / 404.8 MB, free: 10.02 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3472, allocations: 0 / 404.8 MB, free: 10.02 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002182/0.3475, allocations: 8 kB / 404.8 MB, free: 10.02 MB / 318.1 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.01128/0.3588, allocations: 5.233 MB / 410 MB, free: 4.828 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/0.3588, allocations: 8.031 kB / 410 MB, free: 4.82 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008367/0.3672, allocations: 2.173 MB / 412.2 MB, free: 2.641 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004779/0.372, allocations: 2.422 MB / 414.6 MB, free: 188 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002635/0.3723, allocations: 287 kB / 414.9 MB, free: 15.95 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009797/0.3733, allocations: 425.4 kB / 415.3 MB, free: 15.58 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02673/0.4, allocations: 12.26 MB / 427.6 MB, free: 2.625 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001838/0.4002, allocations: 47.53 kB / 427.6 MB, free: 2.578 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009489/0.4012, allocations: 176.5 kB / 427.8 MB, free: 2.445 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003657/0.4049, allocations: 2.166 MB / 430 MB, free: 284 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02534/0.4302, allocations: 10.25 MB / 440.2 MB, free: 6.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06471/0.495, allocations: 44.32 MB / 484.5 MB, free: 8.684 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01273/0.5077, allocations: 4.653 MB / 489.2 MB, free: 3.832 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002825/0.5106, allocations: 1.72 MB / 490.9 MB, free: 2.105 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01357/0.5242, allocations: 8.304 MB / 499.2 MB, free: 9.457 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.872e-05/0.5243, allocations: 55.81 kB / 499.3 MB, free: 9.395 MB / 414.1 MB Notification: Performance of pre-optimization done (n=183): time 4.658e-06/0.5243, allocations: 0 / 499.3 MB, free: 9.395 MB / 414.1 MB Notification: Performance of matching and sorting (n=205): time 0.04658/0.5709, allocations: 16.07 MB / 0.5033 GB, free: 9.152 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001838/0.5728, allocations: 1.692 MB / 0.5049 GB, free: 7.281 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007608/0.5804, allocations: 4.19 MB / 0.509 GB, free: 3.07 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004353/0.5809, allocations: 56.83 kB / 0.5091 GB, free: 3.012 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002736/0.5836, allocations: 3.399 MB / 0.5124 GB, free: 15.61 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001059/0.5847, allocations: 0.8123 MB / 0.5132 GB, free: 14.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001843/0.5866, allocations: 1.356 MB / 0.5145 GB, free: 13.44 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.5867, allocations: 305.1 kB / 0.5148 GB, free: 13.14 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003696/0.5904, allocations: 2.278 MB / 0.517 GB, free: 10.86 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007103/0.5975, allocations: 6.418 MB / 0.5233 GB, free: 2.395 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.178/0.7755, allocations: 9.338 MB / 0.5324 GB, free: 130.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001533/0.7757, allocations: 41.5 kB / 0.5324 GB, free: 130.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.02436/0.8001, allocations: 10.17 MB / 0.5424 GB, free: 126.9 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000113/0.8002, allocations: 72.06 kB / 0.5424 GB, free: 126.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01163/0.8118, allocations: 3.896 MB / 0.5462 GB, free: 126 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009988/0.8219, allocations: 2.261 MB / 0.5485 GB, free: 125.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005033/0.8269, allocations: 1.589 MB / 0.55 GB, free: 125.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007847/0.8348, allocations: 6.637 MB / 0.5565 GB, free: 122 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004999/0.8398, allocations: 434.8 kB / 0.5569 GB, free: 121.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001112/0.841, allocations: 414 kB / 0.5573 GB, free: 121.8 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * 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 (856): * Single equations (assignments): 847 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004041/0.845, allocations: 2.225 MB / 0.5595 GB, free: 120.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009734/0.846, allocations: 371.8 kB / 0.5598 GB, free: 120.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006372/0.8524, allocations: 3.318 MB / 0.5631 GB, free: 119.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004727/0.8572, allocations: 2.78 MB / 0.5658 GB, free: 117.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.578e-05/0.8572, allocations: 4 kB / 0.5658 GB, free: 117.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.377e-05/0.8572, allocations: 7.969 kB / 0.5658 GB, free: 117.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01628/0.8735, allocations: 10.37 MB / 0.5759 GB, free: 106.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.393e-05/0.8736, allocations: 16 kB / 0.5759 GB, free: 106.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001475/0.875, allocations: 380.1 kB / 0.5763 GB, free: 106.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002726/0.8778, allocations: 0.9786 MB / 0.5773 GB, free: 105.4 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002581/0.8781, allocations: 67.97 kB / 0.5773 GB, free: 105.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003975/0.882, allocations: 4.903 MB / 0.5821 GB, free: 100.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006965/0.8828, allocations: 1.572 MB / 0.5836 GB, free: 98.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007652/0.8904, allocations: 5.961 MB / 0.5895 GB, free: 92.52 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007809/0.8912, allocations: 440 kB / 0.5899 GB, free: 92.06 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005537/0.8918, allocations: 51.98 kB / 0.5899 GB, free: 92.01 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001732/0.8935, allocations: 155.8 kB / 0.5901 GB, free: 91.86 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002958/0.8938, allocations: 172.4 kB / 0.5902 GB, free: 91.69 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001312/0.894, allocations: 79.91 kB / 0.5903 GB, free: 91.61 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003183/0.8972, allocations: 2.589 MB / 0.5928 GB, free: 89.02 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.8972, allocations: 4 kB / 0.5929 GB, free: 89.01 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00475/0.9019, allocations: 1.142 MB / 0.594 GB, free: 87.88 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * 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 (180): * Single equations (assignments): 173 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004287/0.9024, allocations: 205.3 kB / 0.5942 GB, free: 87.67 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009672/0.9121, allocations: 6.708 MB / 0.6007 GB, free: 80.95 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.329e-05/0.9121, allocations: 0 / 0.6007 GB, free: 80.95 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003504/0.9156, allocations: 2.223 MB / 0.6029 GB, free: 78.66 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002855/0.9185, allocations: 0.4998 MB / 0.6034 GB, free: 78.17 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01345/0.932, allocations: 10.75 MB / 0.6139 GB, free: 67.23 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002672/0.9347, allocations: 3.45 MB / 0.6172 GB, free: 63.75 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004298/0.939, allocations: 2.018 MB / 0.6192 GB, free: 61.72 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006117/0.9396, allocations: 271.4 kB / 0.6195 GB, free: 61.46 MB / 446.1 MB Notification: Performance of SimCode: time 1.012e-06/0.9396, allocations: 0 / 0.6195 GB, free: 61.46 MB / 446.1 MB Notification: Performance of Templates: time 0.06515/1.005, allocations: 41.87 MB / 0.6604 GB, free: 19.8 MB / 446.1 MB 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.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringDamperSystem/SpringDamperSystem.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches