Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009407/0.0009408, allocations: 98.94 kB / 17 MB, free: 6.121 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001282/0.001282, allocations: 198.3 kB / 17.91 MB, free: 5.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.344/1.344, allocations: 227.7 MB / 246.4 MB, free: 11.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002397/0.0002397, allocations: 4 kB / 307.1 MB, free: 1.145 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09422/0.09448, allocations: 51.53 MB / 358.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.2127/0.3072, allocations: 42.23 MB / 400.9 MB, free: 11.79 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02401/0.3312, allocations: 9.32 MB / 410.2 MB, free: 5.457 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008211/0.3395, allocations: 196.7 kB / 410.4 MB, free: 5.426 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006581/0.3461, allocations: 2.188 MB / 412.6 MB, free: 3.836 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01841/0.3645, allocations: 6.483 MB / 419.1 MB, free: 14.78 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003191/0.3677, allocations: 0.6943 MB / 419.7 MB, free: 14.08 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007725/0.3755, allocations: 5.252 MB / 425 MB, free: 8.812 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007506/0.383, allocations: 4.503 MB / 429.5 MB, free: 4.258 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002922/0.3859, allocations: 1.382 MB / 430.9 MB, free: 2.871 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003616/0.3896, allocations: 2.173 MB / 433.1 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001004/0.3906, allocations: 163.9 kB / 433.2 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002605/0.3932, allocations: 0.9713 MB / 434.2 MB, free: 15.56 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002497/0.3958, allocations: 1.851 MB / 436 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001611/0.3974, allocations: 0.8816 MB / 436.9 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006392/0.4038, allocations: 5.656 MB / 442.6 MB, free: 7.145 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.4038, allocations: 0 / 442.6 MB, free: 7.145 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.4038, allocations: 0 / 442.6 MB, free: 7.145 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002834/0.4041, allocations: 0 / 442.6 MB, free: 7.145 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.009608/0.4137, allocations: 4.354 MB / 446.9 MB, free: 2.723 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.239e-05/0.4138, allocations: 8.031 kB / 446.9 MB, free: 2.715 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008222/0.422, allocations: 2.216 MB / 449.2 MB, free: 500 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004964/0.427, allocations: 2.384 MB / 451.5 MB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002702/0.4273, allocations: 278.8 kB / 451.8 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001329/0.4287, allocations: 431.6 kB / 452.2 MB, free: 13.35 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02452/0.4532, allocations: 12.28 MB / 464.5 MB, free: 256 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002141/0.4535, allocations: 47.58 kB / 464.6 MB, free: 208 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00118/0.4547, allocations: 171.8 kB / 464.7 MB, free: 36 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003234/0.4579, allocations: 2.17 MB / 466.9 MB, free: 13.86 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02069/0.4786, allocations: 10.23 MB / 477.1 MB, free: 3.605 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05094/0.5296, allocations: 44.27 MB / 0.5092 GB, free: 6.086 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01073/0.5403, allocations: 4.665 MB / 0.5137 GB, free: 1.227 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002312/0.5427, allocations: 1.728 MB / 0.5154 GB, free: 15.49 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01088/0.5536, allocations: 8.302 MB / 0.5235 GB, free: 6.777 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.62e-05/0.5537, allocations: 55.88 kB / 0.5236 GB, free: 6.715 MB / 446.1 MB Notification: Performance of pre-optimization done (n=183): time 4.047e-06/0.5537, allocations: 0 / 0.5236 GB, free: 6.715 MB / 446.1 MB Notification: Performance of matching and sorting (n=205): time 0.2156/0.7693, allocations: 16.14 MB / 0.5393 GB, free: 138.9 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009322/0.7703, allocations: 1.594 MB / 0.5409 GB, free: 137.4 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006204/0.7765, allocations: 4.168 MB / 0.545 GB, free: 136.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003087/0.7768, allocations: 56.28 kB / 0.545 GB, free: 136.7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002158/0.779, allocations: 3.393 MB / 0.5483 GB, free: 134.1 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008696/0.7799, allocations: 0.8082 MB / 0.5491 GB, free: 133.5 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002518/0.7801, allocations: 141.4 kB / 0.5493 GB, free: 133.4 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002911/0.7804, allocations: 0.5926 MB / 0.5498 GB, free: 133 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003508/0.7839, allocations: 2.264 MB / 0.5521 GB, free: 132.3 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004798/0.7887, allocations: 6.398 MB / 0.5583 GB, free: 126.1 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004842/0.7936, allocations: 3.685 MB / 0.5619 GB, free: 124.7 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.195e-05/0.7937, allocations: 42.72 kB / 0.5619 GB, free: 124.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.01813/0.8118, allocations: 10.13 MB / 0.5718 GB, free: 120.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.698e-05/0.8119, allocations: 71.84 kB / 0.5719 GB, free: 120.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.008931/0.8209, allocations: 3.912 MB / 0.5757 GB, free: 117.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008281/0.8292, allocations: 2.273 MB / 0.5779 GB, free: 114.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004742/0.834, allocations: 1.595 MB / 0.5795 GB, free: 113.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006705/0.8407, allocations: 6.069 MB / 0.5854 GB, free: 106.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005344/0.8461, allocations: 448.5 kB / 0.5859 GB, free: 106.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001004/0.8471, allocations: 412 kB / 0.5862 GB, free: 106 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.003751/0.8509, allocations: 2.213 MB / 0.5884 GB, free: 103.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008412/0.8517, allocations: 371.2 kB / 0.5888 GB, free: 103.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005459/0.8572, allocations: 3.332 MB / 0.592 GB, free: 100.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004335/0.8615, allocations: 2.789 MB / 0.5947 GB, free: 97.29 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.192e-05/0.8616, allocations: 0 / 0.5947 GB, free: 97.29 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.049e-05/0.8616, allocations: 15.97 kB / 0.5948 GB, free: 97.28 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01485/0.8765, allocations: 10.38 MB / 0.6049 GB, free: 86.66 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.776e-05/0.8765, allocations: 12 kB / 0.6049 GB, free: 86.65 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001387/0.8779, allocations: 388.1 kB / 0.6053 GB, free: 86.27 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002419/0.8803, allocations: 0.9869 MB / 0.6062 GB, free: 85.27 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000188/0.8805, allocations: 59.97 kB / 0.6063 GB, free: 85.21 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003879/0.8844, allocations: 4.601 MB / 0.6108 GB, free: 80.35 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006811/0.8851, allocations: 1.474 MB / 0.6122 GB, free: 78.74 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007727/0.8929, allocations: 5.979 MB / 0.6181 GB, free: 72.56 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001451/0.8944, allocations: 447.2 kB / 0.6185 GB, free: 72.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005277/0.8949, allocations: 58.5 kB / 0.6186 GB, free: 72.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00156/0.8965, allocations: 172.6 kB / 0.6187 GB, free: 71.88 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002753/0.8968, allocations: 168.5 kB / 0.6189 GB, free: 71.71 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001323/0.8969, allocations: 76.53 kB / 0.6189 GB, free: 71.64 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003813/0.9007, allocations: 2.566 MB / 0.6215 GB, free: 69.07 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.9007, allocations: 4 kB / 0.6215 GB, free: 69.06 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00625/0.907, allocations: 1.132 MB / 0.6226 GB, free: 67.93 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.0005143/0.9075, allocations: 216.8 kB / 0.6228 GB, free: 67.72 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009007/0.9165, allocations: 5.986 MB / 0.6286 GB, free: 61.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.869e-06/0.9166, allocations: 0 / 0.6286 GB, free: 61.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003276/0.9199, allocations: 2.207 MB / 0.6308 GB, free: 59.43 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003025/0.9229, allocations: 499.5 kB / 0.6312 GB, free: 58.94 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01562/0.9385, allocations: 12.63 MB / 0.6436 GB, free: 46.11 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003177/0.9418, allocations: 3.451 MB / 0.647 GB, free: 42.62 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004723/0.9465, allocations: 2.018 MB / 0.6489 GB, free: 40.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007499/0.9473, allocations: 275.4 kB / 0.6492 GB, free: 40.33 MB / 446.1 MB Notification: Performance of SimCode: time 9.72e-07/0.9473, allocations: 2.516 kB / 0.6492 GB, free: 40.33 MB / 446.1 MB Notification: Performance of Templates: time 0.06332/1.011, allocations: 39.12 MB / 0.6874 GB, free: 1.445 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringDamperSystem/SpringDamperSystem.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches