Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.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.0009644/0.0009644, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001539/0.002503, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.00104/0.00104, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001312/0.002352, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.9239/0.9239, allocations: 177.2 MB / 189.8 MB, free: 5.258 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08239/1.006, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.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.ThreeSprings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,variableFilter="time|body1.frame_a.r_0.[0-9,]+.|body1.v_0.[0-9,]+.|body1.w_a.[0-9,]+.",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,variableFilter="time|body1.frame_a.r_0.[0-9,]+.|body1.v_0.[0-9,]+.|body1.w_a.[0-9,]+.",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.363e-06/1.363e-06, allocations: 0 / 244.7 MB, free: 14.22 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.107e-05/1.243e-05, allocations: 2.312 kB / 244.7 MB, free: 14.21 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings): time 0.007093/0.007105, allocations: 10.23 MB / 254.9 MB, free: 3.941 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005277/0.01238, allocations: 4.031 MB / 259 MB, free: 15.89 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006346/0.01302, allocations: 71.62 kB / 259 MB, free: 15.82 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002569/0.01559, allocations: 2.628 MB / 261.7 MB, free: 13.19 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002752/0.01834, allocations: 1.796 MB / 263.5 MB, free: 11.38 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001414/0.01975, allocations: 0.7132 MB / 264.2 MB, free: 10.67 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003975/0.02373, allocations: 3.997 MB / 268.2 MB, free: 6.66 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002343/0.02607, allocations: 2.848 MB / 271 MB, free: 3.734 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002175/0.02824, allocations: 2.353 MB / 273.4 MB, free: 1.371 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1192/0.1474, allocations: 2.01 MB / 275.4 MB, free: 5.582 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0013/0.1487, allocations: 318.3 kB / 275.7 MB, free: 5.582 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003285/0.152, allocations: 1.132 MB / 276.8 MB, free: 5.582 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003123/0.1551, allocations: 1.74 MB / 278.6 MB, free: 5.582 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003365/0.1585, allocations: 1.004 MB / 279.6 MB, free: 5.582 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004716/0.1632, allocations: 4.04 MB / 283.6 MB, free: 5.102 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.346e-06/0.1632, allocations: 0 / 283.6 MB, free: 5.102 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.183e-06/0.1632, allocations: 0 / 283.6 MB, free: 5.102 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.258e-05/0.1633, allocations: 0 / 283.6 MB, free: 5.102 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: 1516 * Number of variables: 1516 Notification: Performance of Generate backend data structure: time 0.004046/0.1673, allocations: 5.17 MB / 288.8 MB, free: 3.18 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.611e-05/0.1674, allocations: 8.188 kB / 288.8 MB, free: 3.18 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002405/0.1698, allocations: 1.12 MB / 289.9 MB, free: 3.164 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001301/0.1711, allocations: 1.547 MB / 291.5 MB, free: 2.688 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.127e-05/0.1712, allocations: 246 kB / 291.7 MB, free: 2.68 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004626/0.1716, allocations: 392.1 kB / 292.1 MB, free: 2.676 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004265/0.1759, allocations: 5.177 MB / 297.3 MB, free: 0.5938 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.006e-05/0.1759, allocations: 44.52 kB / 297.3 MB, free: 0.5898 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002603/0.1762, allocations: 160.2 kB / 297.5 MB, free: 0.5898 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001137/0.1773, allocations: 1.59 MB / 299 MB, free: 0.5508 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004057/0.1814, allocations: 2.732 MB / 301.8 MB, free: 14.99 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01987/0.2013, allocations: 31.04 MB / 332.8 MB, free: 15.96 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003916/0.2052, allocations: 2.193 MB / 335 MB, free: 13.79 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000413/0.2056, allocations: 392.1 kB / 335.4 MB, free: 13.41 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004148/0.2097, allocations: 3.851 MB / 339.2 MB, free: 9.617 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.129e-05/0.2098, allocations: 55.56 kB / 339.3 MB, free: 9.555 MB / 314.7 MB Notification: Performance of pre-optimization done (n=152): time 2.986e-06/0.2098, allocations: 0 / 339.3 MB, free: 9.555 MB / 314.7 MB Notification: Performance of matching and sorting (n=159): time 0.01081/0.2206, allocations: 5.31 MB / 344.6 MB, free: 4.285 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000813/0.2214, allocations: 1.475 MB / 346.1 MB, free: 2.691 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002302/0.2237, allocations: 3.046 MB / 349.1 MB, free: 196 kB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.84e-05/0.2238, allocations: 45.7 kB / 349.2 MB, free: 144 kB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001125/0.2249, allocations: 3.083 MB / 352.3 MB, free: 13.21 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003527/0.2253, allocations: 0.6711 MB / 352.9 MB, free: 12.57 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009154/0.2262, allocations: 1.184 MB / 354.1 MB, free: 11.52 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.92e-05/0.2262, allocations: 305.1 kB / 354.4 MB, free: 11.21 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00107/0.2273, allocations: 0.8082 MB / 355.2 MB, free: 10.4 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002702/0.23, allocations: 4.594 MB / 359.8 MB, free: 4.074 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004262/0.2343, allocations: 6.471 MB / 366.3 MB, free: 11.97 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-05/0.2343, allocations: 40 kB / 366.3 MB, free: 11.93 MB / 346.7 MB Notification: Performance of matching and sorting (n=814) (initialization): time 0.006975/0.2413, allocations: 4.97 MB / 371.3 MB, free: 6.945 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.03e-05/0.2413, allocations: 67.98 kB / 371.4 MB, free: 6.879 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.785e-05/0.2414, allocations: 144 kB / 371.5 MB, free: 6.738 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004065/0.2455, allocations: 1.124 MB / 372.6 MB, free: 5.602 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002145/0.2476, allocations: 1.474 MB / 374.1 MB, free: 4.125 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005586/0.2532, allocations: 5.892 MB / 380 MB, free: 14.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001967/0.2552, allocations: 279.8 kB / 380.3 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002859/0.2555, allocations: 340 kB / 380.6 MB, free: 13.41 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 637 * Number of states: 0 () * Number of discrete variables: 39 (spring3.color[3],spring3.color[2],spring3.color[1],spring3.massColor[3],spring3.massColor[2],spring3.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (742): * Single equations (assignments): 732 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,31)} Notification: Performance of prepare postOptimizeDAE: time 0.001151/0.2566, allocations: 0.6362 MB / 381.2 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002442/0.2569, allocations: 202.8 kB / 381.4 MB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003252/0.2572, allocations: 345.5 kB / 381.8 MB, free: 12.23 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001968/0.2592, allocations: 0.9758 MB / 382.7 MB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/0.2592, allocations: 4 kB / 382.8 MB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/0.2592, allocations: 7.969 kB / 382.8 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005499/0.2647, allocations: 4.16 MB / 386.9 MB, free: 7.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.347e-05/0.2647, allocations: 11.98 kB / 386.9 MB, free: 7.238 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004557/0.2651, allocations: 171.8 kB / 387.1 MB, free: 7.07 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002269/0.2654, allocations: 277.8 kB / 387.4 MB, free: 6.797 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002177/0.2675, allocations: 1.042 MB / 388.4 MB, free: 5.738 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.863e-05/0.2676, allocations: 35.92 kB / 388.4 MB, free: 5.703 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004411/0.272, allocations: 5.595 MB / 394 MB, free: 15.89 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000479/0.2725, allocations: 1.349 MB / 395.4 MB, free: 14.45 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002824/0.2753, allocations: 2.183 MB / 397.6 MB, free: 12.25 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001782/0.2755, allocations: 31.92 kB / 397.6 MB, free: 12.22 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000535/0.276, allocations: 31.98 kB / 397.6 MB, free: 12.19 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001732/0.2762, allocations: 114.1 kB / 397.8 MB, free: 12.08 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.223e-05/0.2763, allocations: 31.98 kB / 397.8 MB, free: 12.05 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008395/0.2771, allocations: 1.083 MB / 398.9 MB, free: 11.07 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2771, allocations: 0 / 398.9 MB, free: 11.07 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002891/0.28, allocations: 1.16 MB / 400 MB, free: 9.914 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.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 (91): * Single equations (assignments): 83 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002983/0.2803, allocations: 164.1 kB / 400.2 MB, free: 9.746 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003254/0.2836, allocations: 3.333 MB / 403.5 MB, free: 6.402 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001514/0.2837, allocations: 112.1 kB / 403.6 MB, free: 6.281 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001631/0.2853, allocations: 1.242 MB / 404.9 MB, free: 4.992 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002061/0.2874, allocations: 2.728 MB / 407.6 MB, free: 1.898 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008313/0.2957, allocations: 7.265 MB / 414.9 MB, free: 10.54 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009342/0.2966, allocations: 1.178 MB / 416 MB, free: 9.336 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0009195/0.2976, allocations: 451.1 kB / 416.5 MB, free: 8.895 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006138/0.2982, allocations: 0.5011 MB / 417 MB, free: 8.391 MB / 394.7 MB Notification: Performance of SimCode: time 6.41e-07/0.2982, allocations: 0 / 417 MB, free: 8.391 MB / 394.7 MB Notification: Performance of Templates: time 0.1522/0.4503, allocations: 38.84 MB / 455.8 MB, free: 114.3 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ThreeSprings/ThreeSprings.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.512715113349259]