Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 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.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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00104/0.00104, allocations: 104.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001088/0.001088, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.327/1.327, allocations: 227.4 MB / 246.3 MB, free: 10.85 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 59.72 kB / 306.3 MB, free: 1.051 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.103, allocations: 50.54 MB / 356.8 MB, free: 14.53 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.1989/0.302, allocations: 17.78 MB / 374.6 MB, free: 8.891 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01014/0.3121, allocations: 5.041 MB / 379.6 MB, free: 8.199 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003678/0.3159, allocations: 70.91 kB / 379.7 MB, free: 8.188 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002453/0.3184, allocations: 0.9985 MB / 380.7 MB, free: 7.883 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003661/0.3221, allocations: 1.253 MB / 382 MB, free: 7.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001251/0.3233, allocations: 412 kB / 382.4 MB, free: 7.367 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005464/0.3288, allocations: 3.65 MB / 386 MB, free: 6.492 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002761/0.3316, allocations: 1.507 MB / 387.5 MB, free: 6.004 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001705/0.3333, allocations: 0.7214 MB / 388.2 MB, free: 5.758 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00235/0.3357, allocations: 1.297 MB / 389.5 MB, free: 5.242 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007354/0.3364, allocations: 114 kB / 389.6 MB, free: 5.242 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002522/0.339, allocations: 1.011 MB / 390.7 MB, free: 4.789 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001776/0.3408, allocations: 1.065 MB / 391.7 MB, free: 4.211 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002617/0.3434, allocations: 1.247 MB / 393 MB, free: 3.273 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00462/0.348, allocations: 4.121 MB / 397.1 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.348, allocations: 0 / 397.1 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.348, allocations: 3.938 kB / 397.1 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.883e-05/0.3481, allocations: 0 / 397.1 MB, free: 0.5938 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.005331/0.3534, allocations: 3.021 MB / 400.1 MB, free: 14.52 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.858e-05/0.3535, allocations: 8.75 kB / 400.1 MB, free: 14.52 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006331/0.3598, allocations: 1.788 MB / 401.9 MB, free: 13.6 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002362/0.3622, allocations: 1.36 MB / 403.3 MB, free: 12.27 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001016/0.3623, allocations: 134 kB / 403.4 MB, free: 12.16 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006162/0.3629, allocations: 254.8 kB / 403.6 MB, free: 11.94 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01009/0.373, allocations: 6.671 MB / 410.3 MB, free: 4.887 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.089e-05/0.3731, allocations: 31.75 kB / 410.3 MB, free: 4.855 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002505/0.3734, allocations: 88.91 kB / 410.4 MB, free: 4.797 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002032/0.3754, allocations: 1.361 MB / 411.8 MB, free: 3.434 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01092/0.3864, allocations: 6.047 MB / 417.8 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02991/0.4163, allocations: 25.63 MB / 443.5 MB, free: 3.117 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007331/0.4237, allocations: 2.678 MB / 446.1 MB, free: 300 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001641/0.4254, allocations: 1.04 MB / 447.2 MB, free: 15.24 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006655/0.432, allocations: 3.968 MB / 451.2 MB, free: 11.02 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.973e-05/0.4321, allocations: 55.05 kB / 451.2 MB, free: 10.95 MB / 366.1 MB Notification: Performance of pre-optimization done (n=112): time 4.328e-06/0.4321, allocations: 0 / 451.2 MB, free: 10.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=125): time 0.03011/0.4622, allocations: 10.32 MB / 461.5 MB, free: 496 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001327/0.4636, allocations: 1.576 MB / 463.1 MB, free: 14.73 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004815/0.4684, allocations: 2.725 MB / 465.8 MB, free: 11.99 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002391/0.4687, allocations: 41.7 kB / 465.9 MB, free: 11.94 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001478/0.4702, allocations: 2.075 MB / 467.9 MB, free: 9.867 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006324/0.4708, allocations: 0.5053 MB / 468.5 MB, free: 9.367 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001661/0.4725, allocations: 0.919 MB / 469.4 MB, free: 8.438 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.68e-05/0.4726, allocations: 305.2 kB / 469.7 MB, free: 8.137 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002809/0.4754, allocations: 1.66 MB / 471.3 MB, free: 6.469 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00434/0.4798, allocations: 4.46 MB / 475.8 MB, free: 0.6016 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007146/0.4869, allocations: 6.551 MB / 482.3 MB, free: 8.664 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.63e-05/0.487, allocations: 28 kB / 482.4 MB, free: 8.637 MB / 398.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01912/0.5062, allocations: 8.079 MB / 490.4 MB, free: 0.543 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.637e-05/0.5062, allocations: 48 kB / 490.5 MB, free: 0.4961 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01152/0.5178, allocations: 3.579 MB / 494.1 MB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01178/0.5296, allocations: 2.671 MB / 496.7 MB, free: 10.22 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003316/0.5329, allocations: 1.018 MB / 497.8 MB, free: 9.203 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01376/0.5467, allocations: 8.898 MB / 0.4948 GB, free: 44 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003963/0.5507, allocations: 331.6 kB / 0.4951 GB, free: 15.72 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008984/0.5516, allocations: 284 kB / 0.4954 GB, free: 15.44 MB / 430.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.002871/0.5545, allocations: 1.425 MB / 0.4968 GB, free: 14.01 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005552/0.5551, allocations: 233 kB / 0.497 GB, free: 13.78 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008052/0.5559, allocations: 325.9 kB / 0.4973 GB, free: 13.45 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006179/0.5621, allocations: 2.521 MB / 0.4998 GB, free: 10.91 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.905e-05/0.5621, allocations: 7.938 kB / 0.4998 GB, free: 10.9 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.606e-05/0.5621, allocations: 3.984 kB / 0.4998 GB, free: 10.89 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01434/0.5765, allocations: 6.878 MB / 0.5065 GB, free: 3.949 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.056e-05/0.5765, allocations: 4 kB / 0.5065 GB, free: 3.945 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008677/0.5774, allocations: 179.7 kB / 0.5067 GB, free: 3.77 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004974/0.5824, allocations: 1.431 MB / 0.5081 GB, free: 2.328 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001383/0.5825, allocations: 31.97 kB / 0.5081 GB, free: 2.297 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01016/0.5927, allocations: 7.33 MB / 0.5152 GB, free: 10.71 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001084/0.5938, allocations: 1.454 MB / 0.5167 GB, free: 9.113 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008969/0.6028, allocations: 4.878 MB / 0.5214 GB, free: 4.199 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006269/0.6034, allocations: 290 kB / 0.5217 GB, free: 3.895 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002824/0.6037, allocations: 24 kB / 0.5217 GB, free: 3.871 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0011/0.6048, allocations: 115.8 kB / 0.5218 GB, free: 3.758 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002924/0.6051, allocations: 84.38 kB / 0.5219 GB, free: 3.672 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001073/0.6052, allocations: 42.56 kB / 0.522 GB, free: 3.633 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002438/0.6077, allocations: 1.689 MB / 0.5236 GB, free: 1.934 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6077, allocations: 0 / 0.5236 GB, free: 1.934 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003296/0.611, allocations: 0.7697 MB / 0.5244 GB, free: 1.164 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.0003723/0.6114, allocations: 158.2 kB / 0.5245 GB, free: 1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.1602/0.7716, allocations: 4.429 MB / 0.5288 GB, free: 145.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.102e-06/0.7716, allocations: 0 / 0.5288 GB, free: 145.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003095/0.7747, allocations: 1.716 MB / 0.5305 GB, free: 145.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001835/0.7766, allocations: 256.7 kB / 0.5308 GB, free: 145.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01038/0.787, allocations: 7.791 MB / 0.5384 GB, free: 141.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002248/0.7893, allocations: 2.303 MB / 0.5406 GB, free: 140.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003409/0.7927, allocations: 1.408 MB / 0.542 GB, free: 140.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004447/0.7931, allocations: 170 kB / 0.5422 GB, free: 140.2 MB / 446.1 MB Notification: Performance of SimCode: time 1.092e-06/0.7931, allocations: 0 / 0.5422 GB, free: 140.2 MB / 446.1 MB Notification: Performance of Templates: time 0.03841/0.8316, allocations: 29.53 MB / 0.571 GB, free: 120.3 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches