Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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.001328/0.001328, allocations: 82.67 kB / 20.68 MB, free: 1.027 MB / 14.72 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.001499/0.001499, allocations: 164 kB / 23.95 MB, free: 4.156 MB / 14.72 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 1.419/1.419, allocations: 177.1 MB / 204.3 MB, free: 9.176 MB / 190.1 MB " [Timeout remaining time 178] 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.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.134e-06/2.134e-06, allocations: 0 / 325.1 MB, free: 0.543 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.704e-05/2.918e-05, allocations: 2.281 kB / 325.1 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01264/0.01267, allocations: 9.058 MB / 334.1 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009016/0.02169, allocations: 3.696 MB / 337.8 MB, free: 7.695 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0019/0.02359, allocations: 64.41 kB / 337.9 MB, free: 7.676 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005039/0.02863, allocations: 2.121 MB / 340 MB, free: 6.168 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005092/0.03372, allocations: 1.713 MB / 341.7 MB, free: 4.449 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001976/0.0357, allocations: 0.7288 MB / 342.5 MB, free: 3.719 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00566/0.04136, allocations: 3.77 MB / 346.2 MB, free: 15.94 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00398/0.04534, allocations: 2.469 MB / 348.7 MB, free: 13.42 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00414/0.04948, allocations: 1.914 MB / 350.6 MB, free: 11.5 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003335/0.05281, allocations: 1.882 MB / 352.5 MB, free: 9.613 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008578/0.05367, allocations: 268 kB / 352.7 MB, free: 9.352 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002685/0.05635, allocations: 1.053 MB / 353.8 MB, free: 8.297 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002313/0.05867, allocations: 1.663 MB / 355.5 MB, free: 6.629 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002387/0.06105, allocations: 1.051 MB / 356.5 MB, free: 5.574 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008506/0.06956, allocations: 5.945 MB / 362.5 MB, free: 15.61 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.06957, allocations: 0 / 362.5 MB, free: 15.61 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.06957, allocations: 4 kB / 362.5 MB, free: 15.61 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001895/0.06976, allocations: 0 / 362.5 MB, free: 15.61 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.008848/0.07861, allocations: 4.145 MB / 366.6 MB, free: 11.41 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.07865, allocations: 8.031 kB / 366.6 MB, free: 11.4 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007427/0.08607, allocations: 1.972 MB / 368.6 MB, free: 9.422 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004102/0.09017, allocations: 1.822 MB / 370.4 MB, free: 7.566 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001954/0.09037, allocations: 209.1 kB / 370.6 MB, free: 7.359 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005822/0.09095, allocations: 271.8 kB / 370.9 MB, free: 7.094 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0201/0.1111, allocations: 10.06 MB / 380.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001201/0.1112, allocations: 39.64 kB / 381 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006648/0.1118, allocations: 131.9 kB / 381.1 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003431/0.1153, allocations: 1.848 MB / 383 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01952/0.1348, allocations: 8.551 MB / 391.5 MB, free: 1.758 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04982/0.1846, allocations: 34.73 MB / 426.2 MB, free: 14 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01031/0.1949, allocations: 3.231 MB / 429.5 MB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002643/0.1976, allocations: 1.689 MB / 431.2 MB, free: 9.031 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01129/0.2089, allocations: 6.305 MB / 437.5 MB, free: 2.68 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.685e-05/0.2089, allocations: 55.48 kB / 437.5 MB, free: 2.617 MB / 398.1 MB Notification: Performance of pre-optimization done (n=150): time 3.737e-06/0.2089, allocations: 0 / 437.5 MB, free: 2.617 MB / 398.1 MB Notification: Performance of matching and sorting (n=166): time 0.05731/0.2662, allocations: 18.09 MB / 455.6 MB, free: 488 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001125/0.2663, allocations: 145.5 kB / 455.8 MB, free: 308 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005474/0.2718, allocations: 3.294 MB / 459.1 MB, free: 12.98 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003087/0.2721, allocations: 49.7 kB / 459.1 MB, free: 12.93 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002867/0.275, allocations: 2.844 MB / 461.9 MB, free: 10.06 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001044/0.276, allocations: 0.6668 MB / 462.6 MB, free: 9.391 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002109/0.2782, allocations: 1.104 MB / 463.7 MB, free: 8.277 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001851/0.2783, allocations: 301.1 kB / 464 MB, free: 7.98 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00368/0.282, allocations: 1.978 MB / 466 MB, free: 5.996 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1564/0.4384, allocations: 5.388 MB / 471.4 MB, free: 122.6 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008704/0.4471, allocations: 7.965 MB / 479.3 MB, free: 116.7 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001549/0.4472, allocations: 36.47 kB / 479.4 MB, free: 116.7 MB / 430.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01531/0.4626, allocations: 8.181 MB / 487.6 MB, free: 114.1 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.348e-05/0.4626, allocations: 60.62 kB / 487.6 MB, free: 114.1 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001376/0.4628, allocations: 129.3 kB / 487.7 MB, free: 114 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003863/0.4666, allocations: 1.29 MB / 489 MB, free: 113.9 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003464/0.4701, allocations: 1.272 MB / 490.3 MB, free: 113.7 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007412/0.4775, allocations: 6.37 MB / 496.7 MB, free: 110.8 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003675/0.4812, allocations: 355.6 kB / 497 MB, free: 110.7 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000454/0.4816, allocations: 342.5 kB / 497.4 MB, free: 110.7 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * Number of states: 0 () * Number of discrete variables: 36 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[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 (685): * Single equations (assignments): 681 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,17,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002216/0.4839, allocations: 1.809 MB / 499.2 MB, free: 109.7 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004806/0.4843, allocations: 282.3 kB / 499.4 MB, free: 109.6 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00649/0.4908, allocations: 3.343 MB / 0.491 GB, free: 106.5 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.519e-05/0.4909, allocations: 20 kB / 0.491 GB, free: 106.5 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.069e-05/0.4909, allocations: 4 kB / 0.491 GB, free: 106.5 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.484e-05/0.4909, allocations: 3.984 kB / 0.491 GB, free: 106.5 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01258/0.5035, allocations: 6.683 MB / 0.4976 GB, free: 99.8 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-05/0.5035, allocations: 4 kB / 0.4976 GB, free: 99.8 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001179/0.5047, allocations: 243.7 kB / 0.4978 GB, free: 99.56 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003629/0.5083, allocations: 1.126 MB / 0.4989 GB, free: 98.44 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000187/0.5085, allocations: 27.69 kB / 0.4989 GB, free: 98.41 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007055/0.5155, allocations: 6.011 MB / 0.5048 GB, free: 92.35 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.5155, allocations: 3.984 kB / 0.5048 GB, free: 92.35 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008875/0.5244, allocations: 5.701 MB / 0.5104 GB, free: 86.79 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006722/0.5251, allocations: 269.4 kB / 0.5106 GB, free: 86.6 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005418/0.5256, allocations: 24 kB / 0.5106 GB, free: 86.57 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00166/0.5273, allocations: 139.3 kB / 0.5108 GB, free: 86.44 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003072/0.5276, allocations: 94.78 kB / 0.5109 GB, free: 86.35 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001273/0.5277, allocations: 40 kB / 0.5109 GB, free: 86.31 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002802/0.5305, allocations: 1.885 MB / 0.5127 GB, free: 84.42 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5305, allocations: 0 / 0.5127 GB, free: 84.42 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004378/0.5349, allocations: 0.9699 MB / 0.5137 GB, free: 83.46 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * 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 (129): * Single equations (assignments): 125 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005363/0.5354, allocations: 172.9 kB / 0.5138 GB, free: 83.29 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006972/0.5424, allocations: 4.643 MB / 0.5184 GB, free: 78.67 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.07e-06/0.5424, allocations: 0 / 0.5184 GB, free: 78.67 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002059/0.5445, allocations: 1.447 MB / 0.5198 GB, free: 77.21 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002268/0.5467, allocations: 303.3 kB / 0.5201 GB, free: 76.92 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0121/0.5588, allocations: 8.062 MB / 0.528 GB, free: 68.85 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002691/0.5615, allocations: 2.299 MB / 0.5302 GB, free: 66.51 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003185/0.5647, allocations: 1.662 MB / 0.5318 GB, free: 64.84 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006764/0.5654, allocations: 204.5 kB / 0.532 GB, free: 64.64 MB / 430.1 MB Notification: Performance of SimCode: time 8.11e-07/0.5654, allocations: 0 / 0.532 GB, free: 64.64 MB / 430.1 MB Notification: Performance of Templates: time 0.0484/0.6138, allocations: 28.84 MB / 0.5602 GB, free: 36.23 MB / 430.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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: 6.133556552231312]