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.001179/0.00118, allocations: 112.6 kB / 17.74 MB, free: 5.227 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.001195/0.001195, allocations: 184.5 kB / 18.67 MB, free: 4.309 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.34/1.34, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001108/0.001108, allocations: 47.92 kB / 352 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.26/0.2612, allocations: 49.43 MB / 401.4 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.008864/0.2701, allocations: 7.431 MB / 408.8 MB, free: 1.414 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006291/0.2764, allocations: 3.242 MB / 412.1 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001154/0.2776, allocations: 35.88 kB / 412.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002351/0.28, allocations: 1.028 MB / 413.1 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003511/0.2835, allocations: 1.37 MB / 414.5 MB, free: 11.72 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001087/0.2846, allocations: 463 kB / 415 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003646/0.2883, allocations: 2.632 MB / 417.6 MB, free: 8.629 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002314/0.2906, allocations: 1.527 MB / 419.1 MB, free: 7.07 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001483/0.2921, allocations: 0.8447 MB / 420 MB, free: 6.223 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001928/0.2941, allocations: 1.215 MB / 421.2 MB, free: 5.004 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006036/0.2947, allocations: 168 kB / 421.3 MB, free: 4.84 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002215/0.2969, allocations: 1.037 MB / 422.4 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001319/0.2983, allocations: 1.106 MB / 423.5 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001894/0.3002, allocations: 1.305 MB / 424.8 MB, free: 1.379 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005267/0.3054, allocations: 4.369 MB / 429.2 MB, free: 13 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.3055, allocations: 0 / 429.2 MB, free: 13 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3055, allocations: 0 / 429.2 MB, free: 13 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001452/0.3056, allocations: 0 / 429.2 MB, free: 13 MB / 350.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.007836/0.3135, allocations: 3.051 MB / 432.2 MB, free: 9.891 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.13e-05/0.3135, allocations: 8.031 kB / 432.2 MB, free: 9.883 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006836/0.3204, allocations: 1.736 MB / 434 MB, free: 8.141 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003131/0.3235, allocations: 1.409 MB / 435.4 MB, free: 6.688 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001355/0.3237, allocations: 135.3 kB / 435.5 MB, free: 6.555 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009662/0.3247, allocations: 251.7 kB / 435.7 MB, free: 6.309 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01218/0.3369, allocations: 6.664 MB / 442.4 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.083e-05/0.337, allocations: 27.75 kB / 442.4 MB, free: 15.15 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004665/0.3375, allocations: 87.89 kB / 442.5 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00226/0.3397, allocations: 1.359 MB / 443.9 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01207/0.3518, allocations: 6.037 MB / 449.9 MB, free: 7.672 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0325/0.3844, allocations: 25.53 MB / 475.5 MB, free: 13.38 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006911/0.3913, allocations: 2.682 MB / 478.1 MB, free: 10.55 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00132/0.3927, allocations: 1.032 MB / 479.2 MB, free: 9.504 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005555/0.3982, allocations: 3.896 MB / 483.1 MB, free: 5.352 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.621e-05/0.3983, allocations: 39.12 kB / 483.1 MB, free: 5.305 MB / 398.1 MB Notification: Performance of pre-optimization done (n=112): time 4.509e-06/0.3983, allocations: 0 / 483.1 MB, free: 5.305 MB / 398.1 MB Notification: Performance of matching and sorting (n=125): time 0.02615/0.4245, allocations: 10.29 MB / 493.4 MB, free: 10.85 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001312/0.4258, allocations: 1.675 MB / 495.1 MB, free: 8.996 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003475/0.4293, allocations: 2.725 MB / 497.8 MB, free: 6.25 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002162/0.4295, allocations: 45.69 kB / 497.8 MB, free: 6.199 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00129/0.4308, allocations: 2.083 MB / 499.9 MB, free: 4.082 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005537/0.4314, allocations: 0.5015 MB / 0.4887 GB, free: 3.574 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00109/0.4325, allocations: 0.9204 MB / 0.4896 GB, free: 2.641 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.258e-05/0.4326, allocations: 305.1 kB / 0.4899 GB, free: 2.34 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0024/0.435, allocations: 1.652 MB / 0.4915 GB, free: 0.6797 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004402/0.4394, allocations: 4.464 MB / 0.4958 GB, free: 10.81 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007512/0.447, allocations: 6.541 MB / 0.5022 GB, free: 2.875 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.63e-05/0.4471, allocations: 28 kB / 0.5023 GB, free: 2.848 MB / 430.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.02171/0.4688, allocations: 7.997 MB / 0.5101 GB, free: 10.83 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001402/0.469, allocations: 48 kB / 0.5101 GB, free: 10.79 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01239/0.4814, allocations: 3.499 MB / 0.5135 GB, free: 7.273 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01261/0.494, allocations: 2.584 MB / 0.5161 GB, free: 4.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003483/0.4976, allocations: 1.006 MB / 0.517 GB, free: 3.672 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01536/0.513, allocations: 9.686 MB / 0.5265 GB, free: 9.703 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004187/0.5172, allocations: 335.6 kB / 0.5268 GB, free: 9.375 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009709/0.5182, allocations: 288 kB / 0.5271 GB, free: 9.094 MB / 462.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.003585/0.5218, allocations: 1.423 MB / 0.5285 GB, free: 7.66 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009289/0.5227, allocations: 229 kB / 0.5287 GB, free: 7.434 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007737/0.5305, allocations: 2.838 MB / 0.5315 GB, free: 4.562 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006182/0.5367, allocations: 2.521 MB / 0.5339 GB, free: 2.023 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.347e-05/0.5368, allocations: 4 kB / 0.5339 GB, free: 2.02 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.716e-05/0.5368, allocations: 3.984 kB / 0.5339 GB, free: 2.016 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2412/0.7781, allocations: 6.863 MB / 0.5406 GB, free: 129.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-05/0.7781, allocations: 3.562 kB / 0.5406 GB, free: 129.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001309/0.7794, allocations: 176.2 kB / 0.5408 GB, free: 129.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007562/0.787, allocations: 1.435 MB / 0.5422 GB, free: 128.9 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003268/0.7874, allocations: 30.42 kB / 0.5422 GB, free: 128.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01692/0.8043, allocations: 7.916 MB / 0.55 GB, free: 124.5 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001321/0.8057, allocations: 1.542 MB / 0.5515 GB, free: 122.9 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0153/0.821, allocations: 4.855 MB / 0.5562 GB, free: 120.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001094/0.8222, allocations: 295.3 kB / 0.5565 GB, free: 120.5 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005343/0.8227, allocations: 28 kB / 0.5565 GB, free: 120.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002161/0.8249, allocations: 111.8 kB / 0.5566 GB, free: 120.4 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004059/0.8253, allocations: 72.44 kB / 0.5567 GB, free: 120.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001621/0.8255, allocations: 39.98 kB / 0.5567 GB, free: 120.3 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003885/0.8294, allocations: 1.695 MB / 0.5584 GB, free: 118.6 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.462e-06/0.8294, allocations: 3.938 kB / 0.5584 GB, free: 118.6 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006676/0.8361, allocations: 0.7903 MB / 0.5592 GB, free: 117.8 MB / 462.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.0005782/0.8367, allocations: 157.2 kB / 0.5593 GB, free: 117.7 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01221/0.849, allocations: 4.46 MB / 0.5637 GB, free: 113.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.115e-06/0.849, allocations: 0.6562 kB / 0.5637 GB, free: 113.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005191/0.8542, allocations: 1.73 MB / 0.5654 GB, free: 111.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002866/0.8571, allocations: 270.5 kB / 0.5656 GB, free: 111.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01464/0.8718, allocations: 6.816 MB / 0.5723 GB, free: 104.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002852/0.8747, allocations: 2.304 MB / 0.5745 GB, free: 102.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008797/0.8756, allocations: 203.4 kB / 0.5747 GB, free: 101.9 MB / 462.1 MB Notification: Performance of SimCode: time 9.32e-07/0.8756, allocations: 0 / 0.5747 GB, free: 101.9 MB / 462.1 MB Notification: Performance of Templates: time 0.07716/0.9528, allocations: 76.14 MB / 0.6491 GB, free: 25.81 MB / 462.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