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.001593/0.001593, allocations: 104 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001907/0.001907, allocations: 209.7 kB / 18.14 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 227.4 MB / 246.3 MB, free: 10.84 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00112/0.00112, allocations: 59.69 kB / 306.3 MB, free: 1.074 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09236/0.09349, allocations: 50.54 MB / 356.8 MB, free: 14.53 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.1998/0.2934, allocations: 46.65 MB / 403.4 MB, free: 8.598 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02334/0.3167, allocations: 9.853 MB / 413.3 MB, free: 1.668 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01118/0.3279, allocations: 206.4 kB / 413.5 MB, free: 1.629 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005618/0.3337, allocations: 2.725 MB / 416.2 MB, free: 15.83 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005356/0.3391, allocations: 1.806 MB / 418 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001839/0.3409, allocations: 0.745 MB / 418.8 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.008112/0.349, allocations: 6.57 MB / 425.3 MB, free: 7.156 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004509/0.3536, allocations: 3.527 MB / 428.9 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002386/0.356, allocations: 1.502 MB / 430.4 MB, free: 2.105 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003327/0.3593, allocations: 2.496 MB / 432.9 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00107/0.3604, allocations: 256 kB / 433.1 MB, free: 15.35 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002544/0.363, allocations: 1.229 MB / 434.3 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001956/0.3649, allocations: 2.018 MB / 436.4 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002249/0.3672, allocations: 2.333 MB / 438.7 MB, free: 9.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006391/0.3736, allocations: 7.129 MB / 445.8 MB, free: 2.598 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.3736, allocations: 0 / 445.8 MB, free: 2.598 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.82e-07/0.3736, allocations: 4 kB / 445.8 MB, free: 2.594 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000143/0.3738, allocations: 0 / 445.8 MB, free: 2.594 MB / 350.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.008817/0.3826, allocations: 5.227 MB / 451.1 MB, free: 13.3 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.3827, allocations: 15.97 kB / 451.1 MB, free: 13.28 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007907/0.3906, allocations: 2.174 MB / 453.3 MB, free: 11.1 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004931/0.3955, allocations: 2.423 MB / 455.7 MB, free: 8.613 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001932/0.3958, allocations: 278.8 kB / 455.9 MB, free: 8.34 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009858/0.3968, allocations: 427.6 kB / 456.4 MB, free: 7.922 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02248/0.4193, allocations: 12.27 MB / 468.6 MB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001649/0.4195, allocations: 51.47 kB / 468.7 MB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00103/0.4205, allocations: 175.8 kB / 468.9 MB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003094/0.4236, allocations: 2.166 MB / 471 MB, free: 8.438 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02147/0.4451, allocations: 10.24 MB / 481.3 MB, free: 14.18 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05765/0.5028, allocations: 44.31 MB / 0.5133 GB, free: 0.6172 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01194/0.5148, allocations: 4.656 MB / 0.5178 GB, free: 11.77 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002554/0.5174, allocations: 1.733 MB / 0.5195 GB, free: 10.03 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01278/0.5302, allocations: 8.307 MB / 0.5276 GB, free: 1.316 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.694e-05/0.5303, allocations: 55.81 kB / 0.5277 GB, free: 1.254 MB / 446.1 MB Notification: Performance of pre-optimization done (n=183): time 5.06e-06/0.5303, allocations: 0 / 0.5277 GB, free: 1.254 MB / 446.1 MB Notification: Performance of matching and sorting (n=205): time 0.2952/0.8255, allocations: 16.05 MB / 0.5433 GB, free: 105.1 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001292/0.8268, allocations: 1.609 MB / 0.5449 GB, free: 103.6 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008242/0.8351, allocations: 4.186 MB / 0.549 GB, free: 103.1 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000476/0.8356, allocations: 55.42 kB / 0.549 GB, free: 103.1 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002198/0.8378, allocations: 3.394 MB / 0.5524 GB, free: 101.1 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008987/0.8387, allocations: 0.8063 MB / 0.5531 GB, free: 100.6 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001948/0.8407, allocations: 1.361 MB / 0.5545 GB, free: 100.1 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.254e-05/0.8407, allocations: 308.9 kB / 0.5548 GB, free: 99.83 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002905/0.8436, allocations: 2.281 MB / 0.557 GB, free: 99.13 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004267/0.8479, allocations: 6.414 MB / 0.5633 GB, free: 92.84 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007976/0.8559, allocations: 9.341 MB / 0.5724 GB, free: 82.64 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.434e-05/0.856, allocations: 44.88 kB / 0.5724 GB, free: 82.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.02041/0.8764, allocations: 10.17 MB / 0.5824 GB, free: 73.29 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001355/0.8766, allocations: 73.08 kB / 0.5824 GB, free: 73.22 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01045/0.8871, allocations: 3.894 MB / 0.5862 GB, free: 69.32 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009549/0.8966, allocations: 2.252 MB / 0.5884 GB, free: 67.06 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005849/0.9025, allocations: 1.599 MB / 0.59 GB, free: 65.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007144/0.9097, allocations: 6.091 MB / 0.5959 GB, free: 59.32 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005642/0.9154, allocations: 435.5 kB / 0.5964 GB, free: 58.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0013/0.9167, allocations: 416 kB / 0.5968 GB, free: 58.49 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.004503/0.9212, allocations: 2.223 MB / 0.5989 GB, free: 56.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009955/0.9222, allocations: 375.1 kB / 0.5993 GB, free: 56.03 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006167/0.9284, allocations: 3.312 MB / 0.6025 GB, free: 52.7 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004638/0.933, allocations: 2.785 MB / 0.6052 GB, free: 49.91 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.828e-05/0.9331, allocations: 0 / 0.6052 GB, free: 49.91 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.482e-05/0.9331, allocations: 11.97 kB / 0.6053 GB, free: 49.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01985/0.953, allocations: 10.37 MB / 0.6154 GB, free: 39.41 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.324e-05/0.953, allocations: 12 kB / 0.6154 GB, free: 39.39 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001502/0.9546, allocations: 376.9 kB / 0.6158 GB, free: 39.05 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002734/0.9573, allocations: 0.9837 MB / 0.6167 GB, free: 38.05 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000245/0.9576, allocations: 63.97 kB / 0.6168 GB, free: 37.99 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004049/0.9616, allocations: 4.597 MB / 0.6213 GB, free: 33.16 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008494/0.9625, allocations: 1.481 MB / 0.6227 GB, free: 31.55 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009178/0.9717, allocations: 5.956 MB / 0.6285 GB, free: 25.41 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001159/0.9729, allocations: 436 kB / 0.6289 GB, free: 24.96 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008963/0.9738, allocations: 70.95 kB / 0.629 GB, free: 24.89 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002189/0.976, allocations: 154.9 kB / 0.6292 GB, free: 24.74 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003865/0.9764, allocations: 169.9 kB / 0.6293 GB, free: 24.59 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001691/0.9766, allocations: 75.98 kB / 0.6294 GB, free: 24.51 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004359/0.981, allocations: 2.585 MB / 0.6319 GB, free: 21.92 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.981, allocations: 4.422 kB / 0.6319 GB, free: 21.92 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00661/0.9876, allocations: 1.144 MB / 0.633 GB, free: 20.78 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.000644/0.9883, allocations: 206.8 kB / 0.6332 GB, free: 20.6 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0099/0.9982, allocations: 6.02 MB / 0.6391 GB, free: 14.95 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.812e-05/0.9983, allocations: 4 kB / 0.6391 GB, free: 14.95 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003699/1.002, allocations: 2.207 MB / 0.6413 GB, free: 12.71 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00512/1.007, allocations: 478.2 kB / 0.6417 GB, free: 12.25 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02024/1.027, allocations: 12.92 MB / 0.6543 GB, free: 15.15 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00571/1.033, allocations: 3.455 MB / 0.6577 GB, free: 11.66 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006005/1.039, allocations: 2.014 MB / 0.6597 GB, free: 9.641 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001063/1.04, allocations: 271.4 kB / 0.6599 GB, free: 9.375 MB / 462.1 MB Notification: Performance of SimCode: time 9.72e-07/1.04, allocations: 4 kB / 0.6599 GB, free: 9.371 MB / 462.1 MB Notification: Performance of Templates: time 0.07607/1.116, allocations: 40.39 MB / 0.6994 GB, free: 1.211 MB / 494.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.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