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.001428/0.001428, allocations: 75.77 kB / 22.45 MB, free: 2.098 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.001545/0.001545, allocations: 168.7 kB / 25.75 MB, free: 8.582 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.8884/0.8884, allocations: 158.6 MB / 187.6 MB, free: 2.898 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 2.034e-06/2.034e-06, allocations: 0 / 251.1 MB, free: 7.891 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.332e-05/2.536e-05, allocations: 2.312 kB / 251.1 MB, free: 7.887 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01231/0.01234, allocations: 10.2 MB / 261.3 MB, free: 13.64 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00918/0.02152, allocations: 3.891 MB / 265.2 MB, free: 9.742 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00147/0.02299, allocations: 79.56 kB / 265.3 MB, free: 9.664 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004832/0.02782, allocations: 2.371 MB / 267.7 MB, free: 7.285 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004766/0.03259, allocations: 1.975 MB / 269.6 MB, free: 5.301 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001752/0.03434, allocations: 0.8421 MB / 270.5 MB, free: 4.457 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.006968/0.04131, allocations: 5.508 MB / 276 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003906/0.04521, allocations: 3.025 MB / 279 MB, free: 11.86 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003403/0.04862, allocations: 2.335 MB / 281.3 MB, free: 9.516 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002835/0.05145, allocations: 2.416 MB / 283.8 MB, free: 7.094 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004999/0.05195, allocations: 312 kB / 284.1 MB, free: 6.789 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001431/0.05338, allocations: 1.135 MB / 285.2 MB, free: 5.652 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001359/0.05474, allocations: 2.018 MB / 287.2 MB, free: 3.629 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001231/0.05597, allocations: 1.223 MB / 288.4 MB, free: 2.402 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004201/0.06017, allocations: 4.55 MB / 293 MB, free: 13.84 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.113e-06/0.06018, allocations: 4 kB / 293 MB, free: 13.83 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.06018, allocations: 0 / 293 MB, free: 13.83 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.148e-05/0.06024, allocations: 0 / 293 MB, free: 13.83 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.006124/0.06637, allocations: 5.145 MB / 298.1 MB, free: 8.617 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/0.06641, allocations: 11.98 kB / 298.1 MB, free: 8.605 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01286/0.07928, allocations: 3.579 MB / 301.7 MB, free: 5.02 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004354/0.08363, allocations: 2.982 MB / 304.7 MB, free: 1.984 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001093/0.08374, allocations: 201.4 kB / 304.9 MB, free: 1.785 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003878/0.08413, allocations: 275.8 kB / 305.2 MB, free: 1.516 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006416/0.09054, allocations: 5.432 MB / 310.6 MB, free: 11.18 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.653e-05/0.09063, allocations: 51.58 kB / 310.7 MB, free: 11.13 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002508/0.09088, allocations: 131.9 kB / 310.8 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001814/0.09269, allocations: 1.762 MB / 312.5 MB, free: 9.238 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005722/0.09842, allocations: 2.963 MB / 315.5 MB, free: 6.277 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1407/0.2391, allocations: 39.02 MB / 354.5 MB, free: 94.34 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003855/0.243, allocations: 1.65 MB / 356.2 MB, free: 94.18 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000769/0.2438, allocations: 0.6501 MB / 356.8 MB, free: 94.13 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001949/0.244, allocations: 98.84 kB / 356.9 MB, free: 94.13 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.286e-05/0.244, allocations: 56.14 kB / 357 MB, free: 94.09 MB / 330.7 MB Notification: Performance of pre-optimization done (n=160): time 4.538e-06/0.244, allocations: 0 / 357 MB, free: 94.09 MB / 330.7 MB Notification: Performance of matching and sorting (n=190): time 0.02829/0.2723, allocations: 14.96 MB / 371.9 MB, free: 87.83 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.326e-05/0.2724, allocations: 255.4 kB / 372.2 MB, free: 87.54 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003241/0.2756, allocations: 3.431 MB / 375.6 MB, free: 84.91 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002946/0.2759, allocations: 49.7 kB / 375.7 MB, free: 84.86 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001216/0.2771, allocations: 3.05 MB / 378.7 MB, free: 82.05 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007123/0.2778, allocations: 0.7756 MB / 379.5 MB, free: 81.29 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009989/0.2788, allocations: 1.254 MB / 380.8 MB, free: 80.02 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.406e-05/0.2789, allocations: 491.6 kB / 381.2 MB, free: 79.54 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001189/0.2801, allocations: 0.7647 MB / 382 MB, free: 78.77 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002221/0.2823, allocations: 5.681 MB / 387.7 MB, free: 70.91 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00414/0.2864, allocations: 6.979 MB / 394.7 MB, free: 61.84 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.568e-05/0.2865, allocations: 32 kB / 394.7 MB, free: 61.81 MB / 330.7 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.00793/0.2944, allocations: 6.114 MB / 400.8 MB, free: 55.69 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.581e-05/0.2944, allocations: 56 kB / 400.9 MB, free: 55.64 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-05/0.2945, allocations: 112 kB / 401 MB, free: 55.53 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002961/0.2975, allocations: 1.385 MB / 402.4 MB, free: 54.14 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001979/0.2994, allocations: 1.287 MB / 403.6 MB, free: 52.85 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005268/0.3047, allocations: 4.999 MB / 408.6 MB, free: 47.73 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002361/0.3071, allocations: 415.4 kB / 409 MB, free: 47.32 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002572/0.3073, allocations: 344.8 kB / 409.4 MB, free: 46.98 MB / 330.7 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.000912/0.3082, allocations: 0.6116 MB / 410 MB, free: 46.37 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004128/0.3087, allocations: 385.8 kB / 410.4 MB, free: 45.99 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003716/0.3124, allocations: 2.564 MB / 412.9 MB, free: 43.41 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.65e-05/0.3124, allocations: 20 kB / 413 MB, free: 43.39 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.271e-05/0.3124, allocations: 12 kB / 413 MB, free: 43.38 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.225e-05/0.3124, allocations: 15.91 kB / 413 MB, free: 43.36 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008191/0.3206, allocations: 6.411 MB / 419.4 MB, free: 36.94 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.745e-06/0.3206, allocations: 0 / 419.4 MB, free: 36.94 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006859/0.3213, allocations: 263.6 kB / 419.6 MB, free: 36.68 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002837/0.3241, allocations: 1.216 MB / 420.9 MB, free: 35.46 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001298/0.3243, allocations: 36 kB / 420.9 MB, free: 35.43 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004831/0.3291, allocations: 4.218 MB / 425.1 MB, free: 31.09 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.3291, allocations: 4.031 kB / 425.1 MB, free: 31.08 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005227/0.3343, allocations: 3.699 MB / 428.8 MB, free: 27.35 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009655/0.3353, allocations: 0.642 MB / 429.5 MB, free: 26.7 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002904/0.3356, allocations: 32 kB / 429.5 MB, free: 26.67 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009703/0.3366, allocations: 207.7 kB / 429.7 MB, free: 26.47 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002424/0.3368, allocations: 117.1 kB / 429.8 MB, free: 26.36 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.522e-05/0.3369, allocations: 44 kB / 429.9 MB, free: 26.31 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001575/0.3385, allocations: 1.533 MB / 431.4 MB, free: 24.79 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3385, allocations: 0 / 431.4 MB, free: 24.79 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003029/0.3415, allocations: 1.226 MB / 432.6 MB, free: 23.56 MB / 330.7 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.0003701/0.3419, allocations: 192 kB / 432.8 MB, free: 23.37 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004312/0.3462, allocations: 3.333 MB / 436.1 MB, free: 20.03 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.005e-06/0.3462, allocations: 0 / 436.1 MB, free: 20.03 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001329/0.3475, allocations: 1.09 MB / 437.2 MB, free: 18.92 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001675/0.3492, allocations: 444.3 kB / 437.7 MB, free: 18.51 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008456/0.3576, allocations: 7.462 MB / 445.1 MB, free: 10.97 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001011/0.3586, allocations: 1.176 MB / 446.3 MB, free: 9.77 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.00224/0.3609, allocations: 1.522 MB / 447.8 MB, free: 8.25 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005492/0.3614, allocations: 228.4 kB / 448 MB, free: 8.027 MB / 330.7 MB Notification: Performance of SimCode: time 1.974e-06/0.3614, allocations: 0 / 448 MB, free: 8.027 MB / 330.7 MB Notification: Performance of Templates: time 0.1563/0.5177, allocations: 42.83 MB / 490.9 MB, free: 120.2 MB / 362.7 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=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.9413698581047356]