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.001544/0.001544, allocations: 108.4 kB / 18.36 MB, free: 4.77 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.001662/0.001662, allocations: 191 kB / 19.29 MB, free: 3.848 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.422/1.422, allocations: 205.1 MB / 225.2 MB, free: 12.27 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.001109/0.001109, allocations: 47.92 kB / 282.1 MB, free: 2.457 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0849/0.08602, allocations: 46.63 MB / 328.7 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.008364/0.09441, allocations: 7.436 MB / 336.2 MB, free: 12.27 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005632/0.1001, allocations: 3.239 MB / 339.4 MB, free: 9.023 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007259/0.1009, allocations: 31.94 kB / 339.4 MB, free: 8.992 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001858/0.1027, allocations: 1.016 MB / 340.5 MB, free: 7.973 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002577/0.1053, allocations: 1.378 MB / 341.8 MB, free: 6.59 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008652/0.1062, allocations: 447.1 kB / 342.3 MB, free: 6.152 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003032/0.1092, allocations: 2.649 MB / 344.9 MB, free: 3.496 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001644/0.1109, allocations: 1.535 MB / 346.5 MB, free: 1.945 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009592/0.1119, allocations: 0.8524 MB / 347.3 MB, free: 1.09 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00125/0.1131, allocations: 1.215 MB / 348.5 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002607/0.1134, allocations: 172 kB / 348.7 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001814/0.1152, allocations: 1.022 MB / 349.7 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001042/0.1163, allocations: 1.122 MB / 350.8 MB, free: 13.55 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001282/0.1176, allocations: 1.301 MB / 352.1 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004002/0.1216, allocations: 4.36 MB / 356.5 MB, free: 7.871 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.1216, allocations: 0 / 356.5 MB, free: 7.871 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.037e-06/0.1216, allocations: 0 / 356.5 MB, free: 7.871 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.272e-05/0.1217, allocations: 3.938 kB / 356.5 MB, free: 7.867 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.005188/0.1269, allocations: 3.055 MB / 359.6 MB, free: 4.754 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.1269, allocations: 12.03 kB / 359.6 MB, free: 4.742 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006074/0.133, allocations: 1.736 MB / 361.3 MB, free: 3 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002952/0.136, allocations: 1.449 MB / 362.8 MB, free: 1.508 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.234e-05/0.1361, allocations: 135.3 kB / 362.9 MB, free: 1.375 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006278/0.1367, allocations: 255.6 kB / 363.1 MB, free: 1.125 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009769/0.1465, allocations: 6.656 MB / 369.8 MB, free: 10 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.499e-05/0.1466, allocations: 31.7 kB / 369.8 MB, free: 9.973 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002616/0.1469, allocations: 87.89 kB / 369.9 MB, free: 9.887 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001974/0.1488, allocations: 1.363 MB / 371.3 MB, free: 8.512 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01051/0.1594, allocations: 6.029 MB / 377.3 MB, free: 2.484 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.181/0.3404, allocations: 25.54 MB / 402.8 MB, free: 32.16 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006225/0.3467, allocations: 2.666 MB / 405.5 MB, free: 30.97 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001243/0.3479, allocations: 1.032 MB / 406.5 MB, free: 30.55 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004681/0.3526, allocations: 3.888 MB / 410.4 MB, free: 27.58 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.703e-05/0.3527, allocations: 47 kB / 410.5 MB, free: 27.53 MB / 318.1 MB Notification: Performance of pre-optimization done (n=112): time 3.697e-06/0.3527, allocations: 0 / 410.5 MB, free: 27.53 MB / 318.1 MB Notification: Performance of matching and sorting (n=125): time 0.0232/0.3759, allocations: 10.3 MB / 420.8 MB, free: 20.1 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0008862/0.3768, allocations: 1.673 MB / 422.4 MB, free: 18.25 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002883/0.3797, allocations: 2.749 MB / 425.2 MB, free: 15.48 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001656/0.3799, allocations: 41.61 kB / 425.2 MB, free: 15.44 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000862/0.3808, allocations: 2.082 MB / 427.3 MB, free: 13.36 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003649/0.3811, allocations: 0.5047 MB / 427.8 MB, free: 12.86 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000922/0.3821, allocations: 0.9165 MB / 428.7 MB, free: 11.93 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.732e-05/0.3821, allocations: 301.1 kB / 429 MB, free: 11.63 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001802/0.3839, allocations: 1.652 MB / 430.7 MB, free: 9.969 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002812/0.3868, allocations: 4.46 MB / 435.1 MB, free: 4.102 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006356/0.3931, allocations: 6.543 MB / 441.7 MB, free: 12.17 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.826e-05/0.3932, allocations: 28 kB / 441.7 MB, free: 12.14 MB / 334.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01936/0.4126, allocations: 8 MB / 449.7 MB, free: 4.129 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.451e-05/0.4127, allocations: 48 kB / 449.8 MB, free: 4.082 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01113/0.4238, allocations: 3.496 MB / 453.3 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01153/0.4354, allocations: 2.581 MB / 455.8 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003196/0.4386, allocations: 1.01 MB / 456.8 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0149/0.4535, allocations: 9.703 MB / 466.6 MB, free: 2.984 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004164/0.4578, allocations: 319.6 kB / 466.9 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007078/0.4585, allocations: 286.8 kB / 467.1 MB, free: 2.395 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.002445/0.4609, allocations: 1.421 MB / 468.6 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000608/0.4615, allocations: 236.9 kB / 468.8 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006896/0.4685, allocations: 2.836 MB / 471.6 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005942/0.4744, allocations: 2.511 MB / 474.1 MB, free: 11.35 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.579e-05/0.4745, allocations: 4 kB / 474.1 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.412e-05/0.4745, allocations: 7.984 kB / 474.2 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01424/0.4887, allocations: 6.871 MB / 481 MB, free: 4.398 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.496e-05/0.4888, allocations: 0 / 481 MB, free: 4.398 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008706/0.4897, allocations: 180.9 kB / 481.2 MB, free: 4.223 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004985/0.4947, allocations: 1.43 MB / 482.6 MB, free: 2.781 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002404/0.4949, allocations: 37.41 kB / 482.7 MB, free: 2.746 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01487/0.5098, allocations: 7.923 MB / 490.6 MB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001513/0.5114, allocations: 1.541 MB / 492.1 MB, free: 8.859 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01227/0.5236, allocations: 4.852 MB / 497 MB, free: 3.969 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007049/0.5244, allocations: 290.1 kB / 497.3 MB, free: 3.664 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002899/0.5247, allocations: 24 kB / 497.3 MB, free: 3.641 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001116/0.5258, allocations: 115.8 kB / 497.4 MB, free: 3.527 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002724/0.5261, allocations: 84.38 kB / 497.5 MB, free: 3.445 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001032/0.5262, allocations: 35.98 kB / 497.5 MB, free: 3.41 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002564/0.5288, allocations: 1.697 MB / 499.2 MB, free: 1.703 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5288, allocations: 0 / 499.2 MB, free: 1.703 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003812/0.5326, allocations: 0.7915 MB / 0.4883 GB, free: 0.9141 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.0004255/0.533, allocations: 156.5 kB / 0.4884 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007454/0.5405, allocations: 4.459 MB / 0.4928 GB, free: 12.27 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.5405, allocations: 192 / 0.4928 GB, free: 12.27 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00311/0.5436, allocations: 1.724 MB / 0.4945 GB, free: 10.5 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001658/0.5453, allocations: 280.3 kB / 0.4947 GB, free: 10.23 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009613/0.5549, allocations: 6.538 MB / 0.5011 GB, free: 3.633 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002065/0.557, allocations: 2.301 MB / 0.5034 GB, free: 1.297 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002855/0.5599, allocations: 1.404 MB / 0.5048 GB, free: 15.89 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003917/0.5603, allocations: 167.4 kB / 0.5049 GB, free: 15.72 MB / 414.1 MB Notification: Performance of SimCode: time 2.384e-06/0.5603, allocations: 0 / 0.5049 GB, free: 15.72 MB / 414.1 MB Notification: Performance of Templates: time 0.0482/0.6085, allocations: 27.1 MB / 0.5314 GB, free: 4.582 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 gbode -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