Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.frame_a.r_0.1.|body.frame_a.r_0.2.|body.frame_a.r_0.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.|body.w_a.1.|body.w_a.2.|body.w_a.3.",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.frame_a.r_0.1.|body.frame_a.r_0.2.|body.frame_a.r_0.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.|body.w_a.1.|body.w_a.2.|body.w_a.3.",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001551/0.001551, allocations: 107.2 kB / 18.34 MB, free: 4.676 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.001736/0.001736, allocations: 188.1 kB / 19.28 MB, free: 3.75 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.333/1.333, allocations: 205.1 MB / 225.2 MB, free: 12.24 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.001166/0.001166, allocations: 55.92 kB / 282.1 MB, free: 2.445 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08477/0.08594, allocations: 46.62 MB / 328.7 MB, free: 3.754 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.008012/0.09399, allocations: 7.456 MB / 336.2 MB, free: 12.25 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006065/0.1001, allocations: 3.223 MB / 339.4 MB, free: 9.016 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007471/0.1009, allocations: 35.88 kB / 339.4 MB, free: 8.98 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001862/0.1028, allocations: 1.031 MB / 340.5 MB, free: 7.945 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002711/0.1055, allocations: 1.374 MB / 341.8 MB, free: 6.566 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008878/0.1064, allocations: 451.1 kB / 342.3 MB, free: 6.125 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002866/0.1093, allocations: 2.641 MB / 344.9 MB, free: 3.477 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001679/0.111, allocations: 1.535 MB / 346.5 MB, free: 1.926 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00117/0.1121, allocations: 0.8446 MB / 347.3 MB, free: 1.078 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001385/0.1135, allocations: 1.219 MB / 348.5 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002894/0.1138, allocations: 172 kB / 348.7 MB, free: 15.69 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001802/0.1157, allocations: 1.03 MB / 349.7 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008789/0.1165, allocations: 1.11 MB / 350.8 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001105/0.1177, allocations: 1.308 MB / 352.1 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003841/0.1215, allocations: 4.356 MB / 356.5 MB, free: 7.855 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.1215, allocations: 0 / 356.5 MB, free: 7.855 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1215, allocations: 0 / 356.5 MB, free: 7.855 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.966e-05/0.1216, allocations: 4 kB / 356.5 MB, free: 7.852 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.005011/0.1266, allocations: 3.059 MB / 359.5 MB, free: 4.734 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.544e-05/0.1267, allocations: 8.031 kB / 359.6 MB, free: 4.727 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005968/0.1326, allocations: 1.74 MB / 361.3 MB, free: 2.98 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003123/0.1358, allocations: 1.449 MB / 362.7 MB, free: 1.488 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.784e-05/0.1359, allocations: 139.3 kB / 362.9 MB, free: 1.352 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005858/0.1365, allocations: 255.7 kB / 363.1 MB, free: 1.102 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009228/0.1457, allocations: 6.652 MB / 369.8 MB, free: 9.984 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.03e-05/0.1458, allocations: 27.72 kB / 369.8 MB, free: 9.957 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002319/0.146, allocations: 87.89 kB / 369.9 MB, free: 9.871 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001905/0.1479, allocations: 1.363 MB / 371.3 MB, free: 8.496 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01016/0.1581, allocations: 6.037 MB / 377.3 MB, free: 2.461 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1765/0.3347, allocations: 25.53 MB / 402.8 MB, free: 32.09 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0062/0.3409, allocations: 2.667 MB / 405.5 MB, free: 30.91 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001152/0.3421, allocations: 1.028 MB / 406.5 MB, free: 30.48 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004782/0.3469, allocations: 3.895 MB / 410.4 MB, free: 27.51 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.021e-05/0.3469, allocations: 47 kB / 410.5 MB, free: 27.46 MB / 318.1 MB Notification: Performance of pre-optimization done (n=112): time 2.775e-06/0.3469, allocations: 0 / 410.5 MB, free: 27.46 MB / 318.1 MB Notification: Performance of matching and sorting (n=125): time 0.02236/0.3693, allocations: 10.3 MB / 420.8 MB, free: 20.08 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009107/0.3702, allocations: 1.671 MB / 422.4 MB, free: 18.22 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002831/0.3731, allocations: 2.745 MB / 425.2 MB, free: 15.46 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002546/0.3734, allocations: 37.7 kB / 425.2 MB, free: 15.41 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008706/0.3742, allocations: 2.086 MB / 427.3 MB, free: 13.33 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003965/0.3746, allocations: 0.5043 MB / 427.8 MB, free: 12.83 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008482/0.3755, allocations: 0.916 MB / 428.7 MB, free: 11.9 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.185e-05/0.3755, allocations: 309.1 kB / 429 MB, free: 11.6 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001995/0.3775, allocations: 1.648 MB / 430.7 MB, free: 9.941 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002735/0.3803, allocations: 4.456 MB / 435.1 MB, free: 4.078 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006265/0.3866, allocations: 6.54 MB / 441.7 MB, free: 12.15 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.539e-05/0.3867, allocations: 32 kB / 441.7 MB, free: 12.12 MB / 334.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.02088/0.4076, allocations: 7.998 MB / 449.7 MB, free: 4.105 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.718e-05/0.4077, allocations: 48 kB / 449.7 MB, free: 4.059 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01092/0.4186, allocations: 3.49 MB / 453.2 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01136/0.43, allocations: 2.585 MB / 455.8 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003056/0.4331, allocations: 1.01 MB / 456.8 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01393/0.447, allocations: 9.702 MB / 466.5 MB, free: 2.965 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003336/0.4504, allocations: 324.4 kB / 466.9 MB, free: 2.648 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004479/0.4508, allocations: 284 kB / 467.1 MB, free: 2.371 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 452 * Number of states: 0 () * Number of discrete variables: 21 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (547): * Single equations (assignments): 539 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 1 system {(4,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 {(5,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002079/0.4529, allocations: 1.421 MB / 468.6 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003976/0.4533, allocations: 232.9 kB / 468.8 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006437/0.4598, allocations: 2.841 MB / 471.6 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005681/0.4655, allocations: 2.513 MB / 474.1 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.576e-05/0.4655, allocations: 4.875 kB / 474.1 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.813e-05/0.4655, allocations: 3.984 kB / 474.1 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01375/0.4793, allocations: 6.884 MB / 481 MB, free: 4.359 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.614e-06/0.4793, allocations: 0 / 481 MB, free: 4.359 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008052/0.4801, allocations: 179.7 kB / 481.2 MB, free: 4.184 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004742/0.4849, allocations: 1.426 MB / 482.6 MB, free: 2.746 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001425/0.485, allocations: 36.78 kB / 482.7 MB, free: 2.711 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009975/0.495, allocations: 7.918 MB / 490.6 MB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009687/0.496, allocations: 1.537 MB / 492.1 MB, free: 8.832 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00846/0.5045, allocations: 4.856 MB / 497 MB, free: 3.938 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008902/0.5054, allocations: 286.3 kB / 497.3 MB, free: 3.637 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003744/0.5058, allocations: 27.94 kB / 497.3 MB, free: 3.609 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001254/0.507, allocations: 115.8 kB / 497.4 MB, free: 3.496 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002951/0.5073, allocations: 84.36 kB / 497.5 MB, free: 3.414 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001122/0.5075, allocations: 39.97 kB / 497.5 MB, free: 3.375 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00236/0.5098, allocations: 1.701 MB / 499.2 MB, free: 1.664 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5098, allocations: 0 / 499.2 MB, free: 1.664 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003473/0.5133, allocations: 0.7877 MB / 0.4883 GB, free: 0.8789 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3]) * 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 (83): * Single equations (assignments): 77 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 1 system {(4,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 {(5,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004047/0.5137, allocations: 160.5 kB / 0.4884 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007991/0.5217, allocations: 4.447 MB / 0.4928 GB, free: 12.25 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.551e-06/0.5218, allocations: 0 / 0.4928 GB, free: 12.25 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003287/0.5251, allocations: 1.728 MB / 0.4945 GB, free: 10.47 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001746/0.5268, allocations: 274.5 kB / 0.4947 GB, free: 10.21 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01034/0.5372, allocations: 6.543 MB / 0.5011 GB, free: 3.605 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002146/0.5394, allocations: 2.301 MB / 0.5034 GB, free: 1.27 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002986/0.5424, allocations: 1.412 MB / 0.5047 GB, free: 15.85 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004392/0.5428, allocations: 171.4 kB / 0.5049 GB, free: 15.68 MB / 414.1 MB Notification: Performance of SimCode: time 2.766e-06/0.5428, allocations: 0 / 0.5049 GB, free: 15.68 MB / 414.1 MB Notification: Performance of Templates: time 0.04803/0.5909, allocations: 27.1 MB / 0.5314 GB, free: 4.543 MB / 430.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches