Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001151/0.001151, allocations: 112.1 kB / 17.68 MB, free: 5.473 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.001149/0.001149, allocations: 190.9 kB / 18.62 MB, free: 4.543 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.358/1.358, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001002/0.001002, allocations: 50.67 kB / 302.1 MB, free: 5.176 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1069, allocations: 49.45 MB / 351.5 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.008639/0.1156, allocations: 7.425 MB / 358.9 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006329/0.1219, allocations: 3.253 MB / 362.2 MB, free: 8.973 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009319/0.1229, allocations: 35.88 kB / 362.2 MB, free: 8.938 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001983/0.1249, allocations: 1.024 MB / 363.2 MB, free: 7.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002897/0.1278, allocations: 1.378 MB / 364.6 MB, free: 6.527 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009042/0.1287, allocations: 451.1 kB / 365.1 MB, free: 6.086 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003186/0.1319, allocations: 2.629 MB / 367.7 MB, free: 3.453 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001733/0.1337, allocations: 1.527 MB / 369.2 MB, free: 1.906 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001089/0.1348, allocations: 0.8447 MB / 370.1 MB, free: 1.059 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1914/0.3262, allocations: 1.21 MB / 371.3 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007259/0.3269, allocations: 171.7 kB / 371.4 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002342/0.3293, allocations: 1.036 MB / 372.5 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001473/0.3308, allocations: 1.107 MB / 373.6 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001399/0.3322, allocations: 1.305 MB / 374.9 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006525/0.3387, allocations: 4.367 MB / 379.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.3388, allocations: 5.594 kB / 379.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3388, allocations: 0 / 379.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001183/0.3389, allocations: 0 / 379.3 MB, free: 10.93 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.00769/0.3466, allocations: 3.048 MB / 382.3 MB, free: 9.609 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.3466, allocations: 10.28 kB / 382.3 MB, free: 9.609 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006468/0.3531, allocations: 1.732 MB / 384 MB, free: 9.434 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00366/0.3568, allocations: 1.402 MB / 385.4 MB, free: 8.922 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001191/0.357, allocations: 137.1 kB / 385.6 MB, free: 8.883 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007697/0.3577, allocations: 262 kB / 385.8 MB, free: 8.832 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01179/0.3695, allocations: 6.657 MB / 392.5 MB, free: 5.41 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.19e-05/0.3697, allocations: 24.31 kB / 392.5 MB, free: 5.41 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003009/0.37, allocations: 90.08 kB / 392.6 MB, free: 5.375 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001898/0.3719, allocations: 1.366 MB / 394 MB, free: 4.855 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009795/0.3817, allocations: 6.032 MB / 400 MB, free: 1.578 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03303/0.4148, allocations: 25.53 MB / 425.5 MB, free: 7.617 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00718/0.422, allocations: 2.659 MB / 428.2 MB, free: 4.82 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001471/0.4235, allocations: 1.037 MB / 429.2 MB, free: 3.773 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006329/0.4299, allocations: 3.892 MB / 433.1 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.589e-05/0.43, allocations: 43.12 kB / 433.2 MB, free: 15.6 MB / 350.1 MB Notification: Performance of pre-optimization done (n=112): time 3.606e-06/0.43, allocations: 0 / 433.2 MB, free: 15.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=125): time 0.02559/0.4556, allocations: 10.29 MB / 443.5 MB, free: 5.188 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001289/0.4569, allocations: 1.679 MB / 445.1 MB, free: 3.336 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003668/0.4606, allocations: 2.718 MB / 447.9 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000231/0.4608, allocations: 41.7 kB / 447.9 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001321/0.4621, allocations: 2.088 MB / 450 MB, free: 14.46 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000507/0.4627, allocations: 0.5081 MB / 450.5 MB, free: 13.96 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001162/0.4638, allocations: 0.9157 MB / 451.4 MB, free: 13.03 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.996e-05/0.4639, allocations: 309.1 kB / 451.7 MB, free: 12.73 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002306/0.4662, allocations: 1.656 MB / 453.4 MB, free: 11.06 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004293/0.4705, allocations: 4.453 MB / 457.8 MB, free: 5.254 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007377/0.4779, allocations: 6.543 MB / 464.4 MB, free: 13.62 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.226e-05/0.478, allocations: 28 kB / 464.4 MB, free: 13.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.02039/0.4984, allocations: 7.999 MB / 472.4 MB, free: 5.574 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.35e-05/0.4985, allocations: 48 kB / 472.4 MB, free: 5.527 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01141/0.5099, allocations: 3.487 MB / 475.9 MB, free: 2.031 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01176/0.5217, allocations: 2.584 MB / 478.5 MB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003485/0.5253, allocations: 1.014 MB / 479.5 MB, free: 14.42 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01401/0.5393, allocations: 9.689 MB / 489.2 MB, free: 4.465 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003535/0.5429, allocations: 339.5 kB / 489.5 MB, free: 4.133 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000496/0.5434, allocations: 283.9 kB / 489.8 MB, free: 3.855 MB / 398.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.002158/0.5455, allocations: 1.429 MB / 491.2 MB, free: 2.418 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004161/0.546, allocations: 229 kB / 491.5 MB, free: 2.191 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006347/0.5523, allocations: 2.84 MB / 494.3 MB, free: 15.33 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005595/0.5579, allocations: 2.509 MB / 496.8 MB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.262e-05/0.558, allocations: 11.94 kB / 496.8 MB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.706e-05/0.558, allocations: 11.97 kB / 496.8 MB, free: 12.78 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01292/0.5709, allocations: 6.857 MB / 0.4919 GB, free: 5.859 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.108e-05/0.571, allocations: 0 / 0.4919 GB, free: 5.859 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000818/0.5718, allocations: 179.7 kB / 0.4921 GB, free: 5.684 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00456/0.5764, allocations: 1.435 MB / 0.4935 GB, free: 4.238 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000159/0.5765, allocations: 31.98 kB / 0.4935 GB, free: 4.207 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01016/0.5867, allocations: 7.917 MB / 0.5012 GB, free: 12.02 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001039/0.5878, allocations: 1.537 MB / 0.5027 GB, free: 10.33 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008625/0.5964, allocations: 4.856 MB / 0.5075 GB, free: 5.438 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006854/0.5971, allocations: 294.1 kB / 0.5078 GB, free: 5.129 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002779/0.5974, allocations: 31.98 kB / 0.5078 GB, free: 5.098 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001111/0.5985, allocations: 107.8 kB / 0.5079 GB, free: 4.992 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000252/0.5988, allocations: 80.42 kB / 0.508 GB, free: 4.914 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001083/0.5989, allocations: 35.92 kB / 0.508 GB, free: 4.879 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002447/0.6013, allocations: 1.705 MB / 0.5097 GB, free: 3.164 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.6014, allocations: 0 / 0.5097 GB, free: 3.164 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003482/0.6048, allocations: 0.784 MB / 0.5104 GB, free: 2.383 MB / 430.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.0003644/0.6052, allocations: 174.9 kB / 0.5106 GB, free: 2.203 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006875/0.6121, allocations: 4.444 MB / 0.5149 GB, free: 13.73 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.6121, allocations: 4 kB / 0.5149 GB, free: 13.73 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003011/0.6151, allocations: 1.732 MB / 0.5166 GB, free: 11.95 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001585/0.6167, allocations: 260.5 kB / 0.5169 GB, free: 11.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00995/0.6267, allocations: 6.541 MB / 0.5233 GB, free: 5.105 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002209/0.6289, allocations: 2.285 MB / 0.5255 GB, free: 2.789 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002908/0.6319, allocations: 1.412 MB / 0.5269 GB, free: 1.371 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004097/0.6323, allocations: 163.4 kB / 0.527 GB, free: 1.211 MB / 446.1 MB Notification: Performance of SimCode: time 5.91e-07/0.6323, allocations: 4 kB / 0.527 GB, free: 1.207 MB / 446.1 MB Notification: Performance of Templates: time 0.1849/0.8172, allocations: 27.05 MB / 0.5534 GB, free: 141.9 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches