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.001216/0.001216, allocations: 118.8 kB / 17.79 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001343/0.001343, allocations: 197.2 kB / 18.73 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.343/1.343, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002081/0.002081, allocations: 55.91 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3192/0.3213, allocations: 50.54 MB / 409.3 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01196/0.3333, allocations: 11.97 MB / 421.2 MB, free: 5.559 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007454/0.3408, allocations: 4.2 MB / 425.4 MB, free: 1.344 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001149/0.342, allocations: 67.81 kB / 425.5 MB, free: 1.277 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004481/0.3465, allocations: 2.756 MB / 428.2 MB, free: 14.51 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004069/0.3506, allocations: 1.926 MB / 430.2 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001507/0.3521, allocations: 0.8111 MB / 431 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005456/0.3576, allocations: 4.69 MB / 435.7 MB, free: 7.066 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003554/0.3611, allocations: 3.551 MB / 439.2 MB, free: 3.461 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001991/0.3631, allocations: 1.67 MB / 440.9 MB, free: 1.785 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002538/0.3657, allocations: 2.329 MB / 443.2 MB, free: 15.45 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005336/0.3663, allocations: 355.9 kB / 443.6 MB, free: 15.1 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001972/0.3682, allocations: 1.26 MB / 444.8 MB, free: 13.84 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00158/0.3698, allocations: 2.092 MB / 446.9 MB, free: 11.74 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002523/0.3724, allocations: 2.408 MB / 449.3 MB, free: 9.32 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007437/0.3798, allocations: 7.467 MB / 456.8 MB, free: 1.828 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.3798, allocations: 0 / 456.8 MB, free: 1.828 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.3798, allocations: 0 / 456.8 MB, free: 1.828 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001446/0.38, allocations: 0 / 456.8 MB, free: 1.828 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.008424/0.3884, allocations: 5.245 MB / 462 MB, free: 12.51 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.578e-05/0.3885, allocations: 8.031 kB / 462 MB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007937/0.3964, allocations: 2.171 MB / 464.2 MB, free: 10.32 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00462/0.4011, allocations: 2.473 MB / 466.7 MB, free: 7.789 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001922/0.4013, allocations: 274.8 kB / 467 MB, free: 7.52 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009364/0.4022, allocations: 427.6 kB / 467.4 MB, free: 7.102 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02131/0.4235, allocations: 12.27 MB / 479.6 MB, free: 10.02 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001131/0.4237, allocations: 47.53 kB / 479.7 MB, free: 9.973 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004131/0.4241, allocations: 171.8 kB / 479.9 MB, free: 9.805 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003104/0.4272, allocations: 2.166 MB / 482 MB, free: 7.637 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02171/0.449, allocations: 10.24 MB / 492.3 MB, free: 13.38 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05108/0.5001, allocations: 44.12 MB / 0.5238 GB, free: 12 kB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01178/0.5119, allocations: 4.653 MB / 0.5284 GB, free: 11.15 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002644/0.5146, allocations: 1.727 MB / 0.53 GB, free: 9.422 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01265/0.5273, allocations: 8.294 MB / 0.5381 GB, free: 0.7227 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.382e-05/0.5274, allocations: 51.88 kB / 0.5382 GB, free: 0.6641 MB / 462.1 MB Notification: Performance of pre-optimization done (n=183): time 4.739e-06/0.5274, allocations: 0 / 0.5382 GB, free: 0.6641 MB / 462.1 MB Notification: Performance of matching and sorting (n=205): time 0.277/0.8044, allocations: 16.07 MB / 0.5539 GB, free: 120.3 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009138/0.8054, allocations: 1.687 MB / 0.5555 GB, free: 118.6 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004412/0.8098, allocations: 4.19 MB / 0.5596 GB, free: 116.1 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003006/0.8101, allocations: 53.7 kB / 0.5597 GB, free: 116.1 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001422/0.8116, allocations: 3.393 MB / 0.563 GB, free: 113 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007417/0.8123, allocations: 0.8045 MB / 0.5638 GB, free: 112.2 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001293/0.8136, allocations: 1.368 MB / 0.5651 GB, free: 110.8 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.395e-05/0.8137, allocations: 301.1 kB / 0.5654 GB, free: 110.5 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002683/0.8163, allocations: 2.282 MB / 0.5676 GB, free: 108.2 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003781/0.8201, allocations: 6.416 MB / 0.5739 GB, free: 99.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007888/0.828, allocations: 9.352 MB / 0.583 GB, free: 88.41 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.295e-05/0.8282, allocations: 43 kB / 0.5831 GB, free: 88.38 MB / 462.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.02075/0.8489, allocations: 10.17 MB / 0.593 GB, free: 78.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.361e-05/0.8491, allocations: 68 kB / 0.5931 GB, free: 78.13 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01006/0.8591, allocations: 3.901 MB / 0.5969 GB, free: 74.22 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009403/0.8686, allocations: 2.254 MB / 0.5991 GB, free: 71.95 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004512/0.8731, allocations: 1.591 MB / 0.6006 GB, free: 70.36 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007252/0.8804, allocations: 6.625 MB / 0.6071 GB, free: 63.45 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004631/0.885, allocations: 439.2 kB / 0.6075 GB, free: 63.02 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005865/0.8856, allocations: 416 kB / 0.6079 GB, free: 62.62 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.002536/0.8882, allocations: 2.221 MB / 0.6101 GB, free: 60.39 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004766/0.8887, allocations: 371.2 kB / 0.6104 GB, free: 60.02 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005369/0.894, allocations: 3.315 MB / 0.6137 GB, free: 56.68 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004411/0.8985, allocations: 2.779 MB / 0.6164 GB, free: 53.88 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.146e-05/0.8985, allocations: 4 kB / 0.6164 GB, free: 53.88 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.515e-05/0.8985, allocations: 7.969 kB / 0.6164 GB, free: 53.87 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01514/0.9137, allocations: 10.37 MB / 0.6265 GB, free: 43.27 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-05/0.9137, allocations: 16 kB / 0.6265 GB, free: 43.26 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001371/0.9151, allocations: 371.4 kB / 0.6269 GB, free: 42.89 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002559/0.9177, allocations: 0.9868 MB / 0.6279 GB, free: 41.89 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000147/0.9178, allocations: 67.91 kB / 0.6279 GB, free: 41.83 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003926/0.9218, allocations: 4.912 MB / 0.6327 GB, free: 36.63 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006626/0.9224, allocations: 1.561 MB / 0.6342 GB, free: 34.93 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007442/0.9299, allocations: 5.966 MB / 0.6401 GB, free: 28.75 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000981/0.9309, allocations: 440 kB / 0.6405 GB, free: 28.3 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003844/0.9313, allocations: 63.92 kB / 0.6406 GB, free: 28.24 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001541/0.9328, allocations: 151.8 kB / 0.6407 GB, free: 28.09 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002708/0.9331, allocations: 172.4 kB / 0.6409 GB, free: 27.92 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001259/0.9332, allocations: 75.98 kB / 0.6409 GB, free: 27.85 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00301/0.9363, allocations: 2.589 MB / 0.6435 GB, free: 25.25 MB / 462.1 MB Notification: Performance of sort global known variables: time 2e-07/0.9363, allocations: 0 / 0.6435 GB, free: 25.25 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00447/0.9408, allocations: 1.142 MB / 0.6446 GB, free: 24.11 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.0003599/0.9411, allocations: 213.1 kB / 0.6448 GB, free: 23.9 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008048/0.9492, allocations: 6.07 MB / 0.6507 GB, free: 17.81 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.252e-06/0.9492, allocations: 0 / 0.6507 GB, free: 17.81 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003337/0.9525, allocations: 2.223 MB / 0.6529 GB, free: 15.52 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002497/0.9551, allocations: 0.4908 MB / 0.6534 GB, free: 15.04 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01266/0.9677, allocations: 10.62 MB / 0.6637 GB, free: 4.219 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003848/0.9716, allocations: 3.451 MB / 0.6671 GB, free: 0.7305 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005303/0.9769, allocations: 2.018 MB / 0.6691 GB, free: 14.7 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008066/0.9778, allocations: 275.3 kB / 0.6693 GB, free: 14.44 MB / 478.1 MB Notification: Performance of SimCode: time 9.41e-07/0.9778, allocations: 0 / 0.6693 GB, free: 14.44 MB / 478.1 MB Notification: Performance of Templates: time 0.0743/1.052, allocations: 38.13 MB / 0.7066 GB, free: 8.598 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