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.001096/0.001096, allocations: 117.6 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001373/0.001373, allocations: 204.7 kB / 18.73 MB, free: 4.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001167, allocations: 59.91 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2662/0.2673, allocations: 50.54 MB / 409.2 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.008045/0.2754, allocations: 7.412 MB / 416.7 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005446/0.2809, allocations: 3.254 MB / 419.9 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007608/0.2817, allocations: 35.88 kB / 419.9 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002131/0.2838, allocations: 1.02 MB / 421 MB, free: 5.812 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00331/0.2872, allocations: 1.366 MB / 422.3 MB, free: 4.445 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001105/0.2883, allocations: 471.1 kB / 422.8 MB, free: 3.984 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003296/0.2916, allocations: 2.653 MB / 425.4 MB, free: 1.324 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002196/0.2938, allocations: 1.524 MB / 427 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00131/0.2951, allocations: 0.8368 MB / 427.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001688/0.2968, allocations: 1.219 MB / 429 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004945/0.2973, allocations: 172 kB / 429.2 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001891/0.2992, allocations: 1.01 MB / 430.2 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001239/0.3005, allocations: 1.091 MB / 431.3 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001535/0.302, allocations: 1.289 MB / 432.6 MB, free: 10.13 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004826/0.3069, allocations: 4.322 MB / 436.9 MB, free: 5.801 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.376e-05/0.3069, allocations: 4 kB / 436.9 MB, free: 5.797 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3069, allocations: 0 / 436.9 MB, free: 5.797 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.997e-05/0.307, allocations: 0 / 436.9 MB, free: 5.797 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.005447/0.3124, allocations: 3.02 MB / 439.9 MB, free: 2.719 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.3125, allocations: 11.97 kB / 439.9 MB, free: 2.707 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006274/0.3188, allocations: 1.791 MB / 441.7 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002403/0.3212, allocations: 1.371 MB / 443.1 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.999e-05/0.3213, allocations: 139.2 kB / 443.2 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006539/0.322, allocations: 255.6 kB / 443.5 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01/0.332, allocations: 6.676 MB / 450.2 MB, free: 7.973 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.112e-05/0.3321, allocations: 27.72 kB / 450.2 MB, free: 7.945 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002532/0.3323, allocations: 91.89 kB / 450.3 MB, free: 7.855 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001925/0.3343, allocations: 1.363 MB / 451.6 MB, free: 6.496 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01093/0.3452, allocations: 6.048 MB / 457.7 MB, free: 452 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02921/0.3745, allocations: 25.53 MB / 483.2 MB, free: 6.148 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006415/0.3809, allocations: 2.67 MB / 485.9 MB, free: 3.328 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00131/0.3823, allocations: 1.032 MB / 486.9 MB, free: 2.285 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00537/0.3876, allocations: 3.979 MB / 490.9 MB, free: 14.03 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.189e-05/0.3877, allocations: 47.11 kB / 490.9 MB, free: 13.98 MB / 414.1 MB Notification: Performance of pre-optimization done (n=112): time 3.206e-06/0.3877, allocations: 0 / 490.9 MB, free: 13.98 MB / 414.1 MB Notification: Performance of matching and sorting (n=125): time 0.02621/0.4139, allocations: 10.31 MB / 0.4895 GB, free: 3.496 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001222/0.4152, allocations: 1.675 MB / 0.4911 GB, free: 1.645 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004241/0.4194, allocations: 2.721 MB / 0.4938 GB, free: 14.9 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002296/0.4197, allocations: 41.7 kB / 0.4938 GB, free: 14.86 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001779/0.4215, allocations: 2.075 MB / 0.4959 GB, free: 12.75 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007579/0.4223, allocations: 0.5093 MB / 0.4964 GB, free: 12.23 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001961/0.4242, allocations: 0.9203 MB / 0.4973 GB, free: 11.3 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.4244, allocations: 305.1 kB / 0.4976 GB, free: 11 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0028/0.4272, allocations: 1.656 MB / 0.4992 GB, free: 9.332 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005256/0.4324, allocations: 4.46 MB / 0.5035 GB, free: 3.465 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008496/0.441, allocations: 6.558 MB / 0.5099 GB, free: 11.52 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001038/0.4411, allocations: 28 kB / 0.51 GB, free: 11.49 MB / 446.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.02029/0.4614, allocations: 8.078 MB / 0.5179 GB, free: 3.391 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.508e-05/0.4615, allocations: 48 kB / 0.5179 GB, free: 3.344 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01118/0.4727, allocations: 3.578 MB / 0.5214 GB, free: 15.75 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01134/0.4841, allocations: 2.67 MB / 0.524 GB, free: 13.07 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003114/0.4872, allocations: 1.018 MB / 0.525 GB, free: 12.05 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01393/0.5012, allocations: 9.707 MB / 0.5345 GB, free: 2.062 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003635/0.5048, allocations: 339.4 kB / 0.5348 GB, free: 1.734 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000895/0.5057, allocations: 284 kB / 0.5351 GB, free: 1.457 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.002961/0.5087, allocations: 1.438 MB / 0.5365 GB, free: 8 kB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.2064/0.7152, allocations: 227.2 kB / 0.5367 GB, free: 123.7 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008918/0.7161, allocations: 326.7 kB / 0.537 GB, free: 123.7 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006294/0.7224, allocations: 2.527 MB / 0.5395 GB, free: 123.6 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-05/0.7224, allocations: 5.5 kB / 0.5395 GB, free: 123.6 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.393e-05/0.7225, allocations: 7.328 kB / 0.5395 GB, free: 123.6 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01079/0.7333, allocations: 6.869 MB / 0.5462 GB, free: 121.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.924e-06/0.7333, allocations: 3.5 kB / 0.5462 GB, free: 121.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007292/0.734, allocations: 183.3 kB / 0.5464 GB, free: 121.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004074/0.7381, allocations: 1.432 MB / 0.5478 GB, free: 121.1 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.805e-05/0.7382, allocations: 31.06 kB / 0.5478 GB, free: 121.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007949/0.7462, allocations: 7.921 MB / 0.5555 GB, free: 116.1 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007004/0.7469, allocations: 1.534 MB / 0.557 GB, free: 114.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007054/0.754, allocations: 4.867 MB / 0.5618 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005678/0.7545, allocations: 297.3 kB / 0.5621 GB, free: 109.4 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002214/0.7548, allocations: 20 kB / 0.5621 GB, free: 109.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001009/0.7558, allocations: 115.8 kB / 0.5622 GB, free: 109.3 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002453/0.756, allocations: 80.92 kB / 0.5623 GB, free: 109.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.445e-05/0.7561, allocations: 39.27 kB / 0.5623 GB, free: 109.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001915/0.7581, allocations: 1.689 MB / 0.564 GB, free: 107.5 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.272e-06/0.7581, allocations: 0 / 0.564 GB, free: 107.5 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003163/0.7613, allocations: 0.7794 MB / 0.5647 GB, free: 106.7 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.000326/0.7616, allocations: 154.9 kB / 0.5649 GB, free: 106.6 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005944/0.7675, allocations: 4.465 MB / 0.5692 GB, free: 102.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.7676, allocations: 0 / 0.5692 GB, free: 102.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00254/0.7701, allocations: 1.724 MB / 0.5709 GB, free: 100.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001597/0.7717, allocations: 272.4 kB / 0.5712 GB, free: 100.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008145/0.7799, allocations: 6.527 MB / 0.5775 GB, free: 93.62 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001578/0.7815, allocations: 2.301 MB / 0.5798 GB, free: 91.29 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002462/0.784, allocations: 1.411 MB / 0.5812 GB, free: 89.87 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003385/0.7843, allocations: 159.4 kB / 0.5813 GB, free: 89.71 MB / 462.1 MB Notification: Performance of SimCode: time 1.172e-06/0.7843, allocations: 0 / 0.5813 GB, free: 89.71 MB / 462.1 MB Notification: Performance of Templates: time 0.04321/0.8275, allocations: 28.43 MB / 0.6091 GB, free: 61.41 MB / 462.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