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.00137/0.00137, allocations: 84.81 kB / 22 MB, free: 5.176 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.001432/0.001432, allocations: 161.8 kB / 25.25 MB, free: 3.023 MB / 14.72 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 1.259/1.259, allocations: 158.6 MB / 187 MB, free: 6.234 MB / 174.1 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: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001786/0.001786, allocations: 60.34 kB / 299.4 MB, free: 6.844 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1925/0.1943, allocations: 49.14 MB / 348.5 MB, free: 15.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01168/0.206, allocations: 9.182 MB / 357.7 MB, free: 6.305 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007674/0.2136, allocations: 3.782 MB / 361.5 MB, free: 2.516 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001122/0.2148, allocations: 79.56 kB / 361.6 MB, free: 2.438 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00424/0.219, allocations: 2.165 MB / 363.7 MB, free: 272 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004262/0.2233, allocations: 1.919 MB / 365.6 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001553/0.2248, allocations: 0.7448 MB / 366.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006439/0.2313, allocations: 4.862 MB / 371.2 MB, free: 8.719 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003009/0.2343, allocations: 2.396 MB / 373.6 MB, free: 6.266 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002158/0.2364, allocations: 1.522 MB / 375.2 MB, free: 4.738 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003134/0.2396, allocations: 2.122 MB / 377.3 MB, free: 2.609 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005661/0.2401, allocations: 304 kB / 377.6 MB, free: 2.312 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002039/0.2422, allocations: 1.088 MB / 378.7 MB, free: 1.223 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001944/0.2441, allocations: 1.893 MB / 380.6 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001861/0.246, allocations: 1.549 MB / 382.1 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007442/0.2534, allocations: 6.746 MB / 388.9 MB, free: 7 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.2534, allocations: 4 kB / 388.9 MB, free: 6.996 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.2534, allocations: 3.938 kB / 388.9 MB, free: 6.992 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.194e-05/0.2535, allocations: 0 / 388.9 MB, free: 6.992 MB / 350.1 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.008822/0.2623, allocations: 4.717 MB / 393.6 MB, free: 2.215 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/0.2624, allocations: 23.97 kB / 393.6 MB, free: 2.191 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02723/0.2896, allocations: 3.197 MB / 396.8 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008108/0.2977, allocations: 3.393 MB / 400.2 MB, free: 11.54 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001715/0.2979, allocations: 197 kB / 400.4 MB, free: 11.35 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005633/0.2985, allocations: 267.8 kB / 400.7 MB, free: 11.09 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01432/0.3128, allocations: 8.959 MB / 409.6 MB, free: 1.453 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001181/0.3129, allocations: 51.59 kB / 409.7 MB, free: 1.402 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003504/0.3132, allocations: 127.9 kB / 409.8 MB, free: 1.277 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003313/0.3165, allocations: 1.766 MB / 411.6 MB, free: 15.51 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01423/0.3308, allocations: 7.776 MB / 419.3 MB, free: 7.73 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04182/0.3726, allocations: 33.47 MB / 452.8 MB, free: 5.297 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008286/0.3809, allocations: 3.319 MB / 456.1 MB, free: 1.934 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002898/0.3838, allocations: 2.013 MB / 458.1 MB, free: 15.91 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003128/0.3841, allocations: 92.94 kB / 458.2 MB, free: 15.82 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.956e-05/0.3842, allocations: 55.5 kB / 458.3 MB, free: 15.76 MB / 430.1 MB Notification: Performance of pre-optimization done (n=160): time 4.027e-06/0.3842, allocations: 0 / 458.3 MB, free: 15.76 MB / 430.1 MB Notification: Performance of matching and sorting (n=190): time 0.2147/0.5989, allocations: 21.91 MB / 480.2 MB, free: 106.9 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.845e-05/0.599, allocations: 255.9 kB / 480.4 MB, free: 106.6 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003522/0.6025, allocations: 3.732 MB / 484.2 MB, free: 105.3 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001637/0.6027, allocations: 53.77 kB / 484.2 MB, free: 105.2 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001001/0.6037, allocations: 2.912 MB / 487.1 MB, free: 103.2 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004152/0.6041, allocations: 0.7569 MB / 487.9 MB, free: 102.7 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001123/0.6052, allocations: 1.189 MB / 489.1 MB, free: 102.1 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.111e-05/0.6052, allocations: 305.1 kB / 489.4 MB, free: 101.8 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002538/0.6078, allocations: 2.38 MB / 491.8 MB, free: 101 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003342/0.6111, allocations: 5.743 MB / 497.5 MB, free: 95.74 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00631/0.6174, allocations: 8.573 MB / 0.4942 GB, free: 86.46 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.782e-05/0.6175, allocations: 32 kB / 0.4942 GB, free: 86.43 MB / 430.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01303/0.6305, allocations: 9.59 MB / 0.5036 GB, free: 76.83 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.428e-05/0.6305, allocations: 52.94 kB / 0.5037 GB, free: 76.78 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.797e-05/0.6306, allocations: 112.8 kB / 0.5038 GB, free: 76.67 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00479/0.6354, allocations: 2.022 MB / 0.5057 GB, free: 74.65 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003248/0.6386, allocations: 1.275 MB / 0.507 GB, free: 73.37 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01186/0.6505, allocations: 11.11 MB / 0.5178 GB, free: 62.16 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003576/0.6541, allocations: 355.4 kB / 0.5182 GB, free: 61.82 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003719/0.6545, allocations: 339.2 kB / 0.5185 GB, free: 61.49 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 515 * 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 {(3,35,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002142/0.6566, allocations: 1.947 MB / 0.5204 GB, free: 59.53 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000467/0.6571, allocations: 333.7 kB / 0.5207 GB, free: 59.2 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007971/0.665, allocations: 4.84 MB / 0.5254 GB, free: 54.35 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.91e-05/0.6651, allocations: 20 kB / 0.5255 GB, free: 54.33 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.207e-05/0.6651, allocations: 8 kB / 0.5255 GB, free: 54.32 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.449e-05/0.6651, allocations: 7.969 kB / 0.5255 GB, free: 54.31 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01345/0.6785, allocations: 8.932 MB / 0.5342 GB, free: 45.4 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.566e-06/0.6785, allocations: 4 kB / 0.5342 GB, free: 45.4 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001168/0.6797, allocations: 263.6 kB / 0.5345 GB, free: 45.14 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004572/0.6843, allocations: 1.846 MB / 0.5363 GB, free: 43.29 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001414/0.6844, allocations: 32 kB / 0.5363 GB, free: 43.26 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01107/0.6955, allocations: 10.16 MB / 0.5462 GB, free: 32.98 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.6955, allocations: 4 kB / 0.5462 GB, free: 32.98 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01064/0.7061, allocations: 7.904 MB / 0.5539 GB, free: 25.05 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001638/0.7078, allocations: 0.6265 MB / 0.5545 GB, free: 24.42 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000376/0.7082, allocations: 43.28 kB / 0.5546 GB, free: 24.38 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0015/0.7097, allocations: 131.8 kB / 0.5547 GB, free: 24.25 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003069/0.71, allocations: 113.1 kB / 0.5548 GB, free: 24.14 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001377/0.7101, allocations: 55.92 kB / 0.5549 GB, free: 24.09 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002331/0.7124, allocations: 2.205 MB / 0.557 GB, free: 21.89 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.7124, allocations: 4 kB / 0.557 GB, free: 21.89 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003837/0.7163, allocations: 1.059 MB / 0.5581 GB, free: 20.83 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (revolute1.phi,revolute1.w,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 (136): * Single equations (assignments): 132 * 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,33,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003158/0.7166, allocations: 163.1 kB / 0.5582 GB, free: 20.66 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006605/0.7232, allocations: 5.573 MB / 0.5637 GB, free: 15.1 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.7232, allocations: 4 kB / 0.5637 GB, free: 15.1 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002255/0.7255, allocations: 1.936 MB / 0.5656 GB, free: 13.15 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002236/0.7277, allocations: 428.9 kB / 0.566 GB, free: 12.73 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01193/0.7396, allocations: 9.616 MB / 0.5754 GB, free: 3.066 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002596/0.7422, allocations: 2.556 MB / 0.5779 GB, free: 488 kB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.004015/0.7462, allocations: 1.782 MB / 0.5796 GB, free: 14.69 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007477/0.747, allocations: 224.4 kB / 0.5798 GB, free: 14.47 MB / 446.1 MB Notification: Performance of SimCode: time 7.81e-07/0.747, allocations: 0 / 0.5798 GB, free: 14.47 MB / 446.1 MB Notification: Performance of Templates: time 0.07631/0.8233, allocations: 39.76 MB / 0.6186 GB, free: 6.645 MB / 478.1 MB " [Timeout remaining time 659] 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=480 -s ida -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.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: 5.9333613810595125]