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.0006357/0.0006357, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009695/0.001605, 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.0006578/0.0006578, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009024/0.00156, 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.9146/0.9146, allocations: 177.5 MB / 190 MB, free: 4.801 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09219/1.007, allocations: 53.87 MB / 243.9 MB, free: 14.86 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.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 7.61e-07/7.61e-07, allocations: 0 / 245.2 MB, free: 13.57 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.341e-05/1.417e-05, allocations: 2.312 kB / 245.2 MB, free: 13.56 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.007214/0.007229, allocations: 9.981 MB / 255.2 MB, free: 3.535 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00661/0.01384, allocations: 4.06 MB / 259.3 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001013/0.01485, allocations: 79.56 kB / 259.3 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00219/0.01704, allocations: 2.238 MB / 261.6 MB, free: 13.14 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002974/0.02002, allocations: 1.933 MB / 263.5 MB, free: 11.2 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001068/0.02108, allocations: 0.7719 MB / 264.3 MB, free: 10.42 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005397/0.02648, allocations: 5.473 MB / 269.7 MB, free: 4.941 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003001/0.02948, allocations: 2.62 MB / 272.4 MB, free: 2.258 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1185/0.148, allocations: 3.032 MB / 275.4 MB, free: 5.633 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003611/0.1516, allocations: 2.247 MB / 277.6 MB, free: 5.633 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001229/0.1528, allocations: 312.2 kB / 278 MB, free: 5.633 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002788/0.1556, allocations: 1.169 MB / 279.1 MB, free: 5.633 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002096/0.1577, allocations: 1.776 MB / 280.9 MB, free: 5.633 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00205/0.1597, allocations: 0.9806 MB / 281.9 MB, free: 5.633 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004581/0.1643, allocations: 4.141 MB / 286 MB, free: 5.086 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.132e-05/0.1643, allocations: 0.5625 kB / 286 MB, free: 5.086 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.472e-06/0.1643, allocations: 0 / 286 MB, free: 5.086 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.886e-05/0.1644, allocations: 0.6562 kB / 286 MB, free: 5.086 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.005017/0.1694, allocations: 5.2 MB / 291.2 MB, free: 3.133 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.177e-05/0.1695, allocations: 11.69 kB / 291.2 MB, free: 3.133 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003983/0.1734, allocations: 1.23 MB / 292.5 MB, free: 3.109 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002372/0.1758, allocations: 2.101 MB / 294.6 MB, free: 2.539 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.082e-05/0.1759, allocations: 193.1 kB / 294.8 MB, free: 2.531 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003607/0.1762, allocations: 279.1 kB / 295 MB, free: 2.523 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004436/0.1807, allocations: 4.434 MB / 299.5 MB, free: 0.5039 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.405e-05/0.1808, allocations: 44.64 kB / 299.5 MB, free: 492 kB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002144/0.181, allocations: 131.1 kB / 299.6 MB, free: 448 kB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001147/0.1821, allocations: 1.422 MB / 301.1 MB, free: 15.23 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003471/0.1856, allocations: 2.205 MB / 303.3 MB, free: 13.23 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02084/0.2064, allocations: 28.06 MB / 331.3 MB, free: 1.141 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002734/0.2092, allocations: 1.257 MB / 332.6 MB, free: 15.89 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003719/0.2095, allocations: 304 kB / 332.9 MB, free: 15.59 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004471/0.214, allocations: 3.209 MB / 336.1 MB, free: 12.4 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.635e-05/0.214, allocations: 47.22 kB / 336.1 MB, free: 12.35 MB / 314.7 MB Notification: Performance of pre-optimization done (n=121): time 2.735e-06/0.214, allocations: 0 / 336.1 MB, free: 12.35 MB / 314.7 MB Notification: Performance of matching and sorting (n=132): time 0.01264/0.2267, allocations: 5.355 MB / 341.5 MB, free: 7.047 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.391e-05/0.2267, allocations: 141.2 kB / 341.6 MB, free: 6.879 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002859/0.2296, allocations: 3.115 MB / 344.7 MB, free: 4.324 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.068e-05/0.2297, allocations: 45.7 kB / 344.8 MB, free: 4.273 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001257/0.2309, allocations: 2.776 MB / 347.6 MB, free: 1.656 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003991/0.2313, allocations: 0.5517 MB / 348.1 MB, free: 1.133 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000864/0.2322, allocations: 1.06 MB / 349.2 MB, free: 192 kB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.859e-05/0.2323, allocations: 305.1 kB / 349.5 MB, free: 15.89 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001138/0.2334, allocations: 0.6785 MB / 350.1 MB, free: 15.2 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002926/0.2364, allocations: 4.095 MB / 354.2 MB, free: 9.566 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004675/0.241, allocations: 5.545 MB / 359.8 MB, free: 2.707 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.764e-05/0.2411, allocations: 32 kB / 359.8 MB, free: 2.676 MB / 330.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.005935/0.247, allocations: 3.85 MB / 363.7 MB, free: 14.81 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.962e-05/0.2471, allocations: 56 kB / 363.7 MB, free: 14.75 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001167/0.2472, allocations: 128 kB / 363.8 MB, free: 14.63 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009244/0.2481, allocations: 406.6 kB / 364.2 MB, free: 14.23 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002491/0.2506, allocations: 1.365 MB / 365.6 MB, free: 12.86 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002055/0.2527, allocations: 2.165 MB / 367.8 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002905/0.2556, allocations: 247.8 kB / 368 MB, free: 10.38 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003379/0.2559, allocations: 292 kB / 368.3 MB, free: 10.09 MB / 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.0014/0.2573, allocations: 0.5666 MB / 368.9 MB, free: 9.516 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004691/0.2578, allocations: 199.8 kB / 369.1 MB, free: 9.32 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001218/0.259, allocations: 0.7869 MB / 369.8 MB, free: 8.52 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.778e-05/0.259, allocations: 12 kB / 369.9 MB, free: 8.508 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.259, allocations: 4 kB / 369.9 MB, free: 8.504 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.173e-05/0.259, allocations: 7.969 kB / 369.9 MB, free: 8.496 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005076/0.2641, allocations: 3.526 MB / 373.4 MB, free: 5.363 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.839e-05/0.2641, allocations: 12 kB / 373.4 MB, free: 5.352 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005096/0.2647, allocations: 207.7 kB / 373.6 MB, free: 5.148 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00056/0.2652, allocations: 315.8 kB / 373.9 MB, free: 4.84 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008273/0.266, allocations: 415 kB / 374.3 MB, free: 4.434 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.017e-05/0.2661, allocations: 28 kB / 374.4 MB, free: 4.406 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001631/0.2677, allocations: 1.91 MB / 376.3 MB, free: 2.426 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.835e-06/0.2677, allocations: 12.88 kB / 376.3 MB, free: 2.414 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001595/0.2693, allocations: 1.686 MB / 378 MB, free: 0.6328 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002955/0.2696, allocations: 27.94 kB / 378 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000641/0.2703, allocations: 35.98 kB / 378 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001277/0.2704, allocations: 88.23 kB / 378.1 MB, free: 496 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.653e-05/0.2705, allocations: 39.98 kB / 378.1 MB, free: 456 kB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001101/0.2716, allocations: 1.167 MB / 379.3 MB, free: 15.31 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2716, allocations: 0 / 379.3 MB, free: 15.31 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003085/0.2747, allocations: 0.9608 MB / 380.3 MB, free: 14.35 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.0003584/0.275, allocations: 172 kB / 380.4 MB, free: 14.18 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002847/0.2779, allocations: 2.356 MB / 382.8 MB, free: 11.84 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001768/0.278, allocations: 118.7 kB / 382.9 MB, free: 11.72 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006549/0.2787, allocations: 0.5469 MB / 383.5 MB, free: 11.15 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00309/0.2818, allocations: 3.111 MB / 386.6 MB, free: 7.613 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01204/0.2938, allocations: 6.887 MB / 393.5 MB, free: 0.5703 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001205/0.295, allocations: 1.126 MB / 394.6 MB, free: 15.42 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001297/0.2963, allocations: 461.3 kB / 395 MB, free: 14.96 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007808/0.2971, allocations: 0.5089 MB / 395.5 MB, free: 14.45 MB / 378.7 MB Notification: Performance of SimCode: time 1.403e-06/0.2971, allocations: 0 / 395.5 MB, free: 14.45 MB / 378.7 MB Notification: Performance of Templates: time 0.04795/0.3451, allocations: 29.55 MB / 425.1 MB, free: 1.105 MB / 394.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1795254247263074]