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.001295/0.001295, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.001181/0.001181, allocations: 169 kB / 24.91 MB, free: 8.723 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.9572/0.9572, allocations: 177.1 MB / 205.3 MB, free: 4.496 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.[0-9,]+.|body.v_0.[0-9,]+.|body.w_a.[0-9,]+.",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.[0-9,]+.|body.v_0.[0-9,]+.|body.w_a.[0-9,]+.",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.724e-06/1.724e-06, allocations: 0 / 273.5 MB, free: 4.375 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.498e-05/2.67e-05, allocations: 2.312 kB / 273.5 MB, free: 4.371 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.009255/0.009282, allocations: 7.089 MB / 280.6 MB, free: 13.26 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007022/0.0163, allocations: 3.274 MB / 283.9 MB, free: 9.984 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001052/0.01736, allocations: 39.81 kB / 283.9 MB, free: 9.945 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002347/0.0197, allocations: 1.066 MB / 285 MB, free: 8.875 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003918/0.02362, allocations: 1.412 MB / 286.4 MB, free: 7.457 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007652/0.02439, allocations: 494.8 kB / 286.9 MB, free: 6.973 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002426/0.02681, allocations: 3.023 MB / 289.9 MB, free: 3.941 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001074/0.02789, allocations: 1.558 MB / 291.5 MB, free: 2.348 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009492/0.02883, allocations: 1.29 MB / 292.7 MB, free: 1.055 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001054/0.02989, allocations: 1.356 MB / 294.1 MB, free: 15.7 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001586/0.03005, allocations: 176 kB / 294.3 MB, free: 15.52 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001003/0.03105, allocations: 0.9904 MB / 295.3 MB, free: 14.53 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005681/0.03162, allocations: 1.172 MB / 296.4 MB, free: 13.36 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004527/0.03207, allocations: 0.7202 MB / 297.2 MB, free: 12.63 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001911/0.03398, allocations: 2.969 MB / 300.1 MB, free: 9.652 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.646e-06/0.03399, allocations: 0 / 300.1 MB, free: 9.652 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.03399, allocations: 0 / 300.1 MB, free: 9.652 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.443e-05/0.03401, allocations: 0 / 300.1 MB, free: 9.652 MB / 282.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.002533/0.03654, allocations: 2.746 MB / 302.9 MB, free: 6.867 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.867e-05/0.03657, allocations: 8.031 kB / 302.9 MB, free: 6.859 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002444/0.03902, allocations: 0.9372 MB / 303.8 MB, free: 5.922 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001043/0.04006, allocations: 1.04 MB / 304.9 MB, free: 4.852 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.441e-05/0.04013, allocations: 139.3 kB / 305 MB, free: 4.715 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003793/0.04051, allocations: 243.7 kB / 305.2 MB, free: 4.477 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003059/0.04357, allocations: 3.279 MB / 308.5 MB, free: 0.7266 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.574e-05/0.04362, allocations: 31.69 kB / 308.5 MB, free: 0.6953 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001576/0.04378, allocations: 87.89 kB / 308.6 MB, free: 0.6094 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009938/0.04477, allocations: 1.187 MB / 309.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002513/0.04728, allocations: 1.871 MB / 311.7 MB, free: 13.54 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01178/0.05906, allocations: 20.13 MB / 331.8 MB, free: 8.652 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001955/0.06102, allocations: 1.097 MB / 332.9 MB, free: 7.512 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000294/0.06131, allocations: 255.8 kB / 333.2 MB, free: 7.254 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002222/0.06353, allocations: 2.231 MB / 335.4 MB, free: 5 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.763e-05/0.06356, allocations: 47.06 kB / 335.4 MB, free: 4.945 MB / 314.7 MB Notification: Performance of pre-optimization done (n=112): time 2.124e-06/0.06356, allocations: 0 / 335.4 MB, free: 4.945 MB / 314.7 MB Notification: Performance of matching and sorting (n=125): time 0.007982/0.07155, allocations: 4.026 MB / 339.5 MB, free: 0.8555 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0006554/0.0722, allocations: 1.475 MB / 340.9 MB, free: 15.24 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001362/0.07356, allocations: 2.168 MB / 343.1 MB, free: 13.04 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.512e-05/0.07363, allocations: 45.69 kB / 343.2 MB, free: 12.98 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007549/0.07438, allocations: 2.066 MB / 345.2 MB, free: 10.89 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002705/0.07465, allocations: 0.5272 MB / 345.7 MB, free: 10.36 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006764/0.07533, allocations: 0.8544 MB / 346.6 MB, free: 9.492 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.797e-05/0.07542, allocations: 357.8 kB / 346.9 MB, free: 9.137 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008859/0.0763, allocations: 0.6283 MB / 347.6 MB, free: 8.5 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002137/0.07844, allocations: 3.312 MB / 350.9 MB, free: 3.781 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1068/0.1852, allocations: 4.381 MB / 355.3 MB, free: 67.26 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.701e-05/0.1853, allocations: 29.25 kB / 355.3 MB, free: 67.26 MB / 330.7 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.007446/0.1928, allocations: 3.764 MB / 359.1 MB, free: 67.09 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.154e-05/0.1928, allocations: 46.75 kB / 359.1 MB, free: 67.09 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003693/0.1965, allocations: 1.083 MB / 360.2 MB, free: 66.99 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003973/0.2005, allocations: 0.8469 MB / 361 MB, free: 66.94 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001526/0.202, allocations: 1.012 MB / 362.1 MB, free: 66.85 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004061/0.2061, allocations: 4.044 MB / 366.1 MB, free: 64.16 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001582/0.2076, allocations: 205.4 kB / 366.3 MB, free: 64.16 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002096/0.2079, allocations: 249.6 kB / 366.5 MB, free: 64.16 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.0006452/0.2085, allocations: 493.9 kB / 367 MB, free: 63.95 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002034/0.2087, allocations: 144.8 kB / 367.2 MB, free: 63.95 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002092/0.2089, allocations: 267.4 kB / 367.4 MB, free: 63.91 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001744/0.2107, allocations: 0.839 MB / 368.3 MB, free: 63.79 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.2107, allocations: 3.719 kB / 368.3 MB, free: 63.79 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.415e-06/0.2107, allocations: 6.062 kB / 368.3 MB, free: 63.79 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004329/0.215, allocations: 3.198 MB / 371.5 MB, free: 63.26 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.215, allocations: 0 / 371.5 MB, free: 63.26 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003923/0.2154, allocations: 149.6 kB / 371.6 MB, free: 63.25 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001906/0.2173, allocations: 0.78 MB / 372.4 MB, free: 63.18 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.543e-05/0.2174, allocations: 26.55 kB / 372.4 MB, free: 63.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002863/0.2202, allocations: 3.772 MB / 376.2 MB, free: 60.53 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0003193/0.2205, allocations: 1.344 MB / 377.5 MB, free: 59.21 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00243/0.223, allocations: 1.943 MB / 379.5 MB, free: 58.15 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001581/0.2231, allocations: 204 kB / 379.7 MB, free: 58.11 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000144/0.2233, allocations: 25.61 kB / 379.7 MB, free: 58.1 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004709/0.2237, allocations: 22.95 kB / 379.7 MB, free: 58.09 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001524/0.2239, allocations: 79.8 kB / 379.8 MB, free: 58.02 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.565e-05/0.224, allocations: 31.23 kB / 379.8 MB, free: 58 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004772/0.2244, allocations: 0.7412 MB / 380.6 MB, free: 57.36 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2244, allocations: 0 / 380.6 MB, free: 57.36 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001945/0.2264, allocations: 0.8571 MB / 381.4 MB, free: 56.6 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.000249/0.2266, allocations: 159.8 kB / 381.6 MB, free: 56.46 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002253/0.2289, allocations: 2.31 MB / 383.9 MB, free: 54.23 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.604e-05/0.229, allocations: 59.94 kB / 384 MB, free: 54.16 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008899/0.2298, allocations: 0.784 MB / 384.7 MB, free: 53.38 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009268/0.2308, allocations: 377.8 kB / 385.1 MB, free: 53.02 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004119/0.2349, allocations: 4.948 MB / 390.1 MB, free: 48.07 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004935/0.2354, allocations: 0.78 MB / 390.8 MB, free: 47.26 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000638/0.236, allocations: 329 kB / 391.2 MB, free: 46.93 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004461/0.2365, allocations: 383.6 kB / 391.5 MB, free: 46.56 MB / 330.7 MB Notification: Performance of SimCode: time 8.92e-07/0.2365, allocations: 3.938 kB / 391.5 MB, free: 46.55 MB / 330.7 MB Notification: Performance of Templates: time 0.03077/0.2672, allocations: 30.57 MB / 422.1 MB, free: 16.25 MB / 330.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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) [Timeout 240] 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","",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.3863795679062605]