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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001219/0.001219, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.265/1.265, allocations: 226.7 MB / 245.5 MB, free: 6.969 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009835/0.0009835, allocations: 108.4 kB / 296.7 MB, free: 6.496 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009328/0.0009328, allocations: 55.92 kB / 356.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2072/0.2082, allocations: 50.46 MB / 407.1 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01192/0.2201, allocations: 17.92 MB / 425 MB, free: 9.852 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007996/0.2282, allocations: 5.082 MB / 430.1 MB, free: 4.758 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002627/0.2308, allocations: 71.81 kB / 430.1 MB, free: 4.688 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001718/0.2326, allocations: 0.9932 MB / 431.1 MB, free: 3.691 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002319/0.2349, allocations: 1.262 MB / 432.4 MB, free: 2.426 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006982/0.2357, allocations: 419.4 kB / 432.8 MB, free: 2.016 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003039/0.2387, allocations: 3.692 MB / 436.5 MB, free: 14.32 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001648/0.2404, allocations: 1.493 MB / 438 MB, free: 12.8 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001033/0.2414, allocations: 0.7393 MB / 438.7 MB, free: 12.06 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001436/0.2429, allocations: 1.296 MB / 440 MB, free: 10.76 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000262/0.2431, allocations: 116 kB / 440.1 MB, free: 10.65 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00167/0.2448, allocations: 1.01 MB / 441.1 MB, free: 9.637 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009551/0.2458, allocations: 1.075 MB / 442.2 MB, free: 8.559 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001155/0.247, allocations: 1.265 MB / 443.5 MB, free: 7.285 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004113/0.2511, allocations: 4.149 MB / 447.6 MB, free: 3.125 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.583e-06/0.2511, allocations: 7.875 kB / 447.6 MB, free: 3.117 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2511, allocations: 0 / 447.6 MB, free: 3.117 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.21e-05/0.2512, allocations: 0 / 447.6 MB, free: 3.117 MB / 314.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.006237/0.2575, allocations: 3.051 MB / 450.7 MB, free: 8 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.588e-05/0.2575, allocations: 12.08 kB / 450.7 MB, free: 15.99 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006643/0.2642, allocations: 1.779 MB / 452.5 MB, free: 14.21 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003052/0.2673, allocations: 1.367 MB / 453.8 MB, free: 12.8 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001217/0.2674, allocations: 139.3 kB / 454 MB, free: 12.66 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007275/0.2682, allocations: 255.6 kB / 454.2 MB, free: 12.41 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0104/0.2786, allocations: 6.664 MB / 460.9 MB, free: 5.281 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.591e-05/0.2787, allocations: 27.72 kB / 460.9 MB, free: 5.254 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000255/0.2789, allocations: 87.89 kB / 461 MB, free: 5.168 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002102/0.281, allocations: 1.359 MB / 462.4 MB, free: 3.801 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01083/0.2919, allocations: 6.037 MB / 468.4 MB, free: 13.77 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02894/0.3209, allocations: 25.64 MB / 494 MB, free: 3.359 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006885/0.3278, allocations: 2.666 MB / 496.7 MB, free: 0.543 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001417/0.3292, allocations: 1.028 MB / 497.7 MB, free: 15.5 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00619/0.3355, allocations: 3.892 MB / 0.4899 GB, free: 11.36 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.346e-05/0.3355, allocations: 51 kB / 0.4899 GB, free: 11.3 MB / 378.7 MB Notification: Performance of pre-optimization done (n=112): time 3.797e-06/0.3355, allocations: 0 / 0.4899 GB, free: 11.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=125): time 0.02554/0.3611, allocations: 10.28 MB / 0.4999 GB, free: 0.8516 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.158/0.5191, allocations: 1.577 MB / 0.5015 GB, free: 92.73 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004561/0.5237, allocations: 2.735 MB / 0.5042 GB, free: 92.04 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002542/0.5239, allocations: 41.83 kB / 0.5042 GB, free: 92 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001103/0.5251, allocations: 2.082 MB / 0.5062 GB, free: 90.66 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005313/0.5256, allocations: 0.5076 MB / 0.5067 GB, free: 90.3 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001028/0.5266, allocations: 0.9226 MB / 0.5076 GB, free: 89.86 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.748e-05/0.5267, allocations: 302.5 kB / 0.5079 GB, free: 89.56 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002265/0.529, allocations: 1.654 MB / 0.5095 GB, free: 89.04 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003562/0.5325, allocations: 4.455 MB / 0.5139 GB, free: 84.73 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005332/0.5379, allocations: 6.55 MB / 0.5203 GB, free: 79.28 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.456e-05/0.538, allocations: 27.62 kB / 0.5203 GB, free: 79.28 MB / 378.7 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01752/0.5555, allocations: 8.074 MB / 0.5282 GB, free: 73.3 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.663e-05/0.5556, allocations: 55.38 kB / 0.5282 GB, free: 73.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01102/0.5666, allocations: 3.562 MB / 0.5317 GB, free: 69.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01191/0.5785, allocations: 2.673 MB / 0.5343 GB, free: 67 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002694/0.5813, allocations: 1.01 MB / 0.5353 GB, free: 65.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01124/0.5925, allocations: 8.903 MB / 0.544 GB, free: 56.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003315/0.5959, allocations: 323.5 kB / 0.5443 GB, free: 56.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004142/0.5963, allocations: 285.8 kB / 0.5446 GB, free: 56.23 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.001536/0.5978, allocations: 1.428 MB / 0.546 GB, free: 54.79 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003367/0.5982, allocations: 232.9 kB / 0.5462 GB, free: 54.56 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005984/0.6042, allocations: 2.835 MB / 0.549 GB, free: 51.7 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005275/0.6095, allocations: 2.512 MB / 0.5514 GB, free: 49.17 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.638e-06/0.6095, allocations: 4 kB / 0.5514 GB, free: 49.17 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.283e-05/0.6095, allocations: 8.391 kB / 0.5514 GB, free: 49.16 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0115/0.621, allocations: 6.878 MB / 0.5582 GB, free: 42.24 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.598e-06/0.6211, allocations: 0 / 0.5582 GB, free: 42.24 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000769/0.6218, allocations: 179.7 kB / 0.5583 GB, free: 42.06 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004547/0.6264, allocations: 1.426 MB / 0.5597 GB, free: 40.62 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001565/0.6266, allocations: 35.97 kB / 0.5598 GB, free: 40.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008065/0.6346, allocations: 7.336 MB / 0.5669 GB, free: 33 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006795/0.6353, allocations: 1.438 MB / 0.5683 GB, free: 31.42 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06236/0.6977, allocations: 33.78 MB / 0.6013 GB, free: 13.28 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004451/0.6982, allocations: 298 kB / 0.6016 GB, free: 12.96 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002639/0.6985, allocations: 23.98 kB / 0.6016 GB, free: 12.94 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001168/0.6997, allocations: 107.8 kB / 0.6017 GB, free: 12.84 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002794/0.6999, allocations: 80.38 kB / 0.6018 GB, free: 12.76 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001057/0.7001, allocations: 35.98 kB / 0.6018 GB, free: 12.72 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002377/0.7024, allocations: 1.697 MB / 0.6035 GB, free: 11.02 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.7025, allocations: 192 / 0.6035 GB, free: 11.02 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004082/0.7065, allocations: 1.068 MB / 0.6045 GB, free: 9.953 MB / 394.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.0004323/0.707, allocations: 170 kB / 0.6047 GB, free: 9.781 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.007621/0.7146, allocations: 4.425 MB / 0.609 GB, free: 5.34 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/0.7147, allocations: 0 / 0.609 GB, free: 5.34 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00325/0.7179, allocations: 1.729 MB / 0.6107 GB, free: 3.566 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001738/0.7197, allocations: 252 kB / 0.6109 GB, free: 3.32 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01493/0.7346, allocations: 9.482 MB / 0.6202 GB, free: 9.715 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002497/0.7372, allocations: 2.333 MB / 0.6225 GB, free: 7.355 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003451/0.7406, allocations: 1.419 MB / 0.6239 GB, free: 5.93 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005154/0.7412, allocations: 179.3 kB / 0.624 GB, free: 5.754 MB / 410.7 MB Notification: Performance of SimCode: time 7.52e-07/0.7412, allocations: 0 / 0.624 GB, free: 5.754 MB / 410.7 MB Notification: Performance of Templates: time 0.2329/0.9741, allocations: 38.41 MB / 0.6615 GB, free: 141.1 MB / 442.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@2/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