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.001407/0.001407, allocations: 118.2 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001744/0.001744, allocations: 198 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.542/1.542, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001303/0.001303, allocations: 59.91 kB / 358.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2376/0.2389, allocations: 50.54 MB / 409.3 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01217/0.2511, allocations: 11.97 MB / 421.2 MB, free: 5.516 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008231/0.2594, allocations: 4.207 MB / 425.4 MB, free: 1.293 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001218/0.2607, allocations: 67.81 kB / 425.5 MB, free: 1.227 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004773/0.2655, allocations: 2.749 MB / 428.2 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004488/0.27, allocations: 1.98 MB / 430.2 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001602/0.2716, allocations: 0.815 MB / 431 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005547/0.2772, allocations: 4.679 MB / 435.7 MB, free: 6.977 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003887/0.2811, allocations: 3.548 MB / 439.3 MB, free: 3.375 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002271/0.2834, allocations: 1.674 MB / 440.9 MB, free: 1.695 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002813/0.2862, allocations: 2.332 MB / 443.3 MB, free: 15.35 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008841/0.2871, allocations: 352 kB / 443.6 MB, free: 15.01 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00231/0.2894, allocations: 1.26 MB / 444.9 MB, free: 13.75 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001895/0.2913, allocations: 2.092 MB / 447 MB, free: 11.65 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002756/0.2941, allocations: 2.4 MB / 449.4 MB, free: 9.238 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007728/0.3018, allocations: 7.475 MB / 456.8 MB, free: 1.738 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.3019, allocations: 0 / 456.8 MB, free: 1.738 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.3019, allocations: 0 / 456.8 MB, free: 1.738 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001979/0.3021, allocations: 3.984 kB / 456.8 MB, free: 1.734 MB / 366.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.009544/0.3116, allocations: 5.243 MB / 462.1 MB, free: 12.42 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.178e-05/0.3117, allocations: 8.031 kB / 462.1 MB, free: 12.41 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007996/0.3197, allocations: 2.167 MB / 464.3 MB, free: 10.24 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005647/0.3254, allocations: 2.473 MB / 466.7 MB, free: 7.703 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000256/0.3257, allocations: 278.8 kB / 467 MB, free: 7.43 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001151/0.3268, allocations: 431.6 kB / 467.4 MB, free: 7.008 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02276/0.3496, allocations: 12.26 MB / 479.7 MB, free: 9.934 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001689/0.3498, allocations: 55.5 kB / 479.7 MB, free: 9.879 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008636/0.3507, allocations: 171.8 kB / 479.9 MB, free: 9.711 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003253/0.3539, allocations: 2.158 MB / 482.1 MB, free: 7.551 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02184/0.3758, allocations: 10.24 MB / 492.3 MB, free: 13.29 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05535/0.4312, allocations: 44.12 MB / 0.5239 GB, free: 15.92 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01108/0.4423, allocations: 4.667 MB / 0.5284 GB, free: 11.05 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00241/0.4447, allocations: 1.714 MB / 0.5301 GB, free: 9.328 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01151/0.4563, allocations: 8.302 MB / 0.5382 GB, free: 0.6211 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.665e-05/0.4563, allocations: 55.88 kB / 0.5383 GB, free: 0.5586 MB / 462.1 MB Notification: Performance of pre-optimization done (n=183): time 4.148e-06/0.4563, allocations: 3.938 kB / 0.5383 GB, free: 0.5547 MB / 462.1 MB Notification: Performance of matching and sorting (n=205): time 0.2703/0.7267, allocations: 16.06 MB / 0.5539 GB, free: 121.1 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001016/0.7278, allocations: 1.689 MB / 0.5556 GB, free: 119.4 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004669/0.7324, allocations: 4.195 MB / 0.5597 GB, free: 117.1 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002613/0.7327, allocations: 53.7 kB / 0.5597 GB, free: 117 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001366/0.7341, allocations: 3.393 MB / 0.5631 GB, free: 113.9 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005874/0.7347, allocations: 0.8045 MB / 0.5638 GB, free: 113.1 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001327/0.736, allocations: 1.357 MB / 0.5652 GB, free: 111.8 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.173e-05/0.7361, allocations: 309.1 kB / 0.5655 GB, free: 111.5 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0027/0.7388, allocations: 2.281 MB / 0.5677 GB, free: 109.2 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003883/0.7427, allocations: 6.417 MB / 0.574 GB, free: 100.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007388/0.7501, allocations: 9.347 MB / 0.5831 GB, free: 89.39 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.004e-05/0.7502, allocations: 44 kB / 0.5831 GB, free: 89.34 MB / 462.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.01886/0.7691, allocations: 10.17 MB / 0.5931 GB, free: 79.16 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.769e-05/0.7692, allocations: 68 kB / 0.5931 GB, free: 79.09 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009731/0.7789, allocations: 3.897 MB / 0.5969 GB, free: 75.19 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009079/0.788, allocations: 2.258 MB / 0.5991 GB, free: 72.91 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004838/0.7929, allocations: 1.591 MB / 0.6007 GB, free: 71.32 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00723/0.8002, allocations: 6.622 MB / 0.6072 GB, free: 64.42 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004679/0.8049, allocations: 451.1 kB / 0.6076 GB, free: 63.98 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007361/0.8056, allocations: 416 kB / 0.608 GB, free: 63.58 MB / 462.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.002755/0.8084, allocations: 2.205 MB / 0.6101 GB, free: 61.36 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005336/0.8089, allocations: 371.2 kB / 0.6105 GB, free: 61 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005377/0.8143, allocations: 3.317 MB / 0.6137 GB, free: 57.65 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004362/0.8187, allocations: 2.776 MB / 0.6164 GB, free: 54.86 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.24e-05/0.8187, allocations: 0 / 0.6164 GB, free: 54.86 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.965e-05/0.8188, allocations: 14.88 kB / 0.6165 GB, free: 54.84 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0147/0.8335, allocations: 10.37 MB / 0.6266 GB, free: 44.25 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.079e-05/0.8335, allocations: 16.05 kB / 0.6266 GB, free: 44.23 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001393/0.8349, allocations: 380.1 kB / 0.627 GB, free: 43.86 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002583/0.8375, allocations: 0.9786 MB / 0.6279 GB, free: 42.87 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001624/0.8377, allocations: 75.84 kB / 0.628 GB, free: 42.79 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003812/0.8415, allocations: 4.904 MB / 0.6328 GB, free: 37.61 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006484/0.8422, allocations: 1.561 MB / 0.6343 GB, free: 35.9 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007377/0.8496, allocations: 5.966 MB / 0.6401 GB, free: 29.73 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008575/0.8505, allocations: 444 kB / 0.6405 GB, free: 29.27 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003542/0.8508, allocations: 59.92 kB / 0.6406 GB, free: 29.21 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001502/0.8523, allocations: 151.8 kB / 0.6407 GB, free: 29.06 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002766/0.8526, allocations: 176 kB / 0.6409 GB, free: 28.89 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001349/0.8528, allocations: 79.97 kB / 0.641 GB, free: 28.82 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003076/0.8558, allocations: 2.585 MB / 0.6435 GB, free: 26.22 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.8559, allocations: 0 / 0.6435 GB, free: 26.22 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005259/0.8611, allocations: 1.142 MB / 0.6446 GB, free: 25.09 MB / 462.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.0004566/0.8616, allocations: 216.9 kB / 0.6448 GB, free: 24.87 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008887/0.8705, allocations: 6.062 MB / 0.6508 GB, free: 18.78 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.354e-05/0.8705, allocations: 3.938 kB / 0.6508 GB, free: 18.78 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003509/0.8741, allocations: 2.214 MB / 0.6529 GB, free: 16.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00311/0.8772, allocations: 0.4917 MB / 0.6534 GB, free: 16.01 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01476/0.892, allocations: 10.62 MB / 0.6638 GB, free: 5.191 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002841/0.8949, allocations: 3.454 MB / 0.6672 GB, free: 1.699 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003943/0.8988, allocations: 2.022 MB / 0.6691 GB, free: 15.67 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00069/0.8995, allocations: 267.4 kB / 0.6694 GB, free: 15.41 MB / 478.1 MB Notification: Performance of SimCode: time 8.02e-07/0.8995, allocations: 0 / 0.6694 GB, free: 15.41 MB / 478.1 MB Notification: Performance of Templates: time 0.06968/0.9692, allocations: 38.18 MB / 0.7067 GB, free: 9.453 MB / 0.4981 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","/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