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/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008355/0.0008355, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001118/0.001953, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0006954/0.0006954, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008941/0.001589, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9959/0.9959, allocations: 177.5 MB / 190 MB, free: 4.812 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08363/1.08, allocations: 53.87 MB / 243.9 MB, free: 14.88 MB / 250.7 MB " [Timeout remaining time 179] 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.704e-06/1.704e-06, allocations: 0 / 245.2 MB, free: 13.59 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.504e-05/2.674e-05, allocations: 6.312 kB / 245.2 MB, free: 13.58 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.03308/0.03311, allocations: 7.155 MB / 252.4 MB, free: 6.391 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.009073/0.04218, allocations: 3.295 MB / 255.7 MB, free: 3.086 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003494/0.04253, allocations: 39.81 kB / 255.7 MB, free: 3.047 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001179/0.04371, allocations: 1.062 MB / 256.8 MB, free: 1.98 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001705/0.04541, allocations: 1.392 MB / 258.2 MB, free: 0.582 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005626/0.04598, allocations: 458.9 kB / 258.6 MB, free: 136 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002352/0.04833, allocations: 2.93 MB / 261.5 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001492/0.04982, allocations: 1.418 MB / 262.9 MB, free: 11.75 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001133/0.05095, allocations: 1.363 MB / 264.3 MB, free: 10.39 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001319/0.05227, allocations: 1.344 MB / 265.7 MB, free: 9.039 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002412/0.05251, allocations: 175.9 kB / 265.8 MB, free: 8.867 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001088/0.0536, allocations: 0.9945 MB / 266.8 MB, free: 7.871 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005722/0.05417, allocations: 1.052 MB / 267.9 MB, free: 6.816 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004676/0.05464, allocations: 0.5879 MB / 268.5 MB, free: 6.227 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002018/0.05666, allocations: 2.728 MB / 271.2 MB, free: 3.488 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.387e-06/0.05667, allocations: 0 / 271.2 MB, free: 3.488 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.05667, allocations: 0 / 271.2 MB, free: 3.488 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.389e-05/0.05669, allocations: 0 / 271.2 MB, free: 3.488 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.002867/0.05956, allocations: 3.333 MB / 274.5 MB, free: 100 kB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.282e-05/0.05959, allocations: 8.625 kB / 274.5 MB, free: 92 kB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1054/0.1649, allocations: 0.9272 MB / 275.5 MB, free: 19.35 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001658/0.1666, allocations: 1.035 MB / 276.5 MB, free: 19.15 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.114e-05/0.1667, allocations: 135.7 kB / 276.6 MB, free: 19.15 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004615/0.1672, allocations: 247.9 kB / 276.9 MB, free: 19.14 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004144/0.1713, allocations: 3.274 MB / 280.1 MB, free: 17.83 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.361e-05/0.1714, allocations: 29.52 kB / 280.2 MB, free: 17.83 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002/0.1716, allocations: 84.75 kB / 280.3 MB, free: 17.83 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001227/0.1728, allocations: 1.121 MB / 281.4 MB, free: 17.82 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003548/0.1764, allocations: 1.853 MB / 283.2 MB, free: 17.76 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01268/0.1891, allocations: 20.13 MB / 303.4 MB, free: 2.508 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002077/0.1911, allocations: 1.083 MB / 304.4 MB, free: 1.906 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002699/0.1914, allocations: 248.9 kB / 304.7 MB, free: 1.648 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002547/0.1939, allocations: 2.216 MB / 306.9 MB, free: 15.45 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.164e-05/0.194, allocations: 43 kB / 306.9 MB, free: 15.39 MB / 282.7 MB Notification: Performance of pre-optimization done (n=112): time 3.617e-06/0.194, allocations: 0 / 306.9 MB, free: 15.39 MB / 282.7 MB Notification: Performance of matching and sorting (n=125): time 0.008678/0.2027, allocations: 4.05 MB / 311 MB, free: 11.34 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0007382/0.2034, allocations: 1.485 MB / 312.5 MB, free: 9.727 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001615/0.205, allocations: 2.159 MB / 314.6 MB, free: 7.766 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.23e-05/0.2051, allocations: 41.7 kB / 314.7 MB, free: 7.719 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009016/0.206, allocations: 2.072 MB / 316.7 MB, free: 5.629 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003719/0.2064, allocations: 0.5194 MB / 317.3 MB, free: 5.105 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007099/0.2071, allocations: 0.8544 MB / 318.1 MB, free: 4.238 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.39e-05/0.2072, allocations: 361.8 kB / 318.5 MB, free: 3.879 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009374/0.2081, allocations: 0.6219 MB / 319.1 MB, free: 3.25 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001967/0.2101, allocations: 3.314 MB / 322.4 MB, free: 14.54 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003465/0.2135, allocations: 4.66 MB / 327.1 MB, free: 8.488 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-05/0.2136, allocations: 32 kB / 327.1 MB, free: 8.457 MB / 298.7 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.006633/0.2202, allocations: 3.767 MB / 330.9 MB, free: 4.672 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.253e-05/0.2203, allocations: 44 kB / 330.9 MB, free: 4.629 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.395e-05/0.2204, allocations: 108 kB / 331 MB, free: 4.523 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00405/0.2244, allocations: 0.8615 MB / 331.9 MB, free: 3.652 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001824/0.2262, allocations: 1.08 MB / 333 MB, free: 2.57 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004779/0.231, allocations: 4.003 MB / 337 MB, free: 14.38 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001919/0.2329, allocations: 203.8 kB / 337.2 MB, free: 14.18 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002535/0.2332, allocations: 250.5 kB / 337.4 MB, free: 13.94 MB / 314.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.0008062/0.234, allocations: 492.2 kB / 337.9 MB, free: 13.44 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002637/0.2343, allocations: 151.7 kB / 338 MB, free: 13.29 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002673/0.2345, allocations: 263.7 kB / 338.3 MB, free: 13.03 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001889/0.2364, allocations: 0.8315 MB / 339.1 MB, free: 12.17 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.007e-06/0.2364, allocations: 4 kB / 339.1 MB, free: 12.17 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.326e-06/0.2364, allocations: 3.984 kB / 339.1 MB, free: 12.16 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00497/0.2414, allocations: 3.185 MB / 342.3 MB, free: 8.891 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.409e-05/0.2414, allocations: 12.09 kB / 342.3 MB, free: 8.879 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004382/0.2418, allocations: 159.8 kB / 342.5 MB, free: 8.723 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002646/0.2421, allocations: 214.4 kB / 342.7 MB, free: 8.512 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002048/0.2442, allocations: 0.785 MB / 343.5 MB, free: 7.719 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.954e-05/0.2442, allocations: 31.91 kB / 343.5 MB, free: 7.688 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003427/0.2477, allocations: 3.742 MB / 347.2 MB, free: 3.762 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0005452/0.2482, allocations: 1.339 MB / 348.6 MB, free: 2.312 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002738/0.2509, allocations: 1.938 MB / 350.5 MB, free: 328 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002305/0.2512, allocations: 27.92 kB / 350.6 MB, free: 300 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005176/0.2517, allocations: 20 kB / 350.6 MB, free: 280 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001828/0.2519, allocations: 84.48 kB / 350.7 MB, free: 196 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.765e-05/0.2519, allocations: 24.75 kB / 350.7 MB, free: 172 kB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007239/0.2527, allocations: 0.7553 MB / 351.4 MB, free: 15.39 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2527, allocations: 0 / 351.4 MB, free: 15.39 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002504/0.2552, allocations: 0.8553 MB / 352.3 MB, free: 14.54 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.0003588/0.2555, allocations: 167.5 kB / 352.5 MB, free: 14.37 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003141/0.2587, allocations: 2.4 MB / 354.9 MB, free: 12.02 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001174/0.2588, allocations: 67.91 kB / 354.9 MB, free: 11.95 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001732/0.2605, allocations: 1.119 MB / 356 MB, free: 10.79 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001924/0.2624, allocations: 1.641 MB / 357.7 MB, free: 8.941 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007982/0.2704, allocations: 5.047 MB / 362.7 MB, free: 3.824 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006872/0.2711, allocations: 0.7897 MB / 363.5 MB, free: 3.016 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0008659/0.272, allocations: 325.9 kB / 363.8 MB, free: 2.691 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005129/0.2725, allocations: 373.2 kB / 364.2 MB, free: 2.324 MB / 330.7 MB Notification: Performance of SimCode: time 2.053e-06/0.2725, allocations: 0 / 364.2 MB, free: 2.324 MB / 330.7 MB Notification: Performance of Templates: time 0.03819/0.3107, allocations: 29.59 MB / 393.8 MB, free: 4.82 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile [Timeout 660] (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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1954481061547995]