Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001344/0.001344, allocations: 201.6 kB / 17.43 MB, free: 4.375 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.338/1.338, allocations: 229.5 MB / 247.7 MB, free: 6.336 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007714/0.0007714, allocations: 99.47 kB / 299.9 MB, free: 5.348 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002417/0.0002417, allocations: 11.98 kB / 360.6 MB, free: 8.484 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2028/0.203, allocations: 51.41 MB / 412.1 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01084/0.2139, allocations: 16.16 MB / 428.2 MB, free: 9.688 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009825/0.2238, allocations: 8.127 MB / 436.3 MB, free: 0.7773 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002393/0.2262, allocations: 71.81 kB / 436.4 MB, free: 0.707 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006477/0.2268, allocations: 278.7 kB / 436.7 MB, free: 444 kB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00261/0.2295, allocations: 1.266 MB / 438 MB, free: 15.16 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008049/0.2303, allocations: 419.3 kB / 438.4 MB, free: 14.75 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.00356/0.2339, allocations: 3.679 MB / 442 MB, free: 11.07 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002513/0.2364, allocations: 2.321 MB / 444.4 MB, free: 8.617 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009502/0.2374, allocations: 0.7547 MB / 445.1 MB, free: 7.859 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001339/0.2387, allocations: 1.211 MB / 446.3 MB, free: 6.645 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002322/0.239, allocations: 88 kB / 446.4 MB, free: 6.559 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001604/0.2406, allocations: 0.9671 MB / 447.4 MB, free: 5.59 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008728/0.2415, allocations: 1.032 MB / 448.4 MB, free: 4.555 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009402/0.2424, allocations: 1.232 MB / 449.6 MB, free: 3.309 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003346/0.2458, allocations: 4.066 MB / 453.7 MB, free: 15.23 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.2458, allocations: 0 / 453.7 MB, free: 15.23 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2458, allocations: 0 / 453.7 MB, free: 15.23 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.094e-05/0.2458, allocations: 0 / 453.7 MB, free: 15.23 MB / 330.7 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.00414/0.25, allocations: 2.532 MB / 456.2 MB, free: 12.64 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.25, allocations: 8.031 kB / 456.3 MB, free: 12.63 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006213/0.2563, allocations: 1.834 MB / 458.1 MB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002743/0.259, allocations: 1.359 MB / 459.4 MB, free: 9.387 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001044/0.2592, allocations: 135.3 kB / 459.6 MB, free: 9.254 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006386/0.2598, allocations: 255.6 kB / 459.8 MB, free: 9.004 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01058/0.2704, allocations: 6.66 MB / 466.5 MB, free: 1.879 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.356e-05/0.2705, allocations: 27.72 kB / 466.5 MB, free: 1.852 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000236/0.2707, allocations: 87.88 kB / 466.6 MB, free: 1.766 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00203/0.2728, allocations: 1.363 MB / 468 MB, free: 404 kB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01078/0.2836, allocations: 6.021 MB / 474 MB, free: 10.38 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02798/0.3116, allocations: 25.63 MB / 499.6 MB, free: 15.97 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00648/0.3181, allocations: 2.654 MB / 0.4905 GB, free: 13.17 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001355/0.3195, allocations: 1.032 MB / 0.4915 GB, free: 12.12 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005392/0.3249, allocations: 3.896 MB / 0.4953 GB, free: 7.977 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.414e-05/0.3249, allocations: 47.11 kB / 0.4954 GB, free: 7.922 MB / 378.7 MB Notification: Performance of pre-optimization done (n=112): time 3.367e-06/0.325, allocations: 0 / 0.4954 GB, free: 7.922 MB / 378.7 MB Notification: Performance of matching and sorting (n=125): time 0.2122/0.5372, allocations: 10.31 MB / 0.5054 GB, free: 92.32 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009799/0.5382, allocations: 1.582 MB / 0.507 GB, free: 90.77 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004303/0.5425, allocations: 2.707 MB / 0.5096 GB, free: 89.78 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001954/0.5427, allocations: 43.03 kB / 0.5097 GB, free: 89.74 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001095/0.5438, allocations: 2.08 MB / 0.5117 GB, free: 88.12 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005522/0.5444, allocations: 0.5085 MB / 0.5122 GB, free: 87.77 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002718/0.5447, allocations: 85.2 kB / 0.5123 GB, free: 87.7 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002183/0.5449, allocations: 0.5031 MB / 0.5128 GB, free: 87.31 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002652/0.5476, allocations: 1.638 MB / 0.5144 GB, free: 86.78 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003192/0.5508, allocations: 4.431 MB / 0.5187 GB, free: 82.46 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006298/0.5571, allocations: 6.524 MB / 0.525 GB, free: 76.98 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001231/0.5573, allocations: 30.62 kB / 0.5251 GB, free: 76.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01739/0.5747, allocations: 8.03 MB / 0.5329 GB, free: 69.7 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001447/0.5748, allocations: 48 kB / 0.533 GB, free: 69.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01024/0.5851, allocations: 3.568 MB / 0.5365 GB, free: 66.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01062/0.5957, allocations: 2.675 MB / 0.5391 GB, free: 63.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002964/0.5987, allocations: 1.014 MB / 0.5401 GB, free: 62.37 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01087/0.6096, allocations: 8.888 MB / 0.5487 GB, free: 53.22 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003707/0.6134, allocations: 332.2 kB / 0.549 GB, free: 52.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006448/0.6141, allocations: 282 kB / 0.5493 GB, free: 52.62 MB / 378.7 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.002293/0.6164, allocations: 1.421 MB / 0.5507 GB, free: 51.2 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005734/0.6169, allocations: 229 kB / 0.5509 GB, free: 50.97 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00594/0.6229, allocations: 2.848 MB / 0.5537 GB, free: 48.09 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005021/0.6279, allocations: 2.501 MB / 0.5561 GB, free: 45.57 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.635e-05/0.628, allocations: 8 kB / 0.5562 GB, free: 45.57 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.575e-05/0.628, allocations: 7.969 kB / 0.5562 GB, free: 45.56 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01464/0.6426, allocations: 6.868 MB / 0.5629 GB, free: 38.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.481e-05/0.6427, allocations: 0 / 0.5629 GB, free: 38.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007953/0.6435, allocations: 183.7 kB / 0.563 GB, free: 38.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004309/0.6478, allocations: 1.43 MB / 0.5644 GB, free: 37.03 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001562/0.648, allocations: 35.98 kB / 0.5645 GB, free: 36.99 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007965/0.656, allocations: 7.331 MB / 0.5716 GB, free: 29.4 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007705/0.6568, allocations: 1.446 MB / 0.573 GB, free: 27.82 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007564/0.6644, allocations: 4.845 MB / 0.5778 GB, free: 22.92 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007529/0.6651, allocations: 305.9 kB / 0.5781 GB, free: 22.6 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004792/0.6656, allocations: 25.12 kB / 0.5781 GB, free: 22.58 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001322/0.667, allocations: 117 kB / 0.5782 GB, free: 22.46 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000259/0.6672, allocations: 76.38 kB / 0.5783 GB, free: 22.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.425e-05/0.6673, allocations: 39.98 kB / 0.5783 GB, free: 22.35 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002371/0.6697, allocations: 1.673 MB / 0.58 GB, free: 20.67 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.6697, allocations: 0 / 0.58 GB, free: 20.67 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003603/0.6733, allocations: 0.7884 MB / 0.5807 GB, free: 19.89 MB / 378.7 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.0003429/0.6737, allocations: 164.8 kB / 0.5809 GB, free: 19.72 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.006058/0.6798, allocations: 4.415 MB / 0.5852 GB, free: 15.29 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.6798, allocations: 0 / 0.5852 GB, free: 15.29 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002554/0.6824, allocations: 1.723 MB / 0.5869 GB, free: 13.52 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00211/0.6845, allocations: 256.7 kB / 0.5871 GB, free: 13.27 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008541/0.693, allocations: 7.968 MB / 0.5949 GB, free: 5.25 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001563/0.6946, allocations: 2.301 MB / 0.5971 GB, free: 2.914 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002868/0.6975, allocations: 1.404 MB / 0.5985 GB, free: 1.504 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003693/0.6979, allocations: 167.4 kB / 0.5987 GB, free: 1.344 MB / 378.7 MB Notification: Performance of SimCode: time 9.31e-07/0.6979, allocations: 0 / 0.5987 GB, free: 1.344 MB / 378.7 MB Notification: Performance of Templates: time 0.04781/0.7457, allocations: 29.18 MB / 0.6272 GB, free: 4.273 MB / 410.7 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","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches