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.001095/0.001095, allocations: 105.4 kB / 18.4 MB, free: 4.703 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.001015/0.001015, allocations: 191 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.303/1.303, allocations: 205.1 MB / 225.2 MB, free: 12.25 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.001154/0.001154, allocations: 51.92 kB / 329.2 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08545/0.08662, allocations: 46.62 MB / 375.8 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.2025/0.2892, allocations: 12.04 MB / 387.9 MB, free: 6.473 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009031/0.2983, allocations: 4.191 MB / 392.1 MB, free: 4.031 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002409/0.3008, allocations: 67.97 kB / 392.1 MB, free: 4.02 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005053/0.3058, allocations: 2.759 MB / 394.9 MB, free: 2.727 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006075/0.3119, allocations: 1.976 MB / 396.9 MB, free: 1.809 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001885/0.3138, allocations: 0.8008 MB / 397.7 MB, free: 1.477 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0071/0.3209, allocations: 4.631 MB / 402.3 MB, free: 15.78 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005177/0.3261, allocations: 3.565 MB / 405.9 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00353/0.3297, allocations: 1.693 MB / 407.5 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004189/0.3339, allocations: 2.349 MB / 409.9 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001497/0.3354, allocations: 353.7 kB / 410.2 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003593/0.339, allocations: 1.267 MB / 411.5 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003719/0.3428, allocations: 2.125 MB / 413.6 MB, free: 9.613 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005572/0.3484, allocations: 2.443 MB / 416.1 MB, free: 7.223 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01106/0.3594, allocations: 7.528 MB / 423.6 MB, free: 15.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.706e-06/0.3595, allocations: 0 / 423.6 MB, free: 15.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.3595, allocations: 0 / 423.6 MB, free: 15.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000308/0.3598, 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.01334/0.3732, allocations: 5.282 MB / 428.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.3732, allocations: 8.031 kB / 428.9 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008154/0.3814, allocations: 2.116 MB / 431 MB, free: 8.184 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005998/0.3874, allocations: 2.63 MB / 433.6 MB, free: 5.492 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002751/0.3877, allocations: 270.9 kB / 433.9 MB, free: 5.227 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001594/0.3893, allocations: 439.5 kB / 434.3 MB, free: 4.797 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02404/0.4134, allocations: 12.22 MB / 446.6 MB, free: 7.766 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001337/0.4136, allocations: 51.53 kB / 446.6 MB, free: 7.715 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006391/0.4142, allocations: 171.8 kB / 446.8 MB, free: 7.547 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002981/0.4172, allocations: 2.162 MB / 448.9 MB, free: 5.383 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02104/0.4383, allocations: 10.21 MB / 459.1 MB, free: 11.15 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05398/0.4923, allocations: 44.14 MB / 0.4915 GB, free: 13.77 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01101/0.5034, allocations: 4.594 MB / 0.496 GB, free: 8.973 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002462/0.5059, allocations: 1.728 MB / 0.4977 GB, free: 7.234 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01258/0.5185, allocations: 8.224 MB / 0.5057 GB, free: 14.62 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.773e-05/0.5186, allocations: 55.81 kB / 0.5057 GB, free: 14.56 MB / 446.1 MB Notification: Performance of pre-optimization done (n=183): time 4.659e-06/0.5186, allocations: 0 / 0.5057 GB, free: 14.56 MB / 446.1 MB Notification: Performance of matching and sorting (n=205): time 0.04038/0.559, allocations: 15.96 MB / 0.5213 GB, free: 14.41 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001432/0.5604, allocations: 1.699 MB / 0.523 GB, free: 12.54 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006134/0.5666, allocations: 4.215 MB / 0.5271 GB, free: 8.301 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000527/0.5672, allocations: 61.61 kB / 0.5272 GB, free: 8.238 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002497/0.5697, allocations: 3.404 MB / 0.5305 GB, free: 4.785 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001114/0.5708, allocations: 0.8022 MB / 0.5313 GB, free: 3.973 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001795/0.5726, allocations: 1.361 MB / 0.5326 GB, free: 2.602 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.136e-05/0.5727, allocations: 305.1 kB / 0.5329 GB, free: 2.301 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003344/0.5761, allocations: 2.266 MB / 0.5351 GB, free: 32 kB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006297/0.5824, allocations: 6.394 MB / 0.5413 GB, free: 7.59 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2259/0.8083, allocations: 9.317 MB / 0.5504 GB, free: 140.6 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001622/0.8085, allocations: 41.22 kB / 0.5505 GB, free: 140.6 MB / 478.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.02482/0.8334, allocations: 10.06 MB / 0.5603 GB, free: 138.3 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001105/0.8335, allocations: 72.11 kB / 0.5604 GB, free: 138.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01144/0.845, allocations: 3.788 MB / 0.5641 GB, free: 137.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009849/0.8548, allocations: 2.171 MB / 0.5662 GB, free: 137.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005322/0.8602, allocations: 1.581 MB / 0.5677 GB, free: 137.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00806/0.8683, allocations: 6.591 MB / 0.5742 GB, free: 133.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005439/0.8738, allocations: 435 kB / 0.5746 GB, free: 133.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001321/0.8751, allocations: 414.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.004035/0.8792, allocations: 2.221 MB / 0.5772 GB, free: 132.2 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006829/0.8799, allocations: 374.7 kB / 0.5775 GB, free: 132.2 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00531/0.8852, allocations: 3.288 MB / 0.5807 GB, free: 131.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004231/0.8894, allocations: 2.744 MB / 0.5834 GB, free: 130.1 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.431e-05/0.8895, allocations: 2.656 kB / 0.5834 GB, free: 130.1 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.193e-05/0.8895, allocations: 10.78 kB / 0.5834 GB, free: 130.1 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01602/0.9055, allocations: 10.34 MB / 0.5935 GB, free: 122.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.306e-05/0.9056, allocations: 13 kB / 0.5935 GB, free: 122.4 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001411/0.907, allocations: 367.4 kB / 0.5939 GB, free: 122.1 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002597/0.9096, allocations: 0.9903 MB / 0.5948 GB, free: 121.1 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002386/0.9099, allocations: 59.97 kB / 0.5949 GB, free: 121 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003969/0.9138, allocations: 4.895 MB / 0.5997 GB, free: 115.9 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007/0.9146, allocations: 1.562 MB / 0.6012 GB, free: 114.2 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007678/0.9223, allocations: 5.909 MB / 0.607 GB, free: 108.2 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001544/0.9238, allocations: 0.6561 MB / 0.6076 GB, free: 107.6 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005605/0.9244, allocations: 59.98 kB / 0.6077 GB, free: 107.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001507/0.9259, allocations: 147.8 kB / 0.6078 GB, free: 107.4 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000287/0.9262, allocations: 175.3 kB / 0.608 GB, free: 107.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001196/0.9264, allocations: 77.42 kB / 0.6081 GB, free: 107.1 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003358/0.9297, allocations: 2.613 MB / 0.6106 GB, free: 104.5 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.9297, allocations: 0 / 0.6106 GB, free: 104.5 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005904/0.9356, allocations: 1.164 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.0005094/0.9362, allocations: 221.7 kB / 0.612 GB, free: 103.1 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.009153/0.9453, allocations: 6.037 MB / 0.6179 GB, free: 97.05 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.85e-05/0.9454, allocations: 0 / 0.6179 GB, free: 97.05 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003401/0.9488, allocations: 2.204 MB / 0.62 GB, free: 94.78 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003142/0.952, allocations: 0.4979 MB / 0.6205 GB, free: 94.29 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01544/0.9674, allocations: 11.1 MB / 0.6313 GB, free: 82.99 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00302/0.9705, allocations: 3.447 MB / 0.6347 GB, free: 79.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001115/0.9716, allocations: 324.6 kB / 0.635 GB, free: 79.19 MB / 478.1 MB Notification: Performance of SimCode: time 1.323e-06/0.9716, allocations: 4 kB / 0.635 GB, free: 79.18 MB / 478.1 MB Notification: Performance of Templates: time 0.3736/1.345, allocations: 142.8 MB / 0.7744 GB, free: 148.5 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