Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00155/0.00155, allocations: 107.2 kB / 18.34 MB, free: 4.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001647/0.001647, allocations: 188.1 kB / 19.28 MB, free: 3.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.346/1.346, allocations: 205.1 MB / 225.2 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 51.94 kB / 282.1 MB, free: 2.441 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08568/0.08703, allocations: 46.62 MB / 328.7 MB, free: 3.746 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01367/0.1007, allocations: 12.05 MB / 340.8 MB, free: 7.629 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008481/0.1093, allocations: 4.189 MB / 345 MB, free: 3.426 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001648/0.111, allocations: 67.81 kB / 345 MB, free: 3.359 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005177/0.1162, allocations: 2.76 MB / 347.8 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004816/0.121, allocations: 1.961 MB / 349.7 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001836/0.1229, allocations: 0.8189 MB / 350.6 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005777/0.1287, allocations: 4.628 MB / 355.2 MB, free: 9.156 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004839/0.1335, allocations: 3.556 MB / 358.7 MB, free: 5.559 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002703/0.1362, allocations: 1.698 MB / 360.4 MB, free: 3.855 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003296/0.1396, allocations: 2.336 MB / 362.8 MB, free: 1.512 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00103/0.1406, allocations: 352 kB / 363.1 MB, free: 1.168 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002684/0.1433, allocations: 1.276 MB / 364.4 MB, free: 15.89 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002412/0.1457, allocations: 2.112 MB / 366.5 MB, free: 13.77 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003723/0.1495, allocations: 2.427 MB / 368.9 MB, free: 11.33 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008128/0.1576, allocations: 7.536 MB / 376.5 MB, free: 3.77 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.1576, allocations: 0 / 376.5 MB, free: 3.77 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1577, allocations: 4 kB / 376.5 MB, free: 3.766 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001585/0.1578, allocations: 0 / 376.5 MB, free: 3.766 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.1583/0.3161, allocations: 5.28 MB / 381.8 MB, free: 49.63 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/0.3162, allocations: 9.031 kB / 381.8 MB, free: 49.63 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007695/0.3239, allocations: 2.107 MB / 383.9 MB, free: 49.25 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005464/0.3294, allocations: 2.636 MB / 386.5 MB, free: 47.99 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002567/0.3297, allocations: 275 kB / 386.8 MB, free: 47.9 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001047/0.3307, allocations: 430.3 kB / 387.2 MB, free: 47.8 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01887/0.3496, allocations: 12.22 MB / 399.4 MB, free: 41.02 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000114/0.3498, allocations: 47.53 kB / 399.5 MB, free: 40.98 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004193/0.3502, allocations: 171.8 kB / 399.6 MB, free: 40.81 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002328/0.3525, allocations: 2.166 MB / 401.8 MB, free: 38.64 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01654/0.3691, allocations: 10.2 MB / 412 MB, free: 28.41 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04148/0.4106, allocations: 44.14 MB / 456.1 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01085/0.4214, allocations: 4.599 MB / 460.7 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002373/0.4238, allocations: 1.725 MB / 462.5 MB, free: 8.574 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01313/0.437, allocations: 8.229 MB / 470.7 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.24e-05/0.4371, allocations: 51.88 kB / 470.8 MB, free: 15.89 MB / 366.1 MB Notification: Performance of pre-optimization done (n=183): time 4.598e-06/0.4371, allocations: 0 / 470.8 MB, free: 15.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=205): time 0.0384/0.4755, allocations: 15.96 MB / 486.7 MB, free: 15.76 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001272/0.4768, allocations: 1.696 MB / 488.4 MB, free: 13.89 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005608/0.4824, allocations: 4.215 MB / 492.6 MB, free: 9.652 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004739/0.4829, allocations: 49.7 kB / 492.7 MB, free: 9.598 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002646/0.4856, allocations: 3.412 MB / 496.1 MB, free: 6.141 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001135/0.4867, allocations: 0.8023 MB / 496.9 MB, free: 5.328 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001657/0.4884, allocations: 1.361 MB / 498.2 MB, free: 3.957 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.905e-05/0.4885, allocations: 305.1 kB / 498.5 MB, free: 3.656 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003193/0.4917, allocations: 2.266 MB / 0.4891 GB, free: 1.387 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006167/0.4979, allocations: 6.398 MB / 0.4953 GB, free: 8.938 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01024/0.5081, allocations: 9.322 MB / 0.5044 GB, free: 13.57 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001078/0.5083, allocations: 40 kB / 0.5045 GB, free: 13.53 MB / 414.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.02359/0.5319, allocations: 10.06 MB / 0.5143 GB, free: 3.445 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001687/0.5321, allocations: 64.22 kB / 0.5143 GB, free: 3.383 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01168/0.5438, allocations: 3.795 MB / 0.518 GB, free: 15.57 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0102/0.554, allocations: 2.168 MB / 0.5202 GB, free: 13.39 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005679/0.5597, allocations: 1.579 MB / 0.5217 GB, free: 11.81 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009222/0.569, allocations: 6.601 MB / 0.5282 GB, free: 4.922 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005187/0.5742, allocations: 423.4 kB / 0.5286 GB, free: 4.508 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001137/0.5754, allocations: 420 kB / 0.529 GB, free: 4.098 MB / 430.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.004489/0.5799, allocations: 2.224 MB / 0.5311 GB, free: 1.863 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009721/0.5808, allocations: 379.1 kB / 0.5315 GB, free: 1.488 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1716/0.7524, allocations: 3.277 MB / 0.5347 GB, free: 142.4 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004606/0.7571, allocations: 2.746 MB / 0.5374 GB, free: 142.3 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.318e-05/0.7571, allocations: 3.906 kB / 0.5374 GB, free: 142.3 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.887e-05/0.7571, allocations: 8.766 kB / 0.5374 GB, free: 142.3 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01956/0.7767, allocations: 10.33 MB / 0.5475 GB, free: 138.4 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.764e-05/0.7768, allocations: 12.56 kB / 0.5475 GB, free: 138.4 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001458/0.7782, allocations: 366.6 kB / 0.5478 GB, free: 138.3 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002804/0.7811, allocations: 0.986 MB / 0.5488 GB, free: 138.2 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002279/0.7813, allocations: 63.75 kB / 0.5489 GB, free: 138.2 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003905/0.7852, allocations: 4.902 MB / 0.5537 GB, free: 134.9 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006822/0.7859, allocations: 1.555 MB / 0.5552 GB, free: 133.4 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007775/0.7937, allocations: 5.914 MB / 0.5609 GB, free: 130.7 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002058/0.7958, allocations: 0.6532 MB / 0.5616 GB, free: 130.5 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005335/0.7963, allocations: 56.11 kB / 0.5616 GB, free: 130.4 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00162/0.798, allocations: 150.7 kB / 0.5618 GB, free: 130.4 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003188/0.7983, allocations: 166.9 kB / 0.5619 GB, free: 130.3 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001423/0.7984, allocations: 85.11 kB / 0.562 GB, free: 130.2 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003763/0.8022, allocations: 2.61 MB / 0.5646 GB, free: 128.9 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.8022, allocations: 0 / 0.5646 GB, free: 128.9 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.006627/0.8089, allocations: 1.158 MB / 0.5657 GB, free: 128.8 MB / 430.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.0005597/0.8094, allocations: 226.3 kB / 0.5659 GB, free: 128.6 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00845/0.8179, allocations: 6.031 MB / 0.5718 GB, free: 123.1 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.154e-05/0.8179, allocations: 4 kB / 0.5718 GB, free: 123.1 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003327/0.8213, allocations: 2.201 MB / 0.574 GB, free: 120.9 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002831/0.8241, allocations: 0.4943 MB / 0.5744 GB, free: 120.4 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01593/0.8401, allocations: 10.63 MB / 0.5848 GB, free: 109.7 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002731/0.8428, allocations: 3.465 MB / 0.5882 GB, free: 106.2 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003973/0.8468, allocations: 2.026 MB / 0.5902 GB, free: 104.1 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000657/0.8475, allocations: 279.3 kB / 0.5905 GB, free: 103.9 MB / 430.1 MB Notification: Performance of SimCode: time 8.12e-07/0.8475, allocations: 0 / 0.5905 GB, free: 103.9 MB / 430.1 MB Notification: Performance of Templates: time 0.05885/0.9064, allocations: 36.29 MB / 0.6259 GB, free: 67.72 MB / 430.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringDamperSystem/SpringDamperSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches