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.00145/0.00145, allocations: 113.2 kB / 18.4 MB, free: 4.699 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.001601/0.001601, allocations: 189.2 kB / 19.33 MB, free: 3.781 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.381/1.381, allocations: 205.1 MB / 225.2 MB, free: 12.23 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.001415/0.001415, allocations: 55.92 kB / 329.2 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09357/0.095, allocations: 46.61 MB / 375.8 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.2072/0.3023, allocations: 12.04 MB / 387.9 MB, free: 6.441 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009506/0.3118, allocations: 4.191 MB / 392.1 MB, free: 4 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003132/0.3151, allocations: 68.69 kB / 392.1 MB, free: 3.988 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006174/0.3213, allocations: 2.751 MB / 394.9 MB, free: 2.703 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006241/0.3275, allocations: 1.977 MB / 396.9 MB, free: 1.785 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002606/0.3302, allocations: 0.8085 MB / 397.7 MB, free: 1.445 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008806/0.339, allocations: 4.625 MB / 402.3 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006428/0.3455, allocations: 3.56 MB / 405.8 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004422/0.35, allocations: 1.702 MB / 407.5 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004852/0.3549, allocations: 2.348 MB / 409.9 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00173/0.3566, allocations: 354.1 kB / 410.2 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00398/0.3606, allocations: 1.268 MB / 411.5 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003436/0.3641, allocations: 2.12 MB / 413.6 MB, free: 9.598 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004636/0.3688, allocations: 2.44 MB / 416.1 MB, free: 7.219 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009681/0.3785, allocations: 7.532 MB / 423.6 MB, free: 15.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.421e-06/0.3785, allocations: 0 / 423.6 MB, free: 15.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3785, allocations: 0 / 423.6 MB, free: 15.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002222/0.3787, allocations: 0 / 423.6 MB, free: 15.66 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.01122/0.39, allocations: 5.286 MB / 428.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.076e-05/0.39, allocations: 8.031 kB / 428.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008484/0.3985, allocations: 2.116 MB / 431 MB, free: 8.172 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005206/0.4038, allocations: 2.626 MB / 433.6 MB, free: 5.484 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002581/0.4041, allocations: 274.9 kB / 433.9 MB, free: 5.215 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001324/0.4054, allocations: 435.5 kB / 434.3 MB, free: 4.789 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02433/0.4297, allocations: 12.22 MB / 446.6 MB, free: 7.754 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000213/0.43, allocations: 47.53 kB / 446.6 MB, free: 7.707 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001294/0.4313, allocations: 179.8 kB / 446.8 MB, free: 7.531 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003775/0.4351, allocations: 2.158 MB / 448.9 MB, free: 5.371 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02424/0.4594, allocations: 10.21 MB / 459.1 MB, free: 11.14 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06493/0.5243, allocations: 44.13 MB / 0.4915 GB, free: 13.76 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01258/0.537, allocations: 4.601 MB / 0.496 GB, free: 8.961 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002872/0.5399, allocations: 1.726 MB / 0.4977 GB, free: 7.227 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0144/0.5543, allocations: 8.22 MB / 0.5057 GB, free: 14.62 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.183e-05/0.5545, allocations: 63.8 kB / 0.5057 GB, free: 14.55 MB / 446.1 MB Notification: Performance of pre-optimization done (n=183): time 5.671e-06/0.5545, allocations: 0 / 0.5057 GB, free: 14.55 MB / 446.1 MB Notification: Performance of matching and sorting (n=205): time 0.04808/0.6026, allocations: 15.96 MB / 0.5213 GB, free: 14.41 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00188/0.6045, allocations: 1.699 MB / 0.523 GB, free: 12.53 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008201/0.6127, allocations: 4.215 MB / 0.5271 GB, free: 8.297 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005716/0.6134, allocations: 57.73 kB / 0.5272 GB, free: 8.234 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003047/0.6164, allocations: 3.408 MB / 0.5305 GB, free: 4.777 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001369/0.6178, allocations: 0.8022 MB / 0.5313 GB, free: 3.965 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003503/0.6213, allocations: 1.361 MB / 0.5326 GB, free: 2.594 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.6215, allocations: 301.1 kB / 0.5329 GB, free: 2.297 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004302/0.6258, allocations: 2.266 MB / 0.5351 GB, free: 28 kB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007659/0.6335, allocations: 6.394 MB / 0.5413 GB, free: 7.586 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2523/0.8858, allocations: 9.322 MB / 0.5504 GB, free: 140.6 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001523/0.886, allocations: 44.44 kB / 0.5505 GB, free: 140.6 MB / 478.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.02804/0.914, allocations: 10.06 MB / 0.5603 GB, free: 138.3 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001309/0.9142, allocations: 72.97 kB / 0.5604 GB, free: 138.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01314/0.9274, allocations: 3.784 MB / 0.5641 GB, free: 137.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01078/0.9382, allocations: 2.167 MB / 0.5662 GB, free: 137.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005285/0.9435, allocations: 1.583 MB / 0.5677 GB, free: 137 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008252/0.9518, allocations: 6.6 MB / 0.5742 GB, free: 133.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005907/0.9578, allocations: 426.1 kB / 0.5746 GB, free: 133.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001234/0.959, allocations: 415.3 kB / 0.575 GB, free: 133.2 MB / 478.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.003647/0.9627, allocations: 2.221 MB / 0.5772 GB, free: 132.2 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006747/0.9634, allocations: 370.8 kB / 0.5775 GB, free: 132.2 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005711/0.9691, allocations: 3.291 MB / 0.5807 GB, free: 131.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004518/0.9737, allocations: 2.741 MB / 0.5834 GB, free: 130.1 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.842e-05/0.9737, allocations: 4.844 kB / 0.5834 GB, free: 130.1 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.423e-05/0.9737, allocations: 7.969 kB / 0.5834 GB, free: 130.1 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01584/0.9896, allocations: 10.34 MB / 0.5935 GB, free: 122.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.653e-05/0.9897, allocations: 16 kB / 0.5935 GB, free: 122.4 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001479/0.9911, allocations: 372.3 kB / 0.5939 GB, free: 122 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002703/0.9939, allocations: 0.9786 MB / 0.5948 GB, free: 121 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002708/0.9942, allocations: 66.72 kB / 0.5949 GB, free: 121 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004064/0.9982, allocations: 4.897 MB / 0.5997 GB, free: 115.8 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007741/0.999, allocations: 1.562 MB / 0.6012 GB, free: 114.1 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008613/1.008, allocations: 5.909 MB / 0.607 GB, free: 108.2 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001813/1.01, allocations: 0.6561 MB / 0.6076 GB, free: 107.5 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006625/1.01, allocations: 63.67 kB / 0.6077 GB, free: 107.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001757/1.012, allocations: 143.8 kB / 0.6078 GB, free: 107.3 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000304/1.012, allocations: 172.4 kB / 0.608 GB, free: 107.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001351/1.012, allocations: 75.98 kB / 0.6081 GB, free: 107.1 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00337/1.016, allocations: 2.613 MB / 0.6106 GB, free: 104.5 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.5e-07/1.016, allocations: 0 / 0.6106 GB, free: 104.5 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005866/1.022, allocations: 1.168 MB / 0.6117 GB, free: 103.3 MB / 478.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.0005009/1.022, allocations: 226.4 kB / 0.612 GB, free: 103.1 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008987/1.031, allocations: 6.041 MB / 0.6179 GB, free: 97.02 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.511e-05/1.031, allocations: 4 kB / 0.6179 GB, free: 97.01 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003433/1.035, allocations: 2.193 MB / 0.62 GB, free: 94.75 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003161/1.038, allocations: 0.4954 MB / 0.6205 GB, free: 94.27 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01756/1.055, allocations: 11.1 MB / 0.6313 GB, free: 82.96 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0037/1.059, allocations: 3.447 MB / 0.6347 GB, free: 79.48 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001127/1.06, allocations: 324.5 kB / 0.635 GB, free: 79.16 MB / 478.1 MB Notification: Performance of SimCode: time 1.042e-06/1.06, allocations: 4 kB / 0.635 GB, free: 79.16 MB / 478.1 MB Notification: Performance of Templates: time 0.345/1.405, allocations: 142.1 MB / 0.7738 GB, free: 148.9 MB / 0.4981 GB 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 -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