Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.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.1.0-beta.om_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.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001543/0.001543, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001561/0.001561, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.353/1.353, allocations: 227.7 MB / 247.7 MB, free: 10.3 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002262/0.002262, allocations: 61.03 kB / 307.9 MB, free: 0.5078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1158, allocations: 50.53 MB / 358.4 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01199/0.1278, allocations: 7.403 MB / 365.8 MB, free: 6.508 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007009/0.1349, allocations: 3.272 MB / 369.1 MB, free: 3.223 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000664/0.1356, allocations: 31.94 kB / 369.1 MB, free: 3.191 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00192/0.1375, allocations: 1.024 MB / 370.2 MB, free: 2.164 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002576/0.1401, allocations: 1.338 MB / 371.5 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000846/0.141, allocations: 459.1 kB / 371.9 MB, free: 384 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1508/0.2918, allocations: 2.652 MB / 374.6 MB, free: 9.473 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001714/0.2936, allocations: 1.526 MB / 376.1 MB, free: 9.332 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001096/0.2947, allocations: 0.838 MB / 377 MB, free: 9.242 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001269/0.296, allocations: 1.218 MB / 378.2 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003344/0.2963, allocations: 170.7 kB / 378.3 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001603/0.2979, allocations: 1.008 MB / 379.4 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009889/0.2989, allocations: 1.092 MB / 380.4 MB, free: 8.973 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001025/0.3, allocations: 1.295 MB / 381.7 MB, free: 8.402 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004096/0.3041, allocations: 4.145 MB / 385.9 MB, free: 7.098 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.3041, allocations: 3.469 kB / 385.9 MB, free: 7.098 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.3041, allocations: 0 / 385.9 MB, free: 7.098 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.253e-05/0.3042, allocations: 1.094 kB / 385.9 MB, free: 7.098 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.005474/0.3097, allocations: 3.023 MB / 388.9 MB, free: 5.426 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/0.3097, allocations: 12.84 kB / 388.9 MB, free: 5.422 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006189/0.3159, allocations: 1.783 MB / 390.7 MB, free: 4.539 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00212/0.318, allocations: 1.359 MB / 392.1 MB, free: 3.727 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.064e-05/0.3181, allocations: 138.6 kB / 392.2 MB, free: 3.688 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005815/0.3187, allocations: 261.4 kB / 392.5 MB, free: 3.617 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008548/0.3273, allocations: 6.667 MB / 399.1 MB, free: 15.68 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.724e-05/0.3274, allocations: 28.53 kB / 399.2 MB, free: 15.67 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002571/0.3276, allocations: 90.56 kB / 399.2 MB, free: 15.64 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002143/0.3298, allocations: 1.368 MB / 400.6 MB, free: 14.6 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01072/0.3405, allocations: 6.041 MB / 406.7 MB, free: 8.688 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02905/0.3696, allocations: 25.62 MB / 432.3 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00701/0.3766, allocations: 2.676 MB / 435 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001364/0.378, allocations: 1.035 MB / 436 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00561/0.3836, allocations: 3.983 MB / 440 MB, free: 6.453 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.443e-05/0.3837, allocations: 47.12 kB / 440 MB, free: 6.398 MB / 350.1 MB Notification: Performance of pre-optimization done (n=112): time 3.106e-06/0.3837, allocations: 0 / 440 MB, free: 6.398 MB / 350.1 MB Notification: Performance of matching and sorting (n=125): time 0.02691/0.4106, allocations: 10.32 MB / 450.3 MB, free: 11.93 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001378/0.412, allocations: 1.679 MB / 452 MB, free: 10.08 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004074/0.4161, allocations: 2.717 MB / 454.7 MB, free: 7.34 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003089/0.4164, allocations: 41.7 kB / 454.8 MB, free: 7.293 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00151/0.418, allocations: 2.078 MB / 456.8 MB, free: 5.215 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006919/0.4187, allocations: 0.4999 MB / 457.3 MB, free: 4.719 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001259/0.4199, allocations: 0.9233 MB / 458.3 MB, free: 3.785 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001132/0.42, allocations: 301.1 kB / 458.6 MB, free: 3.488 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002503/0.4226, allocations: 1.656 MB / 460.2 MB, free: 1.824 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004503/0.4271, allocations: 4.46 MB / 464.7 MB, free: 11.96 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007954/0.435, allocations: 6.564 MB / 471.2 MB, free: 4.031 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.682e-05/0.4351, allocations: 28 kB / 471.3 MB, free: 4.004 MB / 382.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.02039/0.4555, allocations: 8.071 MB / 479.3 MB, free: 11.91 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.31e-05/0.4556, allocations: 52.25 kB / 479.4 MB, free: 11.86 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01169/0.4673, allocations: 3.565 MB / 483 MB, free: 8.285 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01215/0.4795, allocations: 2.686 MB / 485.6 MB, free: 5.586 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003527/0.4831, allocations: 1.014 MB / 486.7 MB, free: 4.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01517/0.4983, allocations: 9.726 MB / 496.4 MB, free: 10.58 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003659/0.5019, allocations: 335.5 kB / 496.7 MB, free: 10.25 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005321/0.5025, allocations: 287 kB / 497 MB, free: 9.977 MB / 414.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.002451/0.5049, allocations: 1.426 MB / 498.4 MB, free: 8.539 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004419/0.5054, allocations: 229 kB / 498.6 MB, free: 8.312 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005829/0.506, allocations: 326 kB / 499 MB, free: 7.98 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006082/0.5121, allocations: 2.525 MB / 0.4897 GB, free: 5.434 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.428e-05/0.5121, allocations: 4 kB / 0.4897 GB, free: 5.43 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.854e-05/0.5121, allocations: 11.98 kB / 0.4897 GB, free: 5.418 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01352/0.5257, allocations: 6.879 MB / 0.4965 GB, free: 14.48 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.287e-05/0.5257, allocations: 12.03 kB / 0.4965 GB, free: 14.46 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008316/0.5266, allocations: 179.7 kB / 0.4966 GB, free: 14.29 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004985/0.5315, allocations: 1.434 MB / 0.498 GB, free: 12.85 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003165/0.5319, allocations: 31.97 kB / 0.4981 GB, free: 12.82 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01099/0.5429, allocations: 7.926 MB / 0.5058 GB, free: 4.621 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001267/0.5442, allocations: 1.537 MB / 0.5073 GB, free: 2.934 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009697/0.5539, allocations: 4.867 MB / 0.5121 GB, free: 14.03 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007395/0.5547, allocations: 294 kB / 0.5124 GB, free: 13.72 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002855/0.555, allocations: 20 kB / 0.5124 GB, free: 13.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001151/0.5561, allocations: 119.8 kB / 0.5125 GB, free: 13.58 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002947/0.5564, allocations: 84.42 kB / 0.5126 GB, free: 13.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001051/0.5566, allocations: 35.98 kB / 0.5126 GB, free: 13.46 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002794/0.5594, allocations: 1.689 MB / 0.5143 GB, free: 11.77 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5594, allocations: 0 / 0.5143 GB, free: 11.77 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003679/0.563, allocations: 0.7761 MB / 0.515 GB, free: 10.99 MB / 446.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.000399/0.5635, allocations: 167.1 kB / 0.5152 GB, free: 10.83 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008911/0.5724, allocations: 4.77 MB / 0.5198 GB, free: 6.027 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.963e-06/0.5724, allocations: 0 / 0.5198 GB, free: 6.027 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003479/0.5759, allocations: 1.728 MB / 0.5215 GB, free: 4.25 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001882/0.5778, allocations: 275.6 kB / 0.5218 GB, free: 3.984 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1609/0.7387, allocations: 6.894 MB / 0.5285 GB, free: 144.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00239/0.7411, allocations: 2.291 MB / 0.5307 GB, free: 143.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006625/0.7418, allocations: 208.5 kB / 0.5309 GB, free: 143.9 MB / 446.1 MB Notification: Performance of SimCode: time 6.41e-07/0.7418, allocations: 0 / 0.5309 GB, free: 143.9 MB / 446.1 MB Notification: Performance of Templates: time 0.07029/0.8121, allocations: 75.44 MB / 0.6046 GB, free: 84.26 MB / 446.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches