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.001403/0.001403, allocations: 117 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00167/0.001669, allocations: 204.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 227.4 MB / 247.5 MB, free: 10.33 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 59.53 kB / 308.4 MB, free: 15.84 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09248/0.09377, allocations: 50.53 MB / 358.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01382/0.1076, allocations: 11.98 MB / 370.9 MB, free: 1.254 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1613/0.269, allocations: 4.196 MB / 375.1 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001429/0.2704, allocations: 70.72 kB / 375.2 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004619/0.2751, allocations: 2.744 MB / 377.9 MB, free: 9.582 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004416/0.2795, allocations: 1.938 MB / 379.8 MB, free: 9.141 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001753/0.2813, allocations: 0.8007 MB / 380.6 MB, free: 8.863 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005974/0.2873, allocations: 4.693 MB / 385.3 MB, free: 7.535 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003868/0.2912, allocations: 3.541 MB / 388.9 MB, free: 5.957 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003063/0.2943, allocations: 1.678 MB / 390.6 MB, free: 5.117 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003119/0.2974, allocations: 2.329 MB / 392.9 MB, free: 3.848 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008472/0.2983, allocations: 350.9 kB / 393.2 MB, free: 3.848 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002348/0.3006, allocations: 1.255 MB / 394.5 MB, free: 3.406 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001549/0.3022, allocations: 2.082 MB / 396.6 MB, free: 2.203 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002237/0.3045, allocations: 2.41 MB / 399 MB, free: 400 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008902/0.3134, allocations: 7.472 MB / 406.4 MB, free: 9.473 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.3134, allocations: 0 / 406.4 MB, free: 9.473 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3134, allocations: 0 / 406.4 MB, free: 9.473 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002108/0.3136, allocations: 4 kB / 406.4 MB, free: 9.469 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.01088/0.3245, allocations: 5.225 MB / 411.7 MB, free: 4.289 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.3246, allocations: 8.031 kB / 411.7 MB, free: 4.281 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008216/0.3328, allocations: 2.173 MB / 413.9 MB, free: 2.102 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005407/0.3382, allocations: 2.475 MB / 416.3 MB, free: 15.59 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002027/0.3385, allocations: 280.9 kB / 416.6 MB, free: 15.36 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001165/0.3396, allocations: 426.7 kB / 417 MB, free: 14.99 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02066/0.3603, allocations: 12.26 MB / 429.3 MB, free: 2.027 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001161/0.3605, allocations: 47.53 kB / 429.3 MB, free: 1.98 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004447/0.3609, allocations: 178 kB / 429.5 MB, free: 1.848 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002956/0.3639, allocations: 2.166 MB / 431.7 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02063/0.3845, allocations: 10.24 MB / 441.9 MB, free: 5.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05035/0.4349, allocations: 44.12 MB / 486 MB, free: 8.285 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01107/0.446, allocations: 4.644 MB / 490.7 MB, free: 3.441 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002348/0.4484, allocations: 1.726 MB / 492.4 MB, free: 1.707 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01364/0.4621, allocations: 8.298 MB / 0.489 GB, free: 9.066 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.399e-05/0.4621, allocations: 59.75 kB / 0.489 GB, free: 9 MB / 414.1 MB Notification: Performance of pre-optimization done (n=183): time 4.759e-06/0.4622, allocations: 3.938 kB / 0.489 GB, free: 8.996 MB / 414.1 MB Notification: Performance of matching and sorting (n=205): time 0.03925/0.5014, allocations: 16.07 MB / 0.5047 GB, free: 8.758 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001207/0.5026, allocations: 1.692 MB / 0.5064 GB, free: 6.887 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005935/0.5086, allocations: 4.182 MB / 0.5105 GB, free: 2.684 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004052/0.509, allocations: 61.64 kB / 0.5105 GB, free: 2.617 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002169/0.5112, allocations: 3.392 MB / 0.5138 GB, free: 15.23 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008727/0.5121, allocations: 0.8078 MB / 0.5146 GB, free: 14.43 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001573/0.5137, allocations: 1.356 MB / 0.5159 GB, free: 13.06 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001037/0.5138, allocations: 305.1 kB / 0.5162 GB, free: 12.76 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003328/0.5171, allocations: 2.285 MB / 0.5185 GB, free: 10.47 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006131/0.5233, allocations: 6.41 MB / 0.5247 GB, free: 2.016 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1787/0.702, allocations: 9.343 MB / 0.5338 GB, free: 128.7 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.407e-05/0.7021, allocations: 41.59 kB / 0.5339 GB, free: 128.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.02302/0.7251, allocations: 10.16 MB / 0.5438 GB, free: 125.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001036/0.7253, allocations: 69.05 kB / 0.5439 GB, free: 125.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01057/0.7358, allocations: 3.904 MB / 0.5477 GB, free: 124.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009264/0.7451, allocations: 2.252 MB / 0.5499 GB, free: 124.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004607/0.7498, allocations: 1.59 MB / 0.5514 GB, free: 124.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007149/0.7569, allocations: 6.638 MB / 0.5579 GB, free: 120.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004508/0.7615, allocations: 439.9 kB / 0.5583 GB, free: 120.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005628/0.7621, allocations: 419.4 kB / 0.5587 GB, free: 120.6 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.002479/0.7645, allocations: 2.221 MB / 0.5609 GB, free: 119.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004638/0.765, allocations: 373.9 kB / 0.5613 GB, free: 119.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005294/0.7703, allocations: 3.311 MB / 0.5645 GB, free: 117.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004345/0.7747, allocations: 2.776 MB / 0.5672 GB, free: 116.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.006e-05/0.7747, allocations: 7.281 kB / 0.5672 GB, free: 116.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.735e-05/0.7747, allocations: 11.81 kB / 0.5672 GB, free: 116.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01499/0.7897, allocations: 10.36 MB / 0.5774 GB, free: 106.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-05/0.7898, allocations: 16.94 kB / 0.5774 GB, free: 106.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001385/0.7912, allocations: 373.5 kB / 0.5777 GB, free: 105.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0026/0.7938, allocations: 0.9891 MB / 0.5787 GB, free: 104.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001609/0.7939, allocations: 63.97 kB / 0.5788 GB, free: 104.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003778/0.7977, allocations: 4.899 MB / 0.5835 GB, free: 99.52 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006869/0.7984, allocations: 1.557 MB / 0.5851 GB, free: 97.83 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007091/0.8055, allocations: 5.978 MB / 0.5909 GB, free: 91.83 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000931/0.8065, allocations: 436.1 kB / 0.5913 GB, free: 91.38 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003728/0.8069, allocations: 51.98 kB / 0.5914 GB, free: 91.33 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00152/0.8084, allocations: 155.8 kB / 0.5915 GB, free: 91.18 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002741/0.8087, allocations: 179.8 kB / 0.5917 GB, free: 91.01 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001279/0.8088, allocations: 71.98 kB / 0.5918 GB, free: 90.94 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002922/0.8117, allocations: 2.585 MB / 0.5943 GB, free: 88.34 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.8118, allocations: 4 kB / 0.5943 GB, free: 88.34 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004552/0.8163, allocations: 1.14 MB / 0.5954 GB, free: 87.2 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.0004073/0.8167, allocations: 216.3 kB / 0.5956 GB, free: 86.99 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008077/0.8248, allocations: 6.069 MB / 0.6015 GB, free: 80.89 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.306e-06/0.8249, allocations: 8 kB / 0.6015 GB, free: 80.89 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003212/0.8281, allocations: 2.208 MB / 0.6037 GB, free: 78.61 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002564/0.8306, allocations: 0.4967 MB / 0.6042 GB, free: 78.12 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01339/0.844, allocations: 10.63 MB / 0.6146 GB, free: 67.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002896/0.847, allocations: 3.455 MB / 0.6179 GB, free: 63.82 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003759/0.8508, allocations: 2.011 MB / 0.6199 GB, free: 61.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006372/0.8514, allocations: 271.4 kB / 0.6201 GB, free: 61.54 MB / 446.1 MB Notification: Performance of SimCode: time 8.62e-07/0.8514, allocations: 4 kB / 0.6202 GB, free: 61.54 MB / 446.1 MB Notification: Performance of Templates: time 0.05808/0.9095, allocations: 36.01 MB / 0.6553 GB, free: 25.83 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringDamperSystem/SpringDamperSystem.csv","/var/lib/jenkins1/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