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.001154/0.001154, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001276/0.001276, allocations: 203.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.37/1.37, allocations: 227.4 MB / 247.5 MB, free: 10.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001221/0.001221, allocations: 59.19 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1166, allocations: 50.54 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01367/0.1303, allocations: 11.98 MB / 370.9 MB, free: 1.289 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1734/0.3038, allocations: 4.196 MB / 375.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001828/0.3057, allocations: 69.5 kB / 375.2 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004961/0.3107, allocations: 2.741 MB / 377.9 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0054/0.3161, allocations: 1.934 MB / 379.8 MB, free: 9.449 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001839/0.318, allocations: 0.8129 MB / 380.6 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007191/0.3252, allocations: 4.677 MB / 385.3 MB, free: 7.836 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004531/0.3297, allocations: 3.545 MB / 388.9 MB, free: 6.227 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003146/0.3329, allocations: 1.686 MB / 390.6 MB, free: 5.379 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003273/0.3362, allocations: 2.324 MB / 392.9 MB, free: 4.113 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001006/0.3372, allocations: 351.9 kB / 393.2 MB, free: 4.113 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002774/0.34, allocations: 1.268 MB / 394.5 MB, free: 3.66 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001735/0.3418, allocations: 2.075 MB / 396.6 MB, free: 2.465 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002238/0.344, allocations: 2.403 MB / 399 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00723/0.3512, allocations: 7.469 MB / 406.4 MB, free: 9.699 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.3513, allocations: 0 / 406.4 MB, free: 9.699 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.3513, allocations: 0 / 406.4 MB, free: 9.699 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001311/0.3514, allocations: 0 / 406.4 MB, free: 9.699 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.008515/0.3599, allocations: 5.232 MB / 411.7 MB, free: 4.512 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.36, allocations: 12.03 kB / 411.7 MB, free: 4.5 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007361/0.3673, allocations: 2.173 MB / 413.9 MB, free: 2.32 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006186/0.3736, allocations: 2.475 MB / 416.3 MB, free: 15.81 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002283/0.3738, allocations: 279.8 kB / 416.6 MB, free: 15.58 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001181/0.375, allocations: 433.4 kB / 417 MB, free: 15.2 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02488/0.3999, allocations: 12.25 MB / 429.3 MB, free: 2.25 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001655/0.4001, allocations: 51.52 kB / 429.3 MB, free: 2.199 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005501/0.4007, allocations: 179.1 kB / 429.5 MB, free: 2.066 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003291/0.404, allocations: 2.165 MB / 431.7 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02231/0.4263, allocations: 10.25 MB / 441.9 MB, free: 5.645 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05684/0.4832, allocations: 44.11 MB / 486 MB, free: 8.508 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01135/0.4946, allocations: 4.656 MB / 490.7 MB, free: 3.652 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002612/0.4972, allocations: 1.718 MB / 492.4 MB, free: 1.926 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01193/0.5092, allocations: 8.3 MB / 0.489 GB, free: 9.285 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.467e-05/0.5093, allocations: 63.75 kB / 0.489 GB, free: 9.215 MB / 414.1 MB Notification: Performance of pre-optimization done (n=183): time 5.01e-06/0.5093, allocations: 0 / 0.489 GB, free: 9.215 MB / 414.1 MB Notification: Performance of matching and sorting (n=205): time 0.03875/0.5481, allocations: 16.07 MB / 0.5047 GB, free: 8.977 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001257/0.5494, allocations: 1.688 MB / 0.5064 GB, free: 7.109 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005455/0.5549, allocations: 4.186 MB / 0.5105 GB, free: 2.902 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003525/0.5552, allocations: 49.7 kB / 0.5105 GB, free: 2.848 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002112/0.5574, allocations: 3.403 MB / 0.5138 GB, free: 15.45 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008957/0.5583, allocations: 0.8074 MB / 0.5146 GB, free: 14.64 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001618/0.5599, allocations: 1.359 MB / 0.5159 GB, free: 13.28 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.187e-05/0.56, allocations: 301.1 kB / 0.5162 GB, free: 12.98 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003503/0.5635, allocations: 2.278 MB / 0.5185 GB, free: 10.7 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006257/0.5698, allocations: 6.418 MB / 0.5247 GB, free: 2.234 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2824/0.8522, allocations: 9.335 MB / 0.5338 GB, free: 129.9 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001366/0.8524, allocations: 45.25 kB / 0.5339 GB, free: 129.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.03044/0.8828, allocations: 10.17 MB / 0.5438 GB, free: 126.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001457/0.883, allocations: 67.88 kB / 0.5439 GB, free: 126.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0117/0.8947, allocations: 3.899 MB / 0.5477 GB, free: 125.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009436/0.9042, allocations: 2.258 MB / 0.5499 GB, free: 125.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005547/0.9098, allocations: 1.59 MB / 0.5514 GB, free: 125.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008737/0.9186, allocations: 6.625 MB / 0.5579 GB, free: 121.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00629/0.9249, allocations: 436 kB / 0.5583 GB, free: 121.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001245/0.9262, allocations: 422.4 kB / 0.5587 GB, free: 121.6 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.004385/0.9306, allocations: 2.22 MB / 0.5609 GB, free: 120.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009179/0.9315, allocations: 377.8 kB / 0.5613 GB, free: 120.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00607/0.9376, allocations: 3.312 MB / 0.5645 GB, free: 118.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004537/0.9422, allocations: 2.779 MB / 0.5672 GB, free: 117.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.652e-05/0.9422, allocations: 0 / 0.5672 GB, free: 117.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-05/0.9423, allocations: 11.97 kB / 0.5672 GB, free: 117.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01624/0.9585, allocations: 10.37 MB / 0.5773 GB, free: 106.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-05/0.9586, allocations: 15.98 kB / 0.5774 GB, free: 106.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001406/0.96, allocations: 375.4 kB / 0.5777 GB, free: 106.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002543/0.9626, allocations: 0.9792 MB / 0.5787 GB, free: 105.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002465/0.9628, allocations: 63.97 kB / 0.5787 GB, free: 105.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00402/0.9669, allocations: 4.909 MB / 0.5835 GB, free: 100 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007224/0.9676, allocations: 1.565 MB / 0.5851 GB, free: 98.35 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00778/0.9754, allocations: 5.968 MB / 0.5909 GB, free: 92.36 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001301/0.9767, allocations: 436.1 kB / 0.5913 GB, free: 91.91 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004855/0.9773, allocations: 55.98 kB / 0.5914 GB, free: 91.85 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001591/0.9789, allocations: 154 kB / 0.5915 GB, free: 91.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003219/0.9792, allocations: 172.4 kB / 0.5917 GB, free: 91.54 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001337/0.9793, allocations: 83.91 kB / 0.5918 GB, free: 91.45 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003875/0.9832, allocations: 2.585 MB / 0.5943 GB, free: 88.86 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.9832, allocations: 0 / 0.5943 GB, free: 88.86 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00675/0.99, allocations: 1.147 MB / 0.5954 GB, free: 87.72 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.0007849/0.9908, allocations: 202.6 kB / 0.5956 GB, free: 87.52 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00962/1, allocations: 6.071 MB / 0.6015 GB, free: 81.42 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.417e-05/1.001, allocations: 0 / 0.6015 GB, free: 81.42 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003373/1.004, allocations: 2.221 MB / 0.6037 GB, free: 79.13 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003066/1.007, allocations: 0.5032 MB / 0.6042 GB, free: 78.64 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01523/1.022, allocations: 10.63 MB / 0.6146 GB, free: 67.81 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003078/1.025, allocations: 3.45 MB / 0.6179 GB, free: 64.33 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004062/1.029, allocations: 2.022 MB / 0.6199 GB, free: 62.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007069/1.03, allocations: 267.4 kB / 0.6202 GB, free: 62.04 MB / 446.1 MB Notification: Performance of SimCode: time 1.012e-06/1.03, allocations: 0 / 0.6202 GB, free: 62.04 MB / 446.1 MB Notification: Performance of Templates: time 0.0627/1.093, allocations: 36.01 MB / 0.6553 GB, free: 26.34 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 -s cvode -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/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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches