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.00116/0.00116, allocations: 114.4 kB / 17.69 MB, free: 5.309 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.001088/0.001088, allocations: 191 kB / 18.63 MB, free: 4.375 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.335/1.335, allocations: 222.9 MB / 242.3 MB, free: 15.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001055/0.001056, allocations: 49.33 kB / 302.1 MB, free: 5.23 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.106, allocations: 49.44 MB / 351.5 MB, free: 3.766 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01295/0.119, allocations: 12.01 MB / 363.5 MB, free: 7.691 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008397/0.1275, allocations: 4.199 MB / 367.7 MB, free: 3.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00203/0.1295, allocations: 75.75 kB / 367.8 MB, free: 3.406 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004977/0.1346, allocations: 2.745 MB / 370.5 MB, free: 0.6523 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1732/0.3078, allocations: 1.967 MB / 372.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00177/0.3095, allocations: 0.8085 MB / 373.3 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006735/0.3163, allocations: 4.604 MB / 377.9 MB, free: 9.984 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004804/0.3211, allocations: 3.544 MB / 381.5 MB, free: 9.613 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003204/0.3244, allocations: 1.692 MB / 383.1 MB, free: 9.359 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003423/0.3278, allocations: 2.331 MB / 385.5 MB, free: 8.645 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008802/0.3287, allocations: 357.1 kB / 385.8 MB, free: 8.641 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002538/0.3312, allocations: 1.284 MB / 387.1 MB, free: 8.457 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001841/0.3331, allocations: 2.096 MB / 389.2 MB, free: 7.727 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002151/0.3353, allocations: 2.431 MB / 391.6 MB, free: 5.93 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005994/0.3413, allocations: 7.525 MB / 399.2 MB, free: 1.043 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.3413, allocations: 0 / 399.2 MB, free: 1.043 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.3413, allocations: 0 / 399.2 MB, free: 1.043 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001386/0.3414, allocations: 0 / 399.2 MB, free: 1.043 MB / 302.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.009195/0.3506, allocations: 5.281 MB / 404.4 MB, free: 12.21 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.3507, allocations: 8.031 kB / 404.4 MB, free: 12.21 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007584/0.3583, allocations: 2.111 MB / 406.6 MB, free: 10.09 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004936/0.3632, allocations: 2.535 MB / 409.1 MB, free: 7.535 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001741/0.3634, allocations: 275.8 kB / 409.4 MB, free: 7.305 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008057/0.3643, allocations: 424.3 kB / 409.8 MB, free: 6.934 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02074/0.385, allocations: 12.23 MB / 422 MB, free: 10.02 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001278/0.3852, allocations: 47.53 kB / 422.1 MB, free: 9.977 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004373/0.3856, allocations: 185.1 kB / 422.2 MB, free: 9.836 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00297/0.3886, allocations: 2.157 MB / 424.4 MB, free: 7.68 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0192/0.4078, allocations: 10.2 MB / 434.6 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04905/0.4569, allocations: 44.12 MB / 478.7 MB, free: 360 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01087/0.4678, allocations: 4.602 MB / 483.3 MB, free: 11.56 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002349/0.4702, allocations: 1.72 MB / 485 MB, free: 9.828 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01127/0.4815, allocations: 8.229 MB / 493.3 MB, free: 1.277 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.177e-05/0.4815, allocations: 55.8 kB / 493.3 MB, free: 1.215 MB / 398.1 MB Notification: Performance of pre-optimization done (n=183): time 4.188e-06/0.4815, allocations: 3.938 kB / 493.3 MB, free: 1.211 MB / 398.1 MB Notification: Performance of matching and sorting (n=205): time 0.03729/0.5188, allocations: 15.92 MB / 0.4973 GB, free: 1.133 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001191/0.5201, allocations: 1.693 MB / 0.499 GB, free: 15.26 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00522/0.5253, allocations: 4.195 MB / 0.5031 GB, free: 11.04 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002882/0.5256, allocations: 53.7 kB / 0.5031 GB, free: 10.98 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002025/0.5276, allocations: 3.391 MB / 0.5064 GB, free: 7.594 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007776/0.5284, allocations: 0.8068 MB / 0.5072 GB, free: 6.793 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001581/0.53, allocations: 1.356 MB / 0.5085 GB, free: 5.43 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.596e-05/0.5301, allocations: 309.1 kB / 0.5088 GB, free: 5.125 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003133/0.5333, allocations: 2.266 MB / 0.511 GB, free: 2.855 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005522/0.5388, allocations: 6.396 MB / 0.5173 GB, free: 10.42 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1782/0.717, allocations: 9.324 MB / 0.5264 GB, free: 142 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001496/0.7172, allocations: 45.94 kB / 0.5264 GB, free: 142 MB / 446.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.02548/0.7426, allocations: 10.05 MB / 0.5363 GB, free: 140.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001111/0.7428, allocations: 67.59 kB / 0.5363 GB, free: 140.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01097/0.7538, allocations: 3.794 MB / 0.54 GB, free: 139.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009952/0.7638, allocations: 2.166 MB / 0.5421 GB, free: 139.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005644/0.7694, allocations: 1.583 MB / 0.5437 GB, free: 138.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007846/0.7773, allocations: 6.603 MB / 0.5501 GB, free: 135.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005159/0.7825, allocations: 431.3 kB / 0.5505 GB, free: 135 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007621/0.7833, allocations: 419.4 kB / 0.5509 GB, free: 135 MB / 446.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.002982/0.7863, allocations: 2.224 MB / 0.5531 GB, free: 134 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000525/0.7868, allocations: 372.7 kB / 0.5535 GB, free: 134 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005448/0.7923, allocations: 3.282 MB / 0.5567 GB, free: 132.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004454/0.7968, allocations: 2.745 MB / 0.5594 GB, free: 131.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.235e-05/0.7968, allocations: 0 / 0.5594 GB, free: 131.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.959e-05/0.7968, allocations: 11.91 kB / 0.5594 GB, free: 131.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01521/0.812, allocations: 10.32 MB / 0.5694 GB, free: 121.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-05/0.8121, allocations: 20.09 kB / 0.5695 GB, free: 121.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001381/0.8135, allocations: 375.4 kB / 0.5698 GB, free: 121.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002613/0.8161, allocations: 0.9786 MB / 0.5708 GB, free: 120.4 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001951/0.8163, allocations: 59.97 kB / 0.5708 GB, free: 120.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003753/0.8201, allocations: 4.9 MB / 0.5756 GB, free: 115.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006666/0.8208, allocations: 1.558 MB / 0.5771 GB, free: 113.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007347/0.8281, allocations: 5.919 MB / 0.5829 GB, free: 107.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001065/0.8292, allocations: 440.1 kB / 0.5833 GB, free: 107.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004073/0.8296, allocations: 65.61 kB / 0.5834 GB, free: 107.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001533/0.8312, allocations: 135.8 kB / 0.5835 GB, free: 107 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002811/0.8315, allocations: 176.4 kB / 0.5837 GB, free: 106.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001342/0.8316, allocations: 86.62 kB / 0.5838 GB, free: 106.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003172/0.8348, allocations: 2.589 MB / 0.5863 GB, free: 104.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.52e-07/0.8348, allocations: 0 / 0.5863 GB, free: 104.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005311/0.8401, allocations: 1.163 MB / 0.5875 GB, free: 102.9 MB / 446.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.0005164/0.8407, allocations: 226.9 kB / 0.5877 GB, free: 102.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008927/0.8496, allocations: 6.03 MB / 0.5936 GB, free: 96.67 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.498e-05/0.8496, allocations: 4 kB / 0.5936 GB, free: 96.66 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003281/0.8529, allocations: 2.189 MB / 0.5957 GB, free: 94.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002937/0.8559, allocations: 0.4982 MB / 0.5962 GB, free: 93.92 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01382/0.8697, allocations: 10.62 MB / 0.6066 GB, free: 83.11 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002735/0.8725, allocations: 3.451 MB / 0.6099 GB, free: 79.63 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003791/0.8763, allocations: 2.026 MB / 0.6119 GB, free: 77.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006155/0.8769, allocations: 279.4 kB / 0.6122 GB, free: 77.32 MB / 446.1 MB Notification: Performance of SimCode: time 1.012e-06/0.8769, allocations: 0 / 0.6122 GB, free: 77.32 MB / 446.1 MB Notification: Performance of Templates: time 0.05799/0.9349, allocations: 36.21 MB / 0.6475 GB, free: 41.44 MB / 446.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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringDamperSystem/SpringDamperSystem.csv","/var/lib/jenkins1/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