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.0007817/0.0007818, allocations: 93.31 kB / 17.31 MB, free: 6.535 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.0008373/0.0008373, allocations: 175.5 kB / 18.21 MB, free: 5.684 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.12/1.12, allocations: 223.3 MB / 242.3 MB, free: 204 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002034/0.0002034, allocations: 8 kB / 302.1 MB, free: 6.133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06985/0.07006, allocations: 50.4 MB / 352.5 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.1607/0.2308, allocations: 45.71 MB / 398.2 MB, free: 376 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01766/0.2485, allocations: 9.904 MB / 408.1 MB, free: 9.922 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006176/0.2547, allocations: 197.9 kB / 408.3 MB, free: 9.891 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001129/0.2559, allocations: 453.6 kB / 408.7 MB, free: 9.555 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003882/0.2598, allocations: 1.855 MB / 410.6 MB, free: 8.266 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001382/0.2612, allocations: 0.7529 MB / 411.3 MB, free: 7.758 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005641/0.2668, allocations: 6.493 MB / 417.8 MB, free: 3.055 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005177/0.272, allocations: 4.921 MB / 422.8 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001389/0.2734, allocations: 1.28 MB / 424 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002048/0.2755, allocations: 2.219 MB / 426.3 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002744/0.2758, allocations: 160 kB / 426.4 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001664/0.2774, allocations: 1.151 MB / 427.6 MB, free: 9.238 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001345/0.2788, allocations: 1.905 MB / 429.5 MB, free: 7.328 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001559/0.2804, allocations: 2.202 MB / 431.7 MB, free: 5.105 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004266/0.2846, allocations: 5.71 MB / 437.4 MB, free: 15.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.035e-06/0.2847, allocations: 0 / 437.4 MB, free: 15.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.2847, allocations: 0 / 437.4 MB, free: 15.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.383e-05/0.2847, allocations: 0 / 437.4 MB, free: 15.38 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.006245/0.291, allocations: 4.33 MB / 441.7 MB, free: 10.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.243e-05/0.291, allocations: 8.031 kB / 441.7 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00693/0.298, allocations: 2.167 MB / 443.9 MB, free: 8.801 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003157/0.3011, allocations: 2.493 MB / 446.4 MB, free: 6.246 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001706/0.3013, allocations: 274.8 kB / 446.6 MB, free: 5.977 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007695/0.3021, allocations: 431.6 kB / 447.1 MB, free: 5.555 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01676/0.3189, allocations: 12.24 MB / 459.3 MB, free: 8.504 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.667e-05/0.319, allocations: 59.45 kB / 459.4 MB, free: 8.445 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003694/0.3193, allocations: 175.8 kB / 459.5 MB, free: 8.273 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002796/0.3221, allocations: 2.162 MB / 461.7 MB, free: 6.105 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01716/0.3393, allocations: 10.23 MB / 471.9 MB, free: 11.85 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03956/0.3789, allocations: 44.31 MB / 0.5041 GB, free: 14.3 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01002/0.3889, allocations: 4.606 MB / 0.5086 GB, free: 9.496 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002034/0.391, allocations: 1.723 MB / 0.5103 GB, free: 7.766 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009385/0.4004, allocations: 8.231 MB / 0.5184 GB, free: 15.15 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.273e-05/0.4005, allocations: 55.86 kB / 0.5184 GB, free: 15.09 MB / 446.1 MB Notification: Performance of pre-optimization done (n=183): time 3.918e-06/0.4005, allocations: 0 / 0.5184 GB, free: 15.09 MB / 446.1 MB Notification: Performance of matching and sorting (n=205): time 0.1884/0.5888, allocations: 15.92 MB / 0.534 GB, free: 115.3 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009137/0.5898, allocations: 1.604 MB / 0.5355 GB, free: 113.8 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005838/0.5956, allocations: 4.195 MB / 0.5396 GB, free: 113.5 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002754/0.5959, allocations: 55.05 kB / 0.5397 GB, free: 113.5 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001484/0.5974, allocations: 3.402 MB / 0.543 GB, free: 111.9 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005576/0.598, allocations: 0.8058 MB / 0.5438 GB, free: 111.5 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006044/0.5986, allocations: 0.5766 MB / 0.5443 GB, free: 111.4 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 2.627e-05/0.5986, allocations: 302.2 kB / 0.5446 GB, free: 111.1 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002938/0.6016, allocations: 2.265 MB / 0.5468 GB, free: 111.1 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003925/0.6055, allocations: 6.401 MB / 0.5531 GB, free: 105.8 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006548/0.6121, allocations: 9.316 MB / 0.5622 GB, free: 98.52 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.987e-05/0.6121, allocations: 43.44 kB / 0.5622 GB, free: 98.52 MB / 446.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.01636/0.6285, allocations: 10.06 MB / 0.5721 GB, free: 95.79 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.842e-05/0.6286, allocations: 74.55 kB / 0.5721 GB, free: 95.79 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009007/0.6376, allocations: 3.79 MB / 0.5758 GB, free: 92.37 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008717/0.6464, allocations: 2.171 MB / 0.578 GB, free: 90.19 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003574/0.6499, allocations: 1.578 MB / 0.5795 GB, free: 88.75 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006132/0.6561, allocations: 6.072 MB / 0.5854 GB, free: 82.49 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003802/0.6599, allocations: 432.1 kB / 0.5858 GB, free: 82.07 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003352/0.6602, allocations: 413.4 kB / 0.5862 GB, free: 81.66 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.00216/0.6624, allocations: 2.213 MB / 0.5884 GB, free: 79.58 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003471/0.6628, allocations: 375.2 kB / 0.5888 GB, free: 79.21 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004872/0.6676, allocations: 3.292 MB / 0.592 GB, free: 75.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003982/0.6716, allocations: 2.744 MB / 0.5946 GB, free: 73.15 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.348e-06/0.6717, allocations: 0 / 0.5946 GB, free: 73.15 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.442e-05/0.6717, allocations: 15.95 kB / 0.5947 GB, free: 73.13 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0117/0.6834, allocations: 10.33 MB / 0.6047 GB, free: 62.67 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.286e-05/0.6834, allocations: 12 kB / 0.6048 GB, free: 62.66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001172/0.6846, allocations: 370.7 kB / 0.6051 GB, free: 62.32 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002441/0.687, allocations: 0.9889 MB / 0.6061 GB, free: 61.32 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001054/0.6872, allocations: 65.38 kB / 0.6061 GB, free: 61.25 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003305/0.6905, allocations: 4.6 MB / 0.6106 GB, free: 56.41 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0005695/0.691, allocations: 1.474 MB / 0.6121 GB, free: 54.82 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006239/0.6973, allocations: 5.91 MB / 0.6178 GB, free: 48.73 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005592/0.6979, allocations: 448 kB / 0.6183 GB, free: 48.27 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003161/0.6982, allocations: 59.97 kB / 0.6183 GB, free: 48.21 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001369/0.6996, allocations: 148.6 kB / 0.6185 GB, free: 48.06 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002264/0.6998, allocations: 177.4 kB / 0.6186 GB, free: 47.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000115/0.6999, allocations: 73.62 kB / 0.6187 GB, free: 47.83 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002487/0.7024, allocations: 2.593 MB / 0.6212 GB, free: 45.23 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.7024, allocations: 0 / 0.6212 GB, free: 45.23 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00381/0.7062, allocations: 1.169 MB / 0.6224 GB, free: 44.07 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.000337/0.7066, allocations: 222.2 kB / 0.6226 GB, free: 43.88 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006884/0.7135, allocations: 5.974 MB / 0.6284 GB, free: 38.03 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.91e-06/0.7135, allocations: 7.656 kB / 0.6284 GB, free: 38.03 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002897/0.7164, allocations: 2.191 MB / 0.6306 GB, free: 35.77 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008075/0.7245, allocations: 496.2 kB / 0.6311 GB, free: 35.29 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01156/0.7361, allocations: 13.56 MB / 0.6443 GB, free: 21.51 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00245/0.7385, allocations: 3.455 MB / 0.6477 GB, free: 18.02 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006777/0.7392, allocations: 327.4 kB / 0.648 GB, free: 17.7 MB / 446.1 MB Notification: Performance of SimCode: time 4.71e-07/0.7392, allocations: 0 / 0.648 GB, free: 17.7 MB / 446.1 MB Notification: Performance of Templates: time 0.2476/0.9868, allocations: 140.3 MB / 0.785 GB, free: 122.8 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/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