Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008552/0.0008552, allocations: 87.62 kB / 21.44 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.003534/0.003534, allocations: 160.2 kB / 24.7 MB, free: 9.418 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.878/0.878, allocations: 177.2 MB / 205 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,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.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,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.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 325.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.818e-05/2.984e-05, allocations: 2.281 kB / 325.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.006866/0.006896, allocations: 6.602 MB / 332.4 MB, free: 8.789 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005522/0.01242, allocations: 3.094 MB / 335.5 MB, free: 5.688 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001023/0.01344, allocations: 39.81 kB / 335.6 MB, free: 5.648 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001827/0.01527, allocations: 1.055 MB / 336.6 MB, free: 4.59 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002819/0.01809, allocations: 1.421 MB / 338 MB, free: 3.164 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000856/0.01894, allocations: 490.8 kB / 338.5 MB, free: 2.684 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003076/0.02202, allocations: 3.022 MB / 341.5 MB, free: 15.66 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001832/0.02385, allocations: 1.565 MB / 343.1 MB, free: 14.07 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001722/0.02557, allocations: 1.309 MB / 344.4 MB, free: 12.75 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001772/0.02734, allocations: 1.403 MB / 345.8 MB, free: 11.35 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003401/0.02768, allocations: 172 kB / 346 MB, free: 11.18 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001537/0.02922, allocations: 0.9593 MB / 346.9 MB, free: 10.22 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009443/0.03017, allocations: 1.172 MB / 348.1 MB, free: 9.043 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009009/0.03107, allocations: 0.7241 MB / 348.8 MB, free: 8.316 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004741/0.03581, allocations: 4.361 MB / 353.2 MB, free: 3.941 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.03581, allocations: 0 / 353.2 MB, free: 3.941 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.03582, allocations: 4 kB / 353.2 MB, free: 3.938 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.261e-05/0.0359, allocations: 0 / 353.2 MB, free: 3.938 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.00555/0.04145, allocations: 3.064 MB / 356.3 MB, free: 0.832 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.779e-05/0.0415, allocations: 8.031 kB / 356.3 MB, free: 0.8242 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005443/0.04694, allocations: 1.844 MB / 358.1 MB, free: 14.98 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002891/0.04983, allocations: 1.321 MB / 359.4 MB, free: 13.63 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001175/0.04995, allocations: 135.4 kB / 359.6 MB, free: 13.5 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007055/0.05065, allocations: 259.7 kB / 359.8 MB, free: 13.24 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01052/0.06117, allocations: 6.705 MB / 366.5 MB, free: 6.07 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.551e-05/0.06124, allocations: 39.62 kB / 366.6 MB, free: 6.031 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002484/0.06149, allocations: 87.89 kB / 366.7 MB, free: 5.945 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001734/0.06323, allocations: 1.363 MB / 368 MB, free: 4.578 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01055/0.07378, allocations: 6.06 MB / 374.1 MB, free: 14.5 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0305/0.1043, allocations: 24.16 MB / 398.2 MB, free: 5.586 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005267/0.1095, allocations: 2.201 MB / 400.4 MB, free: 3.352 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009953/0.1105, allocations: 0.9926 MB / 401.4 MB, free: 2.344 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003472/0.114, allocations: 2.809 MB / 404.2 MB, free: 15.5 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.897e-05/0.114, allocations: 43.06 kB / 404.3 MB, free: 15.45 MB / 378.7 MB Notification: Performance of pre-optimization done (n=112): time 2.675e-06/0.114, allocations: 0 / 404.3 MB, free: 15.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=125): time 0.01398/0.128, allocations: 10.33 MB / 414.6 MB, free: 5.047 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0008361/0.1289, allocations: 1.553 MB / 416.2 MB, free: 3.348 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002177/0.131, allocations: 2.679 MB / 418.9 MB, free: 0.6328 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.762e-05/0.1311, allocations: 41.7 kB / 418.9 MB, free: 0.5859 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008403/0.1319, allocations: 2.151 MB / 421 MB, free: 14.41 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002944/0.1322, allocations: 0.5272 MB / 421.6 MB, free: 13.88 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007273/0.133, allocations: 0.9133 MB / 422.5 MB, free: 12.95 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.27e-05/0.1331, allocations: 357.9 kB / 422.8 MB, free: 12.59 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00153/0.1346, allocations: 1.676 MB / 424.5 MB, free: 10.91 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00265/0.1372, allocations: 4.491 MB / 429 MB, free: 5.012 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004418/0.1417, allocations: 6.577 MB / 435.6 MB, free: 13.05 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-05/0.1417, allocations: 28 kB / 435.6 MB, free: 13.02 MB / 410.7 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01/0.1517, allocations: 8.092 MB / 443.7 MB, free: 4.914 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.151e-05/0.1517, allocations: 48 kB / 443.7 MB, free: 4.867 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005922/0.1576, allocations: 3.601 MB / 447.3 MB, free: 1.254 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1587/0.3163, allocations: 2.667 MB / 450 MB, free: 109.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001935/0.3183, allocations: 1.02 MB / 451 MB, free: 109.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007215/0.3255, allocations: 9.366 MB / 460.4 MB, free: 105.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001816/0.3273, allocations: 384.6 kB / 460.8 MB, free: 105.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002033/0.3275, allocations: 281.3 kB / 461.1 MB, free: 105.2 MB / 410.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.001196/0.3287, allocations: 1.428 MB / 462.5 MB, free: 104.6 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001785/0.3289, allocations: 214.8 kB / 462.7 MB, free: 104.6 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002261/0.3291, allocations: 311.4 kB / 463 MB, free: 104.4 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002853/0.332, allocations: 2.507 MB / 465.5 MB, free: 103.8 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.332, allocations: 11.69 kB / 465.5 MB, free: 103.8 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.383e-06/0.332, allocations: 3.75 kB / 465.5 MB, free: 103.8 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005994/0.338, allocations: 6.24 MB / 471.8 MB, free: 98.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.338, allocations: 4 kB / 471.8 MB, free: 98.75 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003911/0.3384, allocations: 182.4 kB / 471.9 MB, free: 98.57 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002153/0.3405, allocations: 1.43 MB / 473.4 MB, free: 97.14 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.931e-05/0.3406, allocations: 31.98 kB / 473.4 MB, free: 97.11 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004868/0.3455, allocations: 7.622 MB / 481 MB, free: 89.39 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0003773/0.3458, allocations: 1.416 MB / 482.4 MB, free: 87.87 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004213/0.35, allocations: 4.836 MB / 487.3 MB, free: 83.12 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002116/0.3503, allocations: 224.9 kB / 487.5 MB, free: 83.04 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000131/0.3504, allocations: 27.94 kB / 487.5 MB, free: 83.01 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005903/0.351, allocations: 144 kB / 487.7 MB, free: 82.87 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001379/0.3511, allocations: 80.48 kB / 487.7 MB, free: 82.79 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.199e-05/0.3512, allocations: 46.36 kB / 487.8 MB, free: 82.75 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001086/0.3523, allocations: 1.542 MB / 489.3 MB, free: 81.19 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3523, allocations: 0 / 489.3 MB, free: 81.19 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00208/0.3543, allocations: 0.8574 MB / 490.2 MB, free: 80.34 MB / 410.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.0002928/0.3546, allocations: 173.5 kB / 490.4 MB, free: 80.18 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003519/0.3581, allocations: 4.214 MB / 494.6 MB, free: 75.99 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.3582, allocations: 4 kB / 494.6 MB, free: 75.98 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001384/0.3595, allocations: 1.575 MB / 496.1 MB, free: 74.38 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008431/0.3604, allocations: 239.4 kB / 496.4 MB, free: 74.15 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004965/0.3653, allocations: 6.733 MB / 0.4913 GB, free: 67.39 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001029/0.3664, allocations: 1.731 MB / 0.493 GB, free: 65.63 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002901/0.3667, allocations: 196.5 kB / 0.4932 GB, free: 65.44 MB / 410.7 MB Notification: Performance of SimCode: time 6.31e-07/0.3667, allocations: 0 / 0.4932 GB, free: 65.44 MB / 410.7 MB Notification: Performance of Templates: time 0.04091/0.4076, allocations: 77.02 MB / 0.5684 GB, free: 4.445 MB / 426.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.097983985207975]