Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.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.0009301/0.0009301, allocations: 88.73 kB / 21.5 MB, free: 2.988 MB / 18.57 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.0009721/0.0009721, allocations: 165.1 kB / 24.91 MB, free: 8.715 MB / 18.57 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.8573/0.8573, allocations: 177 MB / 205.2 MB, free: 5.02 MB / 186.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.DoublePendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.082e-06/1.082e-06, allocations: 0 / 273.4 MB, free: 1.047 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.628e-06/1.071e-05, allocations: 5.266 kB / 273.4 MB, free: 1.043 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.006736/0.006747, allocations: 9.856 MB / 283.2 MB, free: 7.141 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005198/0.01195, allocations: 4.017 MB / 287.3 MB, free: 3.109 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007727/0.01272, allocations: 83.56 kB / 287.3 MB, free: 3.027 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00221/0.01493, allocations: 2.359 MB / 289.7 MB, free: 0.6602 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0933/0.1082, allocations: 1.966 MB / 291.7 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00114/0.1094, allocations: 0.8331 MB / 292.5 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004985/0.1144, allocations: 5.983 MB / 298.5 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002205/0.1166, allocations: 3.083 MB / 301.6 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002883/0.1194, allocations: 3.259 MB / 304.8 MB, free: 12.19 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001723/0.1212, allocations: 2.261 MB / 307.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003261/0.1215, allocations: 313.1 kB / 307.4 MB, free: 11.3 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001066/0.1226, allocations: 1.126 MB / 308.5 MB, free: 10.96 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008258/0.1234, allocations: 1.989 MB / 310.5 MB, free: 9.832 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007956/0.1242, allocations: 1.214 MB / 311.7 MB, free: 8.777 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002333/0.1265, allocations: 4.498 MB / 316.2 MB, free: 4.559 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.1265, allocations: 0 / 316.2 MB, free: 4.559 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1265, allocations: 0 / 316.2 MB, free: 4.559 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.752e-05/0.1265, allocations: 0 / 316.2 MB, free: 4.559 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: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.003563/0.1301, allocations: 4.335 MB / 320.6 MB, free: 0.5273 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.797e-05/0.1301, allocations: 11.98 kB / 320.6 MB, free: 0.5156 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003416/0.1336, allocations: 1.21 MB / 321.8 MB, free: 15.35 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00225/0.1358, allocations: 2.106 MB / 323.9 MB, free: 13.34 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.941e-05/0.1359, allocations: 199.2 kB / 324.1 MB, free: 13.18 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000299/0.1362, allocations: 265.9 kB / 324.3 MB, free: 12.95 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003891/0.1401, allocations: 4.436 MB / 328.8 MB, free: 8.246 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.619e-05/0.1401, allocations: 47.83 kB / 328.8 MB, free: 8.219 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002153/0.1404, allocations: 123.4 kB / 328.9 MB, free: 8.129 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001224/0.1416, allocations: 1.517 MB / 330.5 MB, free: 6.645 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002981/0.1446, allocations: 2.209 MB / 332.7 MB, free: 4.633 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0171/0.1617, allocations: 28.07 MB / 360.7 MB, free: 8.531 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002639/0.1643, allocations: 1.274 MB / 362 MB, free: 7.254 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003664/0.1647, allocations: 310.3 kB / 362.3 MB, free: 6.945 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00369/0.1684, allocations: 3.226 MB / 365.5 MB, free: 3.742 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.052e-05/0.1684, allocations: 51.16 kB / 365.6 MB, free: 3.684 MB / 314.7 MB Notification: Performance of pre-optimization done (n=121): time 3.878e-06/0.1684, allocations: 0 / 365.6 MB, free: 3.684 MB / 314.7 MB Notification: Performance of matching and sorting (n=132): time 0.01189/0.1803, allocations: 5.356 MB / 370.9 MB, free: 14.38 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.049e-05/0.1804, allocations: 244 kB / 371.2 MB, free: 14.08 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002166/0.1825, allocations: 3.123 MB / 374.3 MB, free: 11.01 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.463e-05/0.1826, allocations: 45.7 kB / 374.4 MB, free: 10.96 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001089/0.1837, allocations: 2.765 MB / 377.1 MB, free: 8.168 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003014/0.184, allocations: 0.5661 MB / 377.7 MB, free: 7.598 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007889/0.1848, allocations: 1.057 MB / 378.7 MB, free: 6.531 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.992e-05/0.1848, allocations: 301.1 kB / 379 MB, free: 6.234 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009608/0.1858, allocations: 0.6863 MB / 379.7 MB, free: 5.543 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002303/0.1881, allocations: 4.085 MB / 383.8 MB, free: 15.75 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003277/0.1914, allocations: 5.139 MB / 388.9 MB, free: 8.914 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.605e-05/0.1914, allocations: 36 kB / 389 MB, free: 8.879 MB / 346.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.003858/0.1953, allocations: 3.829 MB / 392.8 MB, free: 5.031 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.546e-05/0.1953, allocations: 56 kB / 392.9 MB, free: 4.977 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-05/0.1954, allocations: 124 kB / 393 MB, free: 4.855 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007696/0.1962, allocations: 399.7 kB / 393.4 MB, free: 4.461 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001854/0.198, allocations: 1.236 MB / 394.6 MB, free: 3.223 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001847/0.1999, allocations: 2.171 MB / 396.8 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001637/0.2015, allocations: 247.7 kB / 397 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000229/0.2017, allocations: 292 kB / 397.3 MB, free: 436 kB / 346.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.0007988/0.2025, allocations: 0.5604 MB / 397.9 MB, free: 15.85 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000254/0.2028, allocations: 195.8 kB / 398.1 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001033/0.2038, allocations: 0.7921 MB / 398.9 MB, free: 14.85 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.419e-05/0.2038, allocations: 16 kB / 398.9 MB, free: 14.83 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.2038, allocations: 0 / 398.9 MB, free: 14.83 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.378e-06/0.2038, allocations: 11.97 kB / 398.9 MB, free: 14.82 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003783/0.2076, allocations: 3.533 MB / 402.4 MB, free: 11.15 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.661e-06/0.2076, allocations: 8 kB / 402.4 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004129/0.208, allocations: 184.5 kB / 402.6 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008285/0.2089, allocations: 415.3 kB / 403 MB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.686e-05/0.2089, allocations: 28 kB / 403 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001364/0.2103, allocations: 1.905 MB / 404.9 MB, free: 8.527 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.081e-06/0.2103, allocations: 11.94 kB / 404.9 MB, free: 8.516 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001398/0.2117, allocations: 1.67 MB / 406.6 MB, free: 6.727 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002896/0.212, allocations: 317.7 kB / 406.9 MB, free: 6.414 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002059/0.2122, allocations: 35.92 kB / 407 MB, free: 6.379 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005649/0.2127, allocations: 31.98 kB / 407 MB, free: 6.348 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001016/0.2129, allocations: 92.17 kB / 407.1 MB, free: 6.258 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.126e-05/0.2129, allocations: 39.98 kB / 407.1 MB, free: 6.219 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008959/0.2138, allocations: 1.166 MB / 408.3 MB, free: 5.062 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-08/0.2138, allocations: 0 / 408.3 MB, free: 5.062 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002272/0.2161, allocations: 0.9609 MB / 409.3 MB, free: 4.102 MB / 362.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.000258/0.2163, allocations: 162.4 kB / 409.4 MB, free: 3.938 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002138/0.2185, allocations: 2.244 MB / 411.7 MB, free: 1.695 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 0.000134/0.2186, allocations: 96.16 kB / 411.7 MB, free: 1.594 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004524/0.2191, allocations: 489.5 kB / 412.2 MB, free: 1.102 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001418/0.2205, allocations: 0.5961 MB / 412.8 MB, free: 0.5156 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006319/0.2268, allocations: 6.734 MB / 419.6 MB, free: 9.617 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008543/0.2276, allocations: 1.117 MB / 420.7 MB, free: 8.484 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0009463/0.2286, allocations: 469.3 kB / 421.1 MB, free: 8.023 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007007/0.2293, allocations: 0.5206 MB / 421.7 MB, free: 7.5 MB / 378.7 MB Notification: Performance of SimCode: time 1.052e-06/0.2293, allocations: 0 / 421.7 MB, free: 7.5 MB / 378.7 MB Notification: Performance of Templates: time 0.1259/0.3552, allocations: 29.96 MB / 451.6 MB, free: 106.6 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/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.259603459853679]