Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.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.000938/0.000938, allocations: 79.73 kB / 21.97 MB, free: 2.602 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.0009326/0.0009326, allocations: 168.3 kB / 25.33 MB, free: 9.445 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.8755/0.8755, allocations: 158.6 MB / 187.2 MB, free: 2.559 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.DoublePendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 9.22e-07/9.22e-07, allocations: 0 / 251.1 MB, free: 3.586 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.478e-05/1.57e-05, allocations: 2.312 kB / 251.1 MB, free: 3.582 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.008105/0.008121, allocations: 10.24 MB / 261.3 MB, free: 9.301 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005809/0.01393, allocations: 3.891 MB / 265.2 MB, free: 5.398 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00122/0.01515, allocations: 83.56 kB / 265.3 MB, free: 5.316 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002793/0.01794, allocations: 2.375 MB / 267.6 MB, free: 2.934 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003181/0.02112, allocations: 1.983 MB / 269.6 MB, free: 0.9414 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001158/0.02228, allocations: 0.8381 MB / 270.5 MB, free: 104 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00483/0.02711, allocations: 5.514 MB / 276 MB, free: 10.58 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003122/0.03023, allocations: 3.025 MB / 279 MB, free: 7.496 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003924/0.03416, allocations: 2.947 MB / 281.9 MB, free: 4.543 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002656/0.03681, allocations: 2.389 MB / 284.3 MB, free: 2.148 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006772/0.03749, allocations: 312 kB / 284.6 MB, free: 1.844 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001618/0.03911, allocations: 1.135 MB / 285.8 MB, free: 0.707 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00147/0.04058, allocations: 2.014 MB / 287.8 MB, free: 14.69 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001732/0.04231, allocations: 1.227 MB / 289 MB, free: 13.46 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004448/0.04676, allocations: 4.554 MB / 293.6 MB, free: 8.887 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.04676, allocations: 0 / 293.6 MB, free: 8.887 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.04676, allocations: 4 kB / 293.6 MB, free: 8.883 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001722/0.04694, allocations: 0 / 293.6 MB, free: 8.883 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: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.007055/0.05399, allocations: 5.188 MB / 298.8 MB, free: 3.625 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/0.05403, allocations: 19.98 kB / 298.8 MB, free: 3.605 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01221/0.06624, allocations: 3.498 MB / 302.3 MB, free: 104 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1057/0.172, allocations: 2.637 MB / 304.9 MB, free: 50.38 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001422/0.1721, allocations: 197.3 kB / 305.1 MB, free: 50.37 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004436/0.1726, allocations: 272.9 kB / 305.4 MB, free: 50.36 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007412/0.18, allocations: 5.428 MB / 310.8 MB, free: 47.73 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001203/0.1801, allocations: 48.69 kB / 310.9 MB, free: 47.72 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002402/0.1803, allocations: 127.6 kB / 311 MB, free: 47.72 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001605/0.1819, allocations: 1.659 MB / 312.6 MB, free: 47.71 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005173/0.1871, allocations: 2.775 MB / 315.4 MB, free: 47.32 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01995/0.2071, allocations: 39.34 MB / 354.7 MB, free: 9.379 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002968/0.21, allocations: 1.42 MB / 356.2 MB, free: 7.918 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005122/0.2105, allocations: 456.2 kB / 356.6 MB, free: 7.461 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004029/0.2146, allocations: 3.701 MB / 360.3 MB, free: 3.871 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.301e-05/0.2146, allocations: 53.98 kB / 360.4 MB, free: 3.809 MB / 282.7 MB Notification: Performance of pre-optimization done (n=121): time 4.148e-06/0.2146, allocations: 3.812 kB / 360.4 MB, free: 3.809 MB / 282.7 MB Notification: Performance of matching and sorting (n=132): time 0.01692/0.2315, allocations: 9.388 MB / 369.8 MB, free: 10.48 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.116e-05/0.2316, allocations: 247.9 kB / 370 MB, free: 10.18 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003746/0.2354, allocations: 3.554 MB / 373.6 MB, free: 6.633 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001112/0.2355, allocations: 45.7 kB / 373.6 MB, free: 6.582 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001609/0.2371, allocations: 3.167 MB / 376.8 MB, free: 3.449 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004973/0.2376, allocations: 0.5723 MB / 377.3 MB, free: 2.879 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009841/0.2386, allocations: 1.208 MB / 378.5 MB, free: 1.66 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.668e-05/0.2387, allocations: 484 kB / 379 MB, free: 1.188 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009216/0.2396, allocations: 0.5768 MB / 379.6 MB, free: 0.6055 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003247/0.2428, allocations: 5.775 MB / 385.4 MB, free: 8.453 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005069/0.2479, allocations: 6.847 MB / 392.2 MB, free: 15.31 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.537e-05/0.248, allocations: 32 kB / 392.2 MB, free: 15.28 MB / 330.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.006309/0.2543, allocations: 4.893 MB / 397.1 MB, free: 10.38 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.726e-05/0.2543, allocations: 56 kB / 397.2 MB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.772e-05/0.2544, allocations: 120 kB / 397.3 MB, free: 10.21 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001203/0.2556, allocations: 460 kB / 397.8 MB, free: 9.754 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002096/0.2577, allocations: 1.291 MB / 399.1 MB, free: 8.461 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002405/0.2601, allocations: 2.891 MB / 401.9 MB, free: 5.453 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002652/0.2628, allocations: 395.1 kB / 402.3 MB, free: 5.07 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003105/0.2631, allocations: 340 kB / 402.7 MB, free: 4.738 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 551 * Number of states: 0 () * Number of discrete variables: 30 (boxBody2.color[3],boxBody2.color[2],boxBody2.color[1],boxBody2.body.sphereColor[3],boxBody2.body.sphereColor[2],boxBody2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],boxBody1.color[3],boxBody1.color[2],boxBody1.color[1],boxBody1.body.sphereColor[3],boxBody1.body.sphereColor[2],boxBody1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[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 (688): * Single equations (assignments): 684 * 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,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001022/0.2641, allocations: 0.6071 MB / 403.3 MB, free: 4.117 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004713/0.2646, allocations: 357.8 kB / 403.6 MB, free: 3.766 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001425/0.266, allocations: 0.9992 MB / 404.6 MB, free: 2.758 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.807e-05/0.266, allocations: 23.98 kB / 404.6 MB, free: 2.734 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.266, allocations: 0 / 404.6 MB, free: 2.734 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.949e-06/0.266, allocations: 7.984 kB / 404.7 MB, free: 2.727 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005858/0.2719, allocations: 4.325 MB / 409 MB, free: 14.27 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.006e-05/0.2719, allocations: 12.08 kB / 409 MB, free: 14.26 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004983/0.2724, allocations: 219.6 kB / 409.2 MB, free: 14.05 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008527/0.2733, allocations: 278.2 kB / 409.5 MB, free: 13.78 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.859e-05/0.2733, allocations: 32 kB / 409.5 MB, free: 13.75 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001961/0.2753, allocations: 2.563 MB / 412.1 MB, free: 11.06 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.725e-06/0.2753, allocations: 16.97 kB / 412.1 MB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002679/0.278, allocations: 2.121 MB / 414.2 MB, free: 8.801 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007742/0.2788, allocations: 0.4898 MB / 414.7 MB, free: 8.309 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002689/0.279, allocations: 35.92 kB / 414.7 MB, free: 8.273 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007674/0.2798, allocations: 139.8 kB / 414.9 MB, free: 8.137 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000137/0.2799, allocations: 92.23 kB / 415 MB, free: 8.047 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.488e-05/0.28, allocations: 43.72 kB / 415 MB, free: 8.008 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001906/0.2819, allocations: 1.583 MB / 416.6 MB, free: 6.438 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2819, allocations: 4 kB / 416.6 MB, free: 6.434 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003095/0.285, allocations: 0.9865 MB / 417.6 MB, free: 5.449 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * Number of states: 4 (revolute1.w,damper.phi_rel,revolute2.phi,revolute2.w) * 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 (105): * Single equations (assignments): 101 * 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,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003522/0.2853, allocations: 181.7 kB / 417.7 MB, free: 5.266 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003999/0.2893, allocations: 2.66 MB / 420.4 MB, free: 2.602 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.176e-06/0.2894, allocations: 4.125 kB / 420.4 MB, free: 2.598 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008379/0.2902, allocations: 0.6255 MB / 421 MB, free: 1.953 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002128/0.2923, allocations: 436.2 kB / 421.5 MB, free: 1.531 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009634/0.302, allocations: 6.924 MB / 428.4 MB, free: 10.43 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001036/0.303, allocations: 1.133 MB / 429.5 MB, free: 9.273 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002308/0.3053, allocations: 1.456 MB / 431 MB, free: 7.816 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005218/0.3058, allocations: 220.5 kB / 431.2 MB, free: 7.602 MB / 362.7 MB Notification: Performance of SimCode: time 2.354e-06/0.3058, allocations: 0 / 431.2 MB, free: 7.602 MB / 362.7 MB Notification: Performance of Templates: time 0.135/0.4408, allocations: 28.94 MB / 460.1 MB, free: 106.8 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.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.7217337018810213]