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.0009851/0.0009851, allocations: 92.84 kB / 16.95 MB, free: 6.891 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.0008939/0.0008939, allocations: 186.5 kB / 17.84 MB, free: 6.137 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.451/1.451, allocations: 205.4 MB / 224 MB, free: 13.16 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.0004552/0.0004554, allocations: 8 kB / 280.8 MB, free: 3.723 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1023, allocations: 47.59 MB / 328.4 MB, free: 4.066 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.0416/0.144, allocations: 42.55 MB / 370.9 MB, free: 9.391 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.216/0.36, allocations: 9.429 MB / 380.3 MB, free: 8.703 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007741/0.3678, allocations: 198.8 kB / 380.5 MB, free: 8.703 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007034/0.3749, allocations: 2.186 MB / 382.7 MB, free: 8.695 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02223/0.3971, allocations: 6.59 MB / 389.3 MB, free: 8.359 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004042/0.4012, allocations: 0.6949 MB / 390 MB, free: 8.344 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009523/0.4108, allocations: 5.219 MB / 395.2 MB, free: 7.367 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007434/0.4182, allocations: 4.52 MB / 399.7 MB, free: 6.023 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003246/0.4215, allocations: 1.396 MB / 401.1 MB, free: 5.785 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003638/0.4252, allocations: 2.195 MB / 403.3 MB, free: 5.246 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008124/0.426, allocations: 166.7 kB / 403.5 MB, free: 5.246 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002306/0.4283, allocations: 0.9808 MB / 404.5 MB, free: 4.988 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001583/0.4299, allocations: 1.875 MB / 406.4 MB, free: 4.312 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009587/0.4309, allocations: 0.896 MB / 407.3 MB, free: 4.098 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00525/0.4361, allocations: 5.705 MB / 413 MB, free: 1.047 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.4362, allocations: 0 / 413 MB, free: 1.047 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.866e-06/0.4362, allocations: 0 / 413 MB, free: 1.047 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001835/0.4364, allocations: 4 kB / 413 MB, free: 1.043 MB / 318.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.008537/0.4449, allocations: 4.393 MB / 417.4 MB, free: 14.03 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.24e-05/0.445, allocations: 8.031 kB / 417.4 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007757/0.4527, allocations: 2.163 MB / 419.5 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004649/0.4574, allocations: 2.543 MB / 422.1 MB, free: 9.879 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001947/0.4576, allocations: 279 kB / 422.3 MB, free: 9.727 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009676/0.4586, allocations: 428.4 kB / 422.8 MB, free: 9.441 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0229/0.4815, allocations: 12.22 MB / 435 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000131/0.4817, allocations: 50.47 kB / 435 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004627/0.4822, allocations: 174.8 kB / 435.2 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003123/0.4853, allocations: 2.163 MB / 437.4 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02024/0.5056, allocations: 10.19 MB / 447.6 MB, free: 5.809 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05268/0.5583, allocations: 44.29 MB / 491.8 MB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01124/0.5696, allocations: 4.604 MB / 496.4 MB, free: 6.039 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002646/0.5723, allocations: 1.712 MB / 498.2 MB, free: 4.312 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0118/0.5841, allocations: 8.221 MB / 0.4945 GB, free: 11.79 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.893e-05/0.5842, allocations: 55.88 kB / 0.4946 GB, free: 11.73 MB / 414.1 MB Notification: Performance of pre-optimization done (n=183): time 4.028e-06/0.5842, allocations: 0 / 0.4946 GB, free: 11.73 MB / 414.1 MB Notification: Performance of matching and sorting (n=205): time 0.03588/0.6201, allocations: 15.96 MB / 0.5102 GB, free: 11.62 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001163/0.6213, allocations: 1.605 MB / 0.5117 GB, free: 9.84 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005581/0.6269, allocations: 4.191 MB / 0.5158 GB, free: 5.633 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002935/0.6272, allocations: 53.7 kB / 0.5159 GB, free: 5.574 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002372/0.6295, allocations: 3.402 MB / 0.5192 GB, free: 2.191 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009689/0.6305, allocations: 0.8057 MB / 0.52 GB, free: 1.395 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003022/0.6308, allocations: 136.1 kB / 0.5201 GB, free: 1.262 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0003502/0.6312, allocations: 0.5952 MB / 0.5207 GB, free: 0.6602 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003364/0.6346, allocations: 2.242 MB / 0.5229 GB, free: 14.41 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005775/0.6404, allocations: 6.367 MB / 0.5291 GB, free: 6.008 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005151/0.6455, allocations: 3.654 MB / 0.5327 GB, free: 2.359 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.146e-05/0.6456, allocations: 44.33 kB / 0.5327 GB, free: 2.316 MB / 446.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.2037/0.8493, allocations: 10 MB / 0.5425 GB, free: 156.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001214/0.8495, allocations: 70.19 kB / 0.5425 GB, free: 156.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01006/0.8596, allocations: 3.789 MB / 0.5462 GB, free: 156 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008637/0.8683, allocations: 2.186 MB / 0.5484 GB, free: 155.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005046/0.8733, allocations: 1.587 MB / 0.5499 GB, free: 155.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007371/0.8807, allocations: 6.044 MB / 0.5558 GB, free: 152.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00531/0.8861, allocations: 429.5 kB / 0.5562 GB, free: 152.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009706/0.8871, allocations: 420.1 kB / 0.5566 GB, free: 152.1 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 (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003525/0.8906, allocations: 2.225 MB / 0.5588 GB, free: 151.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005711/0.8912, allocations: 372.1 kB / 0.5592 GB, free: 151.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005304/0.8965, allocations: 3.28 MB / 0.5624 GB, free: 149.7 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004171/0.9007, allocations: 2.738 MB / 0.565 GB, free: 148.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.056e-05/0.9007, allocations: 3.969 kB / 0.565 GB, free: 148.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.785e-05/0.9008, allocations: 15.86 kB / 0.5651 GB, free: 148.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01375/0.9145, allocations: 10.34 MB / 0.5752 GB, free: 138.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.915e-05/0.9146, allocations: 12 kB / 0.5752 GB, free: 138.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001283/0.9159, allocations: 364.1 kB / 0.5755 GB, free: 138.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002373/0.9182, allocations: 0.9939 MB / 0.5765 GB, free: 137.4 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001376/0.9184, allocations: 55.98 kB / 0.5765 GB, free: 137.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003644/0.922, allocations: 4.598 MB / 0.581 GB, free: 132.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007094/0.9228, allocations: 1.468 MB / 0.5825 GB, free: 131 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007393/0.9302, allocations: 5.9 MB / 0.5882 GB, free: 125.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001894/0.9321, allocations: 0.66 MB / 0.5889 GB, free: 124.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004444/0.9326, allocations: 59.28 kB / 0.5889 GB, free: 124.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001429/0.934, allocations: 149 kB / 0.5891 GB, free: 124.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002494/0.9343, allocations: 176.5 kB / 0.5892 GB, free: 124 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001339/0.9344, allocations: 71.98 kB / 0.5893 GB, free: 123.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003377/0.9378, allocations: 2.59 MB / 0.5918 GB, free: 121.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.9378, allocations: 0 / 0.5918 GB, free: 121.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005517/0.9433, allocations: 1.165 MB / 0.593 GB, free: 120.2 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 (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005565/0.9439, allocations: 217.1 kB / 0.5932 GB, free: 120 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008783/0.9527, allocations: 5.948 MB / 0.599 GB, free: 114 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.426e-06/0.9527, allocations: 4 kB / 0.599 GB, free: 114 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002982/0.9557, allocations: 2.182 MB / 0.6011 GB, free: 111.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003224/0.9589, allocations: 490.1 kB / 0.6016 GB, free: 111.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01724/0.9762, allocations: 12.63 MB / 0.6139 GB, free: 98.39 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00299/0.9792, allocations: 3.467 MB / 0.6173 GB, free: 94.89 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004469/0.9837, allocations: 2.025 MB / 0.6193 GB, free: 92.86 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005985/0.9843, allocations: 275.4 kB / 0.6195 GB, free: 92.59 MB / 446.1 MB Notification: Performance of SimCode: time 8.92e-07/0.9844, allocations: 0 / 0.6195 GB, free: 92.59 MB / 446.1 MB Notification: Performance of Templates: time 0.06103/1.045, allocations: 39.4 MB / 0.658 GB, free: 53.21 MB / 446.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","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches