Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001368/0.001368, allocations: 80.92 kB / 22.29 MB, free: 2.207 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.001569/0.001569, allocations: 162.7 kB / 25.7 MB, free: 8.406 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9604/0.9604, allocations: 158.6 MB / 187.6 MB, free: 2.777 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.[0-9,]+.|body.v_0.[0-9,]+.|body.w_a.[0-9,]+.",fileNamePrefix="Modelica_3.2.3_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.[0-9,]+.|body.v_0.[0-9,]+.|body.w_a.[0-9,]+.",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.863e-06/1.863e-06, allocations: 0 / 251.6 MB, free: 7.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.058e-05/3.244e-05, allocations: 6.25 kB / 251.6 MB, free: 7.219 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.007612/0.007644, allocations: 7.124 MB / 258.7 MB, free: 60 kB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.005595/0.01324, allocations: 3.242 MB / 261.9 MB, free: 12.81 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009008/0.01414, allocations: 47.81 kB / 262 MB, free: 12.76 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001538/0.01568, allocations: 1.078 MB / 263.1 MB, free: 11.68 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00271/0.01839, allocations: 1.427 MB / 264.5 MB, free: 10.25 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000833/0.01922, allocations: 498.8 kB / 265 MB, free: 9.758 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003217/0.02244, allocations: 2.971 MB / 267.9 MB, free: 6.781 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001921/0.02436, allocations: 1.57 MB / 269.5 MB, free: 5.176 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001864/0.02622, allocations: 1.302 MB / 270.8 MB, free: 3.871 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002286/0.02851, allocations: 1.36 MB / 272.2 MB, free: 2.508 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006281/0.02914, allocations: 176 kB / 272.4 MB, free: 2.336 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001873/0.03101, allocations: 1.01 MB / 273.4 MB, free: 1.324 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009671/0.03198, allocations: 1.196 MB / 274.6 MB, free: 128 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000774/0.03275, allocations: 0.7398 MB / 275.3 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002858/0.03561, allocations: 3.012 MB / 278.3 MB, free: 12.36 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.03562, allocations: 0 / 278.3 MB, free: 12.36 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.03562, allocations: 0 / 278.3 MB, free: 12.36 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.846e-05/0.03567, allocations: 0 / 278.3 MB, free: 12.36 MB / 266.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.002987/0.03865, allocations: 2.773 MB / 281.1 MB, free: 9.543 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.651e-05/0.03869, allocations: 15.98 kB / 281.1 MB, free: 9.527 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002461/0.04115, allocations: 0.8864 MB / 282 MB, free: 8.641 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001144/0.0423, allocations: 1.059 MB / 283 MB, free: 7.551 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.301e-05/0.04237, allocations: 139.4 kB / 283.2 MB, free: 7.414 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000379/0.04275, allocations: 247.6 kB / 283.4 MB, free: 7.172 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003275/0.04602, allocations: 3.271 MB / 286.7 MB, free: 3.426 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.008e-05/0.04607, allocations: 27.7 kB / 286.7 MB, free: 3.398 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001597/0.04623, allocations: 87.89 kB / 286.8 MB, free: 3.312 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001246/0.04748, allocations: 1.195 MB / 288 MB, free: 2.117 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002941/0.05042, allocations: 1.871 MB / 289.9 MB, free: 236 kB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01637/0.06679, allocations: 20.13 MB / 310 MB, free: 11.34 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002216/0.06901, allocations: 1.081 MB / 311.1 MB, free: 10.22 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003283/0.06933, allocations: 252.8 kB / 311.3 MB, free: 9.965 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002765/0.0721, allocations: 2.226 MB / 313.6 MB, free: 7.715 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.665e-05/0.07214, allocations: 51 kB / 313.6 MB, free: 7.656 MB / 298.7 MB Notification: Performance of pre-optimization done (n=112): time 3.176e-06/0.07214, allocations: 0 / 313.6 MB, free: 7.656 MB / 298.7 MB Notification: Performance of matching and sorting (n=125): time 0.009097/0.08124, allocations: 4.011 MB / 317.6 MB, free: 3.582 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0007785/0.08201, allocations: 1.483 MB / 319.1 MB, free: 1.965 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001987/0.084, allocations: 2.177 MB / 321.3 MB, free: 15.75 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001157/0.08412, allocations: 45.69 kB / 321.3 MB, free: 15.7 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009126/0.08503, allocations: 2.07 MB / 323.4 MB, free: 13.6 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004198/0.08545, allocations: 0.5311 MB / 323.9 MB, free: 13.07 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007443/0.08619, allocations: 0.8466 MB / 324.8 MB, free: 12.21 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.785e-05/0.08629, allocations: 361.9 kB / 325.1 MB, free: 11.85 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009275/0.08722, allocations: 0.6283 MB / 325.8 MB, free: 11.21 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002133/0.08935, allocations: 3.316 MB / 329.1 MB, free: 6.488 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003766/0.09312, allocations: 4.391 MB / 333.5 MB, free: 0.6992 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.692e-05/0.09318, allocations: 35.94 kB / 333.5 MB, free: 0.6641 MB / 314.7 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.007878/0.1011, allocations: 3.754 MB / 337.2 MB, free: 12.88 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.331e-05/0.1011, allocations: 48 kB / 337.3 MB, free: 12.83 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003766/0.1049, allocations: 1.081 MB / 338.4 MB, free: 11.74 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004229/0.1091, allocations: 0.8378 MB / 339.2 MB, free: 10.89 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002103/0.1112, allocations: 1.014 MB / 340.2 MB, free: 9.871 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00492/0.1161, allocations: 4.033 MB / 344.3 MB, free: 5.645 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002213/0.1183, allocations: 211.7 kB / 344.5 MB, free: 5.441 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003527/0.1187, allocations: 248 kB / 344.7 MB, free: 5.199 MB / 330.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.0008598/0.1195, allocations: 496.3 kB / 345.2 MB, free: 4.703 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002944/0.1198, allocations: 143.8 kB / 345.3 MB, free: 4.562 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002277/0.1221, allocations: 1.171 MB / 346.5 MB, free: 3.367 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001856/0.124, allocations: 0.8393 MB / 347.3 MB, free: 2.508 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.357e-06/0.124, allocations: 8 kB / 347.4 MB, free: 2.5 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.163e-05/0.124, allocations: 7.922 kB / 347.4 MB, free: 2.492 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1496/0.2736, allocations: 3.194 MB / 350.6 MB, free: 85.19 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.194e-05/0.2737, allocations: 1.812 kB / 350.6 MB, free: 85.19 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005093/0.2742, allocations: 148 kB / 350.7 MB, free: 85.19 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002137/0.2763, allocations: 0.7795 MB / 351.5 MB, free: 85.14 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.264e-05/0.2764, allocations: 29.2 kB / 351.5 MB, free: 85.14 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003015/0.2794, allocations: 3.774 MB / 355.3 MB, free: 82.54 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0003937/0.2798, allocations: 1.343 MB / 356.6 MB, free: 81.23 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002777/0.2826, allocations: 1.931 MB / 358.6 MB, free: 80.57 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003097/0.2829, allocations: 207.8 kB / 358.8 MB, free: 80.57 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001517/0.283, allocations: 31.19 kB / 358.8 MB, free: 80.57 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005043/0.2835, allocations: 22.25 kB / 358.8 MB, free: 80.57 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001744/0.2837, allocations: 81.97 kB / 358.9 MB, free: 80.57 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.227e-05/0.2838, allocations: 29.69 kB / 358.9 MB, free: 80.57 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006775/0.2844, allocations: 0.7562 MB / 359.7 MB, free: 80.48 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2844, allocations: 0 / 359.7 MB, free: 80.48 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002522/0.287, allocations: 0.8747 MB / 360.6 MB, free: 80.48 MB / 330.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.0002896/0.2872, allocations: 171.3 kB / 360.7 MB, free: 80.41 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00253/0.2898, allocations: 2.3 MB / 363 MB, free: 80.09 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.008e-05/0.2899, allocations: 55.69 kB / 363.1 MB, free: 80.08 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000908/0.2908, allocations: 0.7959 MB / 363.9 MB, free: 79.81 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001175/0.2919, allocations: 375.5 kB / 364.2 MB, free: 79.79 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004889/0.2968, allocations: 4.974 MB / 369.2 MB, free: 77.72 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005296/0.2974, allocations: 0.7906 MB / 370 MB, free: 77.45 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006586/0.298, allocations: 330 kB / 370.3 MB, free: 77.21 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004575/0.2985, allocations: 378.2 kB / 370.7 MB, free: 76.87 MB / 330.7 MB Notification: Performance of SimCode: time 8.92e-07/0.2985, allocations: 0 / 370.7 MB, free: 76.87 MB / 330.7 MB Notification: Performance of Templates: time 0.03176/0.3302, allocations: 30.97 MB / 401.7 MB, free: 47.51 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.67807332938537]