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.001525/0.001525, allocations: 103 kB / 17.16 MB, free: 6.32 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.001563/0.001563, allocations: 190.9 kB / 18.08 MB, free: 5.41 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.387/1.387, allocations: 222.9 MB / 241.8 MB, free: 15.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 46.73 kB / 300.6 MB, free: 6.316 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09763/0.0989, allocations: 49.44 MB / 350.1 MB, free: 4.863 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.0192/0.1182, allocations: 17.91 MB / 368 MB, free: 2.867 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1861/0.3043, allocations: 5.041 MB / 373 MB, free: 8.887 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002724/0.3071, allocations: 71.28 kB / 373.1 MB, free: 8.887 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002235/0.3094, allocations: 1.002 MB / 374.1 MB, free: 8.859 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003044/0.3124, allocations: 1.273 MB / 375.4 MB, free: 8.797 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009255/0.3134, allocations: 422.3 kB / 375.8 MB, free: 8.777 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004709/0.3181, allocations: 3.611 MB / 379.4 MB, free: 8.762 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002221/0.3203, allocations: 1.505 MB / 380.9 MB, free: 8.621 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001237/0.3216, allocations: 0.734 MB / 381.6 MB, free: 8.543 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001713/0.3233, allocations: 1.301 MB / 382.9 MB, free: 8.246 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003577/0.3237, allocations: 114.3 kB / 383 MB, free: 8.246 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001902/0.3256, allocations: 1.029 MB / 384.1 MB, free: 8.066 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001235/0.3268, allocations: 1.085 MB / 385.1 MB, free: 7.645 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001047/0.3279, allocations: 1.258 MB / 386.4 MB, free: 6.711 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0027/0.3306, allocations: 3.353 MB / 389.8 MB, free: 4.609 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.3306, allocations: 2.688 kB / 389.8 MB, free: 4.609 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.3306, allocations: 0 / 389.8 MB, free: 4.609 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.771e-05/0.3307, allocations: 0 / 389.8 MB, free: 4.609 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.004985/0.3357, allocations: 3.051 MB / 392.8 MB, free: 2.512 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.3357, allocations: 13.61 kB / 392.8 MB, free: 2.508 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006087/0.3418, allocations: 1.728 MB / 394.5 MB, free: 1.613 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002319/0.3442, allocations: 1.394 MB / 395.9 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.759e-05/0.3443, allocations: 133.2 kB / 396.1 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006127/0.3449, allocations: 253.8 kB / 396.3 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01079/0.3557, allocations: 6.667 MB / 403 MB, free: 10.67 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.268e-05/0.3558, allocations: 31.66 kB / 403 MB, free: 10.64 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002807/0.3561, allocations: 90.27 kB / 403.1 MB, free: 10.57 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002096/0.3582, allocations: 1.362 MB / 404.5 MB, free: 9.211 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01192/0.3701, allocations: 6.031 MB / 410.5 MB, free: 3.18 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03608/0.4062, allocations: 25.63 MB / 436.1 MB, free: 8.918 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007643/0.4139, allocations: 2.661 MB / 438.8 MB, free: 6.113 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001797/0.4158, allocations: 1.032 MB / 439.8 MB, free: 5.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007304/0.4231, allocations: 3.899 MB / 443.7 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.653e-05/0.4232, allocations: 51.06 kB / 443.8 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of pre-optimization done (n=112): time 3.938e-06/0.4232, allocations: 0 / 443.8 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of matching and sorting (n=125): time 0.03093/0.4541, allocations: 10.28 MB / 454.1 MB, free: 6.438 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001478/0.4557, allocations: 1.588 MB / 455.6 MB, free: 4.676 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005511/0.4612, allocations: 2.725 MB / 458.4 MB, free: 1.93 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003455/0.4616, allocations: 45.06 kB / 458.4 MB, free: 1.883 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001729/0.4633, allocations: 2.082 MB / 460.5 MB, free: 15.8 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000812/0.4642, allocations: 0.5059 MB / 461 MB, free: 15.29 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00223/0.4664, allocations: 0.9208 MB / 461.9 MB, free: 14.36 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.4665, allocations: 301.1 kB / 462.2 MB, free: 14.07 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002987/0.4695, allocations: 1.656 MB / 463.9 MB, free: 12.4 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005067/0.4746, allocations: 4.456 MB / 468.3 MB, free: 6.539 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008868/0.4835, allocations: 6.537 MB / 474.9 MB, free: 14.61 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001062/0.4837, allocations: 28.28 kB / 474.9 MB, free: 14.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.02185/0.5055, allocations: 8.001 MB / 482.9 MB, free: 6.574 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001438/0.5057, allocations: 48.28 kB / 482.9 MB, free: 6.527 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01196/0.5177, allocations: 3.499 MB / 486.4 MB, free: 3.016 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01232/0.5301, allocations: 2.585 MB / 489 MB, free: 428 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003591/0.5337, allocations: 1.01 MB / 490 MB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01465/0.5484, allocations: 8.88 MB / 498.9 MB, free: 6.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004147/0.5526, allocations: 327.5 kB / 499.2 MB, free: 5.949 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009646/0.5536, allocations: 287.9 kB / 499.5 MB, free: 5.668 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.00334/0.5569, allocations: 1.418 MB / 0.4892 GB, free: 4.238 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006691/0.5576, allocations: 229 kB / 0.4894 GB, free: 4.012 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007235/0.5649, allocations: 2.841 MB / 0.4922 GB, free: 1.137 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006134/0.571, allocations: 2.513 MB / 0.4946 GB, free: 14.61 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.22e-05/0.5711, allocations: 4 kB / 0.4946 GB, free: 14.6 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.99e-05/0.5711, allocations: 3.984 kB / 0.4946 GB, free: 14.6 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01615/0.5873, allocations: 6.867 MB / 0.5013 GB, free: 7.672 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.206e-05/0.5874, allocations: 0 / 0.5013 GB, free: 7.672 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009671/0.5883, allocations: 179.7 kB / 0.5015 GB, free: 7.496 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005166/0.5935, allocations: 1.434 MB / 0.5029 GB, free: 6.055 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000296/0.5939, allocations: 34.39 kB / 0.503 GB, free: 6.023 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01086/0.6047, allocations: 7.325 MB / 0.5101 GB, free: 14.44 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001147/0.6059, allocations: 1.47 MB / 0.5115 GB, free: 12.82 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009701/0.6156, allocations: 4.847 MB / 0.5163 GB, free: 7.934 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008043/0.6165, allocations: 282.1 kB / 0.5165 GB, free: 7.637 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007055/0.6172, allocations: 35.05 kB / 0.5166 GB, free: 7.605 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001626/0.6189, allocations: 107.8 kB / 0.5167 GB, free: 7.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003764/0.6193, allocations: 80.38 kB / 0.5168 GB, free: 7.422 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001687/0.6195, allocations: 40.09 kB / 0.5168 GB, free: 7.383 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00341/0.6229, allocations: 1.697 MB / 0.5185 GB, free: 5.676 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.01e-07/0.6229, allocations: 0 / 0.5185 GB, free: 5.676 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005109/0.628, allocations: 0.7891 MB / 0.5192 GB, free: 4.887 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.0007558/0.6288, allocations: 166.7 kB / 0.5194 GB, free: 4.723 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008988/0.6378, allocations: 4.429 MB / 0.5237 GB, free: 276 kB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.434e-06/0.6379, allocations: 0 / 0.5237 GB, free: 276 kB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1645/0.8023, allocations: 1.715 MB / 0.5254 GB, free: 151.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00201/0.8044, allocations: 262.2 kB / 0.5256 GB, free: 151.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01113/0.8155, allocations: 8.097 MB / 0.5335 GB, free: 148.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002002/0.8176, allocations: 2.291 MB / 0.5358 GB, free: 147.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006428/0.8182, allocations: 203.8 kB / 0.536 GB, free: 147.8 MB / 446.1 MB Notification: Performance of SimCode: time 8.02e-07/0.8182, allocations: 0 / 0.536 GB, free: 147.8 MB / 446.1 MB Notification: Performance of Templates: time 0.06796/0.8862, allocations: 75.68 MB / 0.6099 GB, free: 84.16 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 -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