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.0008525/0.0008526, allocations: 93.91 kB / 17.3 MB, free: 6.066 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.0009419/0.0009421, allocations: 184.2 kB / 18.21 MB, free: 5.395 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.528/1.528, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.000455/0.000455, allocations: 12 kB / 281.4 MB, free: 3.418 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1039, allocations: 47.58 MB / 329 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.0437/0.1476, allocations: 45.73 MB / 374.7 MB, free: 5.848 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2534/0.4011, allocations: 9.897 MB / 384.6 MB, free: 8.898 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01164/0.4128, allocations: 199.1 kB / 384.8 MB, free: 8.898 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002559/0.4154, allocations: 457.5 kB / 385.2 MB, free: 8.898 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007349/0.4227, allocations: 1.854 MB / 387.1 MB, free: 8.801 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003548/0.4263, allocations: 0.7483 MB / 387.8 MB, free: 8.777 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01228/0.4386, allocations: 6.531 MB / 394.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0086/0.4473, allocations: 4.939 MB / 399.3 MB, free: 7.566 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003452/0.4508, allocations: 1.291 MB / 400.6 MB, free: 7.375 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003957/0.4548, allocations: 2.216 MB / 402.8 MB, free: 6.633 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001223/0.456, allocations: 164.3 kB / 403 MB, free: 6.629 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003237/0.4593, allocations: 1.143 MB / 404.1 MB, free: 6.352 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002539/0.4618, allocations: 1.921 MB / 406 MB, free: 5.543 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002543/0.4644, allocations: 2.206 MB / 408.2 MB, free: 3.926 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006549/0.471, allocations: 6.996 MB / 415.2 MB, free: 15.37 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.471, allocations: 0 / 415.2 MB, free: 15.37 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.474e-06/0.471, allocations: 0 / 415.2 MB, free: 15.37 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.000265/0.4713, allocations: 2.75 kB / 415.2 MB, free: 15.37 MB / 334.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.009683/0.481, allocations: 4.335 MB / 419.6 MB, free: 11.14 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.955e-05/0.481, allocations: 12.03 kB / 419.6 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008834/0.4899, allocations: 2.169 MB / 421.8 MB, free: 8.949 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006893/0.4968, allocations: 2.586 MB / 424.4 MB, free: 6.492 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000284/0.4971, allocations: 277.5 kB / 424.6 MB, free: 6.262 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001733/0.4989, allocations: 427.8 kB / 425 MB, free: 5.891 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02475/0.5236, allocations: 12.25 MB / 437.3 MB, free: 9.051 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001284/0.5238, allocations: 54.05 kB / 437.3 MB, free: 9.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000498/0.5243, allocations: 179.2 kB / 437.5 MB, free: 8.887 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003339/0.5276, allocations: 2.161 MB / 439.7 MB, free: 6.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02352/0.5512, allocations: 10.23 MB / 449.9 MB, free: 12.63 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05437/0.6056, allocations: 44.31 MB / 494.2 MB, free: 15.3 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01122/0.6168, allocations: 4.605 MB / 498.8 MB, free: 10.5 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002733/0.6196, allocations: 1.724 MB / 0.4888 GB, free: 8.758 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01272/0.6324, allocations: 8.227 MB / 0.4968 GB, free: 212 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.243e-05/0.6325, allocations: 51.81 kB / 0.4969 GB, free: 152 kB / 414.1 MB Notification: Performance of pre-optimization done (n=183): time 5.671e-06/0.6325, allocations: 3.938 kB / 0.4969 GB, free: 148 kB / 414.1 MB Notification: Performance of matching and sorting (n=205): time 0.04156/0.6741, allocations: 15.98 MB / 0.5125 GB, free: 15.99 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00123/0.6753, allocations: 1.597 MB / 0.5141 GB, free: 14.23 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006373/0.6817, allocations: 4.219 MB / 0.5182 GB, free: 9.988 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005186/0.6823, allocations: 57.7 kB / 0.5182 GB, free: 9.926 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002754/0.685, allocations: 3.402 MB / 0.5216 GB, free: 6.527 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00131/0.6864, allocations: 0.8121 MB / 0.5224 GB, free: 5.723 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008575/0.6872, allocations: 0.5755 MB / 0.5229 GB, free: 5.141 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.34e-05/0.6873, allocations: 305.1 kB / 0.5232 GB, free: 4.84 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003794/0.6911, allocations: 2.266 MB / 0.5254 GB, free: 2.57 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007121/0.6983, allocations: 6.394 MB / 0.5317 GB, free: 10.13 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2168/0.9151, allocations: 9.308 MB / 0.5408 GB, free: 171.4 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001602/0.9153, allocations: 42.44 kB / 0.5408 GB, free: 171.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.02894/0.9443, allocations: 10.06 MB / 0.5506 GB, free: 169.6 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001351/0.9445, allocations: 70.28 kB / 0.5507 GB, free: 169.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01258/0.957, allocations: 3.796 MB / 0.5544 GB, free: 168.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0107/0.9678, allocations: 2.167 MB / 0.5565 GB, free: 168.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005297/0.9731, allocations: 1.585 MB / 0.5581 GB, free: 168.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007772/0.9809, allocations: 6.054 MB / 0.564 GB, free: 165 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006013/0.987, allocations: 435.7 kB / 0.5644 GB, free: 164.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001183/0.9882, allocations: 416.8 kB / 0.5648 GB, free: 164.8 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.004613/0.9928, allocations: 2.213 MB / 0.5669 GB, free: 163.8 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008663/0.9937, allocations: 371.9 kB / 0.5673 GB, free: 163.8 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006072/0.9998, allocations: 3.299 MB / 0.5705 GB, free: 162 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004662/1.004, allocations: 2.758 MB / 0.5732 GB, free: 160.6 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.175e-05/1.005, allocations: 0 / 0.5732 GB, free: 160.6 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.676e-05/1.005, allocations: 11.91 kB / 0.5732 GB, free: 160.6 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01776/1.022, allocations: 10.34 MB / 0.5833 GB, free: 150.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.691e-05/1.022, allocations: 12 kB / 0.5833 GB, free: 150.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00138/1.024, allocations: 363.5 kB / 0.5837 GB, free: 150.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002642/1.026, allocations: 0.9868 MB / 0.5847 GB, free: 149.2 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002053/1.027, allocations: 63.97 kB / 0.5847 GB, free: 149.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003937/1.031, allocations: 4.593 MB / 0.5892 GB, free: 144.3 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007117/1.031, allocations: 1.48 MB / 0.5906 GB, free: 142.7 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008101/1.039, allocations: 5.918 MB / 0.5964 GB, free: 136.8 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001774/1.041, allocations: 0.66 MB / 0.5971 GB, free: 136.1 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007208/1.042, allocations: 59.97 kB / 0.5971 GB, free: 136 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001886/1.044, allocations: 151.7 kB / 0.5973 GB, free: 135.9 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003531/1.044, allocations: 172.4 kB / 0.5974 GB, free: 135.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001439/1.044, allocations: 78.38 kB / 0.5975 GB, free: 135.7 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003707/1.048, allocations: 2.605 MB / 0.6001 GB, free: 133 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.2e-07/1.048, allocations: 0 / 0.6001 GB, free: 133 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006729/1.055, allocations: 1.169 MB / 0.6012 GB, free: 131.9 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.0005924/1.055, allocations: 213.4 kB / 0.6014 GB, free: 131.7 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01125/1.067, allocations: 5.975 MB / 0.6072 GB, free: 125.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.805e-05/1.067, allocations: 4 kB / 0.6072 GB, free: 125.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005596/1.072, allocations: 2.184 MB / 0.6094 GB, free: 123.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01663/1.089, allocations: 488.3 kB / 0.6098 GB, free: 122.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03181/1.121, allocations: 13.15 MB / 0.6227 GB, free: 109.6 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008834/1.13, allocations: 3.462 MB / 0.6261 GB, free: 106.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.01109/1.141, allocations: 2.023 MB / 0.628 GB, free: 104 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001817/1.143, allocations: 279.3 kB / 0.6283 GB, free: 103.8 MB / 462.1 MB Notification: Performance of SimCode: time 1.433e-06/1.143, allocations: 0 / 0.6283 GB, free: 103.8 MB / 462.1 MB Notification: Performance of Templates: time 0.07723/1.22, allocations: 40.24 MB / 0.6676 GB, free: 63.55 MB / 462.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