Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001382/0.001382, allocations: 113.8 kB / 17.07 MB, free: 5.969 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.00153/0.00153, allocations: 190.8 kB / 18 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.326/1.326, allocations: 222.9 MB / 241.7 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001449/0.001449, allocations: 51.92 kB / 351.3 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2612/0.2626, allocations: 49.43 MB / 400.7 MB, free: 8.988 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01194/0.2746, allocations: 12.02 MB / 412.7 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007848/0.2825, allocations: 4.188 MB / 416.9 MB, free: 8.762 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001296/0.2838, allocations: 71.75 kB / 417 MB, free: 8.691 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004528/0.2884, allocations: 2.76 MB / 419.8 MB, free: 5.922 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004123/0.2925, allocations: 1.957 MB / 421.7 MB, free: 3.957 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001543/0.2941, allocations: 0.8149 MB / 422.5 MB, free: 3.141 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005099/0.2992, allocations: 4.608 MB / 427.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003486/0.3027, allocations: 3.536 MB / 430.7 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00205/0.3048, allocations: 1.694 MB / 432.4 MB, free: 9.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002943/0.3077, allocations: 2.332 MB / 434.7 MB, free: 6.891 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007222/0.3085, allocations: 352 kB / 435 MB, free: 6.547 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002165/0.3106, allocations: 1.28 MB / 436.3 MB, free: 5.266 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00165/0.3123, allocations: 2.1 MB / 438.4 MB, free: 3.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002415/0.3147, allocations: 2.431 MB / 440.9 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007992/0.3227, allocations: 7.567 MB / 448.4 MB, free: 9.117 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.3228, allocations: 0 / 448.4 MB, free: 9.117 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.3228, allocations: 0 / 448.4 MB, free: 9.117 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001502/0.3229, allocations: 0 / 448.4 MB, free: 9.117 MB / 366.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.009075/0.332, allocations: 5.409 MB / 453.8 MB, free: 3.629 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.504e-05/0.3321, allocations: 11.97 kB / 453.8 MB, free: 3.617 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007732/0.3398, allocations: 2.139 MB / 456 MB, free: 1.473 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004196/0.344, allocations: 2.544 MB / 458.5 MB, free: 14.87 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001762/0.3442, allocations: 278.8 kB / 458.8 MB, free: 14.59 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008783/0.3451, allocations: 427.7 kB / 459.2 MB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02072/0.3658, allocations: 12.22 MB / 471.4 MB, free: 1.141 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001172/0.366, allocations: 51.61 kB / 471.5 MB, free: 1.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004445/0.3664, allocations: 167.8 kB / 471.7 MB, free: 0.9258 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003325/0.3698, allocations: 2.158 MB / 473.8 MB, free: 14.77 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02164/0.3914, allocations: 10.21 MB / 484 MB, free: 4.539 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04995/0.4414, allocations: 44.21 MB / 0.5159 GB, free: 7.086 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01127/0.4527, allocations: 4.601 MB / 0.5204 GB, free: 2.289 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002409/0.4552, allocations: 1.728 MB / 0.522 GB, free: 0.5547 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01171/0.4669, allocations: 8.236 MB / 0.5301 GB, free: 7.93 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.778e-05/0.467, allocations: 63.75 kB / 0.5301 GB, free: 7.859 MB / 462.1 MB Notification: Performance of pre-optimization done (n=183): time 5.35e-06/0.467, allocations: 0 / 0.5301 GB, free: 7.859 MB / 462.1 MB Notification: Performance of matching and sorting (n=205): time 0.2818/0.7488, allocations: 16.15 MB / 0.5459 GB, free: 128.4 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001104/0.7499, allocations: 1.707 MB / 0.5476 GB, free: 126.7 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005271/0.7552, allocations: 4.206 MB / 0.5517 GB, free: 125.2 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003684/0.7556, allocations: 53.11 kB / 0.5517 GB, free: 125.2 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001827/0.7574, allocations: 3.537 MB / 0.5552 GB, free: 122.8 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006931/0.7581, allocations: 0.8492 MB / 0.556 GB, free: 122.2 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001359/0.7595, allocations: 1.368 MB / 0.5574 GB, free: 121.5 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.095e-05/0.7596, allocations: 305 kB / 0.5577 GB, free: 121.2 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002733/0.7623, allocations: 2.262 MB / 0.5599 GB, free: 120.5 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004187/0.7665, allocations: 6.394 MB / 0.5661 GB, free: 113.2 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007768/0.7743, allocations: 9.324 MB / 0.5752 GB, free: 102.3 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001022/0.7744, allocations: 40 kB / 0.5753 GB, free: 102.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.02005/0.7945, allocations: 10.09 MB / 0.5851 GB, free: 92.18 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.815e-05/0.7946, allocations: 64 kB / 0.5852 GB, free: 92.11 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01003/0.8046, allocations: 3.792 MB / 0.5889 GB, free: 88.31 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009407/0.8141, allocations: 2.164 MB / 0.591 GB, free: 86.13 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004993/0.8191, allocations: 1.58 MB / 0.5925 GB, free: 84.55 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007311/0.8264, allocations: 6.616 MB / 0.599 GB, free: 77.66 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005332/0.8318, allocations: 431.2 kB / 0.5994 GB, free: 77.24 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009863/0.8328, allocations: 416 kB / 0.5998 GB, free: 76.83 MB / 462.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.003169/0.836, allocations: 2.216 MB / 0.602 GB, free: 74.61 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005851/0.8366, allocations: 397.4 kB / 0.6023 GB, free: 74.21 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005364/0.842, allocations: 3.289 MB / 0.6055 GB, free: 70.9 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004356/0.8464, allocations: 2.734 MB / 0.6082 GB, free: 68.15 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.174e-05/0.8464, allocations: 11.92 kB / 0.6082 GB, free: 68.14 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.027e-05/0.8464, allocations: 7.969 kB / 0.6082 GB, free: 68.13 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.015/0.8614, allocations: 10.34 MB / 0.6183 GB, free: 57.56 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.716e-05/0.8615, allocations: 12 kB / 0.6183 GB, free: 57.55 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001445/0.8629, allocations: 363.5 kB / 0.6187 GB, free: 57.19 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002692/0.8656, allocations: 0.9866 MB / 0.6196 GB, free: 56.19 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001927/0.8658, allocations: 67.97 kB / 0.6197 GB, free: 56.12 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004199/0.8701, allocations: 4.892 MB / 0.6245 GB, free: 50.95 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008459/0.8709, allocations: 1.561 MB / 0.626 GB, free: 49.24 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007494/0.8784, allocations: 5.945 MB / 0.6318 GB, free: 43.11 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001088/0.8795, allocations: 458.2 kB / 0.6323 GB, free: 42.64 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004554/0.88, allocations: 59.92 kB / 0.6323 GB, free: 42.58 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001567/0.8816, allocations: 147.8 kB / 0.6325 GB, free: 42.44 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002849/0.8819, allocations: 172.4 kB / 0.6326 GB, free: 42.27 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001283/0.882, allocations: 75.98 kB / 0.6327 GB, free: 42.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003325/0.8853, allocations: 2.593 MB / 0.6352 GB, free: 39.59 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.8854, allocations: 0 / 0.6352 GB, free: 39.59 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005065/0.8904, allocations: 1.164 MB / 0.6364 GB, free: 38.43 MB / 462.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.0004646/0.8909, allocations: 222.4 kB / 0.6366 GB, free: 38.21 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00889/0.8998, allocations: 6.035 MB / 0.6425 GB, free: 32.13 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.107e-05/0.8999, allocations: 4 kB / 0.6425 GB, free: 32.13 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003401/0.9033, allocations: 2.212 MB / 0.6446 GB, free: 29.85 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003628/0.9069, allocations: 0.4969 MB / 0.6451 GB, free: 29.36 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01309/0.92, allocations: 10.74 MB / 0.6556 GB, free: 18.39 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002879/0.9229, allocations: 3.453 MB / 0.659 GB, free: 14.9 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003899/0.9268, allocations: 2.034 MB / 0.661 GB, free: 12.86 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006579/0.9275, allocations: 271.4 kB / 0.6612 GB, free: 12.6 MB / 462.1 MB Notification: Performance of SimCode: time 9.62e-07/0.9275, allocations: 0 / 0.6612 GB, free: 12.6 MB / 462.1 MB Notification: Performance of Templates: time 0.0669/0.9944, allocations: 38.4 MB / 0.6987 GB, free: 6.457 MB / 494.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches