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.001517/0.001518, allocations: 119.9 kB / 18.41 MB, free: 4.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001577/0.001577, allocations: 203.5 kB / 19.36 MB, free: 3.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.406/1.406, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002282/0.002282, allocations: 64.16 kB / 308.4 MB, free: 15.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.138/0.1403, allocations: 50.53 MB / 358.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01119/0.1516, allocations: 7.398 MB / 366.3 MB, free: 5.918 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008125/0.1598, allocations: 3.277 MB / 369.6 MB, free: 2.629 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001445/0.1612, allocations: 31.94 kB / 369.6 MB, free: 2.598 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002792/0.1641, allocations: 1.031 MB / 370.6 MB, free: 1.562 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003986/0.1681, allocations: 1.346 MB / 372 MB, free: 220 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2076/0.3757, allocations: 452.8 kB / 372.4 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004748/0.3805, allocations: 2.654 MB / 375.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00282/0.3834, allocations: 1.517 MB / 376.6 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002245/0.3856, allocations: 0.8353 MB / 377.4 MB, free: 9.832 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002501/0.3882, allocations: 1.212 MB / 378.7 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009361/0.3891, allocations: 170.3 kB / 378.8 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002978/0.3921, allocations: 1.014 MB / 379.8 MB, free: 9.684 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002005/0.3942, allocations: 1.095 MB / 380.9 MB, free: 9.562 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002797/0.397, allocations: 1.287 MB / 382.2 MB, free: 8.855 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006392/0.4034, allocations: 4.318 MB / 386.5 MB, free: 7.48 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.4034, allocations: 0 / 386.5 MB, free: 7.48 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.135e-06/0.4034, allocations: 1.125 kB / 386.5 MB, free: 7.48 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001802/0.4036, allocations: 0 / 386.5 MB, free: 7.48 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.008954/0.4126, allocations: 3.031 MB / 389.6 MB, free: 5.605 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/0.4126, allocations: 8.938 kB / 389.6 MB, free: 5.605 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006941/0.4196, allocations: 1.795 MB / 391.4 MB, free: 4.684 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004275/0.4239, allocations: 1.372 MB / 392.7 MB, free: 3.867 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001733/0.4241, allocations: 131.6 kB / 392.9 MB, free: 3.832 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001076/0.4252, allocations: 266.5 kB / 393.1 MB, free: 3.758 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01291/0.4381, allocations: 6.676 MB / 399.8 MB, free: 15.64 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.25e-05/0.4382, allocations: 28.84 kB / 399.8 MB, free: 15.62 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000301/0.4385, allocations: 92.84 kB / 399.9 MB, free: 15.56 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002117/0.4407, allocations: 1.358 MB / 401.3 MB, free: 14.21 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01224/0.4529, allocations: 6.042 MB / 407.3 MB, free: 8.23 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03461/0.4876, allocations: 25.53 MB / 432.9 MB, free: 14.06 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006808/0.4944, allocations: 2.67 MB / 435.5 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001776/0.4962, allocations: 1.036 MB / 436.6 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007422/0.5037, allocations: 3.977 MB / 440.5 MB, free: 5.965 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.222e-05/0.5037, allocations: 43.06 kB / 440.6 MB, free: 5.914 MB / 350.1 MB Notification: Performance of pre-optimization done (n=112): time 3.306e-06/0.5037, allocations: 0 / 440.6 MB, free: 5.914 MB / 350.1 MB Notification: Performance of matching and sorting (n=125): time 0.02632/0.5301, allocations: 10.32 MB / 450.9 MB, free: 11.45 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001306/0.5314, allocations: 1.681 MB / 452.6 MB, free: 9.598 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004092/0.5355, allocations: 2.717 MB / 455.3 MB, free: 6.859 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003944/0.5359, allocations: 41.7 kB / 455.3 MB, free: 6.812 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001521/0.5375, allocations: 2.075 MB / 457.4 MB, free: 4.738 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007929/0.5383, allocations: 0.5101 MB / 457.9 MB, free: 4.234 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001373/0.5396, allocations: 0.9236 MB / 458.8 MB, free: 3.301 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001661/0.5398, allocations: 305.1 kB / 459.1 MB, free: 3 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002964/0.5428, allocations: 1.656 MB / 460.8 MB, free: 1.336 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00547/0.5483, allocations: 4.461 MB / 465.3 MB, free: 11.47 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008195/0.5565, allocations: 6.552 MB / 471.8 MB, free: 3.547 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.685e-05/0.5566, allocations: 32 kB / 471.8 MB, free: 3.516 MB / 382.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.02064/0.5773, allocations: 8.072 MB / 479.9 MB, free: 11.43 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.297e-05/0.5774, allocations: 50.66 kB / 480 MB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01147/0.5889, allocations: 3.577 MB / 483.5 MB, free: 7.789 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0119/0.6008, allocations: 2.674 MB / 486.2 MB, free: 5.102 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003856/0.6047, allocations: 1.01 MB / 487.2 MB, free: 4.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01585/0.6206, allocations: 9.72 MB / 496.9 MB, free: 10.1 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00412/0.6247, allocations: 331.5 kB / 497.3 MB, free: 9.773 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007956/0.6256, allocations: 284 kB / 497.5 MB, free: 9.496 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.002604/0.6282, allocations: 1.426 MB / 499 MB, free: 8.059 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005354/0.6287, allocations: 229 kB / 499.2 MB, free: 7.832 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006507/0.6294, allocations: 325.9 kB / 499.5 MB, free: 7.508 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005987/0.6354, allocations: 2.525 MB / 0.4903 GB, free: 4.965 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.573e-05/0.6354, allocations: 4 kB / 0.4903 GB, free: 4.961 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.834e-05/0.6354, allocations: 7.969 kB / 0.4903 GB, free: 4.953 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0147/0.6501, allocations: 6.887 MB / 0.497 GB, free: 14 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.145e-05/0.6502, allocations: 0 / 0.497 GB, free: 14 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001041/0.6513, allocations: 175.7 kB / 0.4972 GB, free: 13.83 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005031/0.6563, allocations: 1.437 MB / 0.4986 GB, free: 12.39 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001811/0.6565, allocations: 35.92 kB / 0.4986 GB, free: 12.35 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01144/0.668, allocations: 7.903 MB / 0.5063 GB, free: 4.164 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001215/0.6692, allocations: 1.546 MB / 0.5078 GB, free: 2.473 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009287/0.6785, allocations: 4.865 MB / 0.5126 GB, free: 13.57 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000945/0.6795, allocations: 298 kB / 0.5129 GB, free: 13.25 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003327/0.6799, allocations: 27.11 kB / 0.5129 GB, free: 13.23 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001136/0.681, allocations: 115.8 kB / 0.513 GB, free: 13.12 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002977/0.6813, allocations: 76.52 kB / 0.5131 GB, free: 13.04 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001165/0.6814, allocations: 43.97 kB / 0.5131 GB, free: 13 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003016/0.6845, allocations: 1.686 MB / 0.5148 GB, free: 11.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.6845, allocations: 4 kB / 0.5148 GB, free: 11.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005541/0.69, allocations: 0.7736 MB / 0.5155 GB, free: 10.53 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.0008577/0.691, allocations: 161.6 kB / 0.5157 GB, free: 10.36 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009246/0.7002, allocations: 4.465 MB / 0.52 GB, free: 5.875 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.151e-06/0.7003, allocations: 0 / 0.52 GB, free: 5.875 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003275/0.7035, allocations: 1.728 MB / 0.5217 GB, free: 4.102 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00197/0.7055, allocations: 278.4 kB / 0.522 GB, free: 3.836 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2149/0.9204, allocations: 6.511 MB / 0.5284 GB, free: 144.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002836/0.9233, allocations: 2.288 MB / 0.5306 GB, free: 143.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00359/0.9269, allocations: 1.406 MB / 0.532 GB, free: 143.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005526/0.9275, allocations: 170.9 kB / 0.5321 GB, free: 143.7 MB / 446.1 MB Notification: Performance of SimCode: time 1.483e-06/0.9275, allocations: 0 / 0.5321 GB, free: 143.7 MB / 446.1 MB Notification: Performance of Templates: time 0.04864/0.9762, allocations: 26.93 MB / 0.5584 GB, free: 131.2 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 -s cvode -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/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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches