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.001131/0.001131, allocations: 110.5 kB / 17.73 MB, free: 5.352 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.00129/0.001291, allocations: 187.1 kB / 18.66 MB, free: 4.43 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.442/1.442, allocations: 205.1 MB / 224.5 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.001531/0.001531, allocations: 47.94 kB / 328.5 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09323/0.09477, allocations: 46.63 MB / 375.2 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.2075/0.3023, allocations: 12.03 MB / 387.2 MB, free: 6.469 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009805/0.3122, allocations: 4.194 MB / 391.4 MB, free: 4.012 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002822/0.3151, allocations: 68.34 kB / 391.4 MB, free: 4 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00583/0.3209, allocations: 2.759 MB / 394.2 MB, free: 2.707 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006667/0.3276, allocations: 1.975 MB / 396.2 MB, free: 1.789 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001984/0.3296, allocations: 0.805 MB / 397 MB, free: 1.453 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007391/0.337, allocations: 4.626 MB / 401.6 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004504/0.3415, allocations: 3.56 MB / 405.2 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003256/0.3448, allocations: 1.701 MB / 406.9 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003455/0.3483, allocations: 2.351 MB / 409.2 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001313/0.3496, allocations: 354.8 kB / 409.6 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00311/0.3527, allocations: 1.259 MB / 410.8 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002573/0.3553, allocations: 2.107 MB / 412.9 MB, free: 9.625 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0033/0.3586, allocations: 2.435 MB / 415.4 MB, free: 7.262 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008667/0.3673, allocations: 7.567 MB / 422.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.3674, allocations: 0 / 422.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3674, allocations: 4 kB / 422.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002045/0.3676, allocations: 0 / 422.9 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.01131/0.3789, allocations: 5.413 MB / 428.4 MB, free: 10.17 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.48e-05/0.379, allocations: 12.03 kB / 428.4 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007899/0.3869, allocations: 2.146 MB / 430.5 MB, free: 8.004 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00477/0.3917, allocations: 2.646 MB / 433.2 MB, free: 5.297 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001989/0.3919, allocations: 270.9 kB / 433.4 MB, free: 5.031 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001095/0.393, allocations: 431.6 kB / 433.8 MB, free: 4.609 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02341/0.4164, allocations: 12.22 MB / 446.1 MB, free: 7.582 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001325/0.4166, allocations: 55.56 kB / 446.1 MB, free: 7.527 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004581/0.4171, allocations: 179.8 kB / 446.3 MB, free: 7.352 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003278/0.4204, allocations: 2.158 MB / 448.5 MB, free: 5.191 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02248/0.4429, allocations: 10.21 MB / 458.7 MB, free: 10.96 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0553/0.4982, allocations: 44.21 MB / 0.4911 GB, free: 13.51 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01167/0.5099, allocations: 4.605 MB / 0.4956 GB, free: 8.703 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002602/0.5126, allocations: 1.725 MB / 0.4973 GB, free: 6.969 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01231/0.5249, allocations: 8.241 MB / 0.5053 GB, free: 14.34 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.985e-05/0.525, allocations: 51.81 kB / 0.5054 GB, free: 14.28 MB / 446.1 MB Notification: Performance of pre-optimization done (n=183): time 5.36e-06/0.525, allocations: 0 / 0.5054 GB, free: 14.28 MB / 446.1 MB Notification: Performance of matching and sorting (n=205): time 0.04182/0.5669, allocations: 16.21 MB / 0.5212 GB, free: 13.92 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001319/0.5682, allocations: 1.703 MB / 0.5229 GB, free: 12.04 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00632/0.5746, allocations: 4.224 MB / 0.527 GB, free: 7.797 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005114/0.5751, allocations: 57.7 kB / 0.527 GB, free: 7.734 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002596/0.5777, allocations: 3.544 MB / 0.5305 GB, free: 4.156 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001114/0.5788, allocations: 0.8451 MB / 0.5313 GB, free: 3.305 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001837/0.5807, allocations: 1.37 MB / 0.5327 GB, free: 1.926 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.5808, allocations: 301.1 kB / 0.5329 GB, free: 1.629 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003554/0.5844, allocations: 2.262 MB / 0.5352 GB, free: 15.36 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006592/0.591, allocations: 6.394 MB / 0.5414 GB, free: 6.922 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2395/0.8305, allocations: 9.327 MB / 0.5505 GB, free: 140 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001821/0.8307, allocations: 40.72 kB / 0.5505 GB, free: 140 MB / 478.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.02687/0.8576, allocations: 10.07 MB / 0.5604 GB, free: 137.6 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001188/0.8578, allocations: 72.16 kB / 0.5605 GB, free: 137.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01162/0.8694, allocations: 3.789 MB / 0.5642 GB, free: 136.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01046/0.8799, allocations: 2.166 MB / 0.5663 GB, free: 136.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005255/0.8852, allocations: 1.581 MB / 0.5678 GB, free: 136.4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009237/0.8945, allocations: 6.613 MB / 0.5743 GB, free: 132.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005842/0.9004, allocations: 429.4 kB / 0.5747 GB, free: 132.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001148/0.9015, allocations: 415.8 kB / 0.5751 GB, free: 132.5 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.00386/0.9054, allocations: 2.217 MB / 0.5772 GB, free: 131.6 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007732/0.9062, allocations: 393.7 kB / 0.5776 GB, free: 131.6 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005693/0.9119, allocations: 3.281 MB / 0.5808 GB, free: 130.5 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00438/0.9163, allocations: 2.746 MB / 0.5835 GB, free: 129.5 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.163e-05/0.9163, allocations: 3.281 kB / 0.5835 GB, free: 129.5 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.927e-05/0.9164, allocations: 7.969 kB / 0.5835 GB, free: 129.5 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01731/0.9337, allocations: 10.35 MB / 0.5936 GB, free: 121.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-05/0.9337, allocations: 12 kB / 0.5936 GB, free: 121.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002/0.9357, allocations: 363.5 kB / 0.594 GB, free: 121.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003813/0.9396, allocations: 0.9935 MB / 0.595 GB, free: 120.2 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003161/0.9399, allocations: 59.97 kB / 0.595 GB, free: 120.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004834/0.9448, allocations: 4.903 MB / 0.5998 GB, free: 115 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000687/0.9455, allocations: 1.558 MB / 0.6013 GB, free: 113.3 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00896/0.9544, allocations: 5.933 MB / 0.6071 GB, free: 107.4 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002046/0.9565, allocations: 0.6748 MB / 0.6078 GB, free: 106.7 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001004/0.9575, allocations: 57.86 kB / 0.6078 GB, free: 106.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002918/0.9605, allocations: 151.7 kB / 0.608 GB, free: 106.5 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004139/0.9609, allocations: 168.5 kB / 0.6081 GB, free: 106.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000178/0.9611, allocations: 80.91 kB / 0.6082 GB, free: 106.2 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005084/0.9662, allocations: 2.605 MB / 0.6108 GB, free: 103.6 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.9662, allocations: 0 / 0.6108 GB, free: 103.6 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.009381/0.9756, allocations: 1.166 MB / 0.6119 GB, free: 102.4 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.0007869/0.9764, allocations: 228.1 kB / 0.6121 GB, free: 102.2 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01246/0.9889, allocations: 6.036 MB / 0.618 GB, free: 96.17 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.337e-05/0.989, allocations: 0 / 0.618 GB, free: 96.17 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003318/0.9923, allocations: 2.206 MB / 0.6202 GB, free: 93.9 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002864/0.9952, allocations: 0.4921 MB / 0.6206 GB, free: 93.43 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01341/1.009, allocations: 10.79 MB / 0.6312 GB, free: 82.46 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00289/1.012, allocations: 3.471 MB / 0.6346 GB, free: 78.95 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003845/1.015, allocations: 2.02 MB / 0.6365 GB, free: 76.93 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006485/1.016, allocations: 275.4 kB / 0.6368 GB, free: 76.66 MB / 478.1 MB Notification: Performance of SimCode: time 9.51e-07/1.016, allocations: 0 / 0.6368 GB, free: 76.66 MB / 478.1 MB Notification: Performance of Templates: time 0.05878/1.075, allocations: 38.47 MB / 0.6744 GB, free: 38.25 MB / 478.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringDamperSystem/SpringDamperSystem.csv","/var/lib/jenkins/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