Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0008086/0.0008086, allocations: 87.62 kB / 21.44 MB, free: 3.125 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.003172/0.003172, allocations: 158.3 kB / 24.7 MB, free: 9.43 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8499/0.8499, allocations: 177.1 MB / 205 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.0_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_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.572e-06/1.572e-06, allocations: 0 / 325.8 MB, free: 15.41 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.148e-05/2.305e-05, allocations: 4.531 kB / 325.8 MB, free: 15.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.006683/0.006706, allocations: 9.142 MB / 335 MB, free: 6.227 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004892/0.0116, allocations: 3.808 MB / 338.8 MB, free: 2.406 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007108/0.01231, allocations: 75.62 kB / 338.9 MB, free: 2.332 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002312/0.01462, allocations: 2.258 MB / 341.1 MB, free: 64 kB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002393/0.01701, allocations: 1.94 MB / 343.1 MB, free: 14.11 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000935/0.01795, allocations: 0.8147 MB / 343.9 MB, free: 13.3 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003845/0.02179, allocations: 5.987 MB / 349.9 MB, free: 7.301 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002042/0.02384, allocations: 2.911 MB / 352.8 MB, free: 4.34 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002151/0.02599, allocations: 2.303 MB / 355.1 MB, free: 2.031 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001883/0.02787, allocations: 2.354 MB / 357.4 MB, free: 15.67 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003085/0.02818, allocations: 312 kB / 357.7 MB, free: 15.37 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001245/0.02942, allocations: 1.131 MB / 358.9 MB, free: 14.23 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001059/0.03048, allocations: 1.971 MB / 360.8 MB, free: 12.26 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001118/0.0316, allocations: 1.203 MB / 362 MB, free: 11.05 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004675/0.03627, allocations: 6.78 MB / 368.8 MB, free: 4.25 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.03628, allocations: 0 / 368.8 MB, free: 4.25 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.515e-06/0.03628, allocations: 4 kB / 368.8 MB, free: 4.246 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.579e-05/0.03635, allocations: 0 / 368.8 MB, free: 4.246 MB / 330.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.005686/0.04203, allocations: 4.782 MB / 373.6 MB, free: 15.41 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.357e-05/0.04207, allocations: 12.03 kB / 373.6 MB, free: 15.39 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01107/0.05313, allocations: 3.189 MB / 376.8 MB, free: 12.2 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004147/0.05728, allocations: 3.197 MB / 380 MB, free: 8.945 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.563e-05/0.05737, allocations: 201.4 kB / 380.2 MB, free: 8.746 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003265/0.05769, allocations: 279.7 kB / 380.5 MB, free: 8.473 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007842/0.06553, allocations: 8.959 MB / 389.4 MB, free: 14.84 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.027e-05/0.0656, allocations: 43.64 kB / 389.5 MB, free: 14.79 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002306/0.06583, allocations: 131.9 kB / 389.6 MB, free: 14.66 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001773/0.06761, allocations: 1.774 MB / 391.4 MB, free: 12.89 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008419/0.07603, allocations: 7.776 MB / 399.2 MB, free: 5.102 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02432/0.1004, allocations: 33.68 MB / 432.8 MB, free: 2.473 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004425/0.1048, allocations: 3.323 MB / 436.2 MB, free: 15.11 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00152/0.1063, allocations: 2.017 MB / 438.2 MB, free: 13.08 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001794/0.1065, allocations: 108.8 kB / 438.3 MB, free: 12.98 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.87e-05/0.1065, allocations: 43.56 kB / 438.3 MB, free: 12.93 MB / 410.7 MB Notification: Performance of pre-optimization done (n=160): time 3.527e-06/0.1065, allocations: 0 / 438.3 MB, free: 12.93 MB / 410.7 MB Notification: Performance of matching and sorting (n=190): time 0.1721/0.2786, allocations: 22.01 MB / 460.3 MB, free: 110.5 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.114e-05/0.2786, allocations: 252.3 kB / 460.6 MB, free: 110.2 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002835/0.2815, allocations: 3.875 MB / 464.5 MB, free: 108.9 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001192/0.2816, allocations: 55.03 kB / 464.5 MB, free: 108.8 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008197/0.2824, allocations: 2.875 MB / 467.4 MB, free: 106.8 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004021/0.2828, allocations: 0.743 MB / 468.1 MB, free: 106.3 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008639/0.2837, allocations: 1.165 MB / 469.3 MB, free: 105.7 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.965e-05/0.2837, allocations: 308.6 kB / 469.6 MB, free: 105.4 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00177/0.2855, allocations: 2.383 MB / 472 MB, free: 104 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002449/0.2879, allocations: 5.744 MB / 477.7 MB, free: 97.12 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00457/0.2925, allocations: 8.573 MB / 486.3 MB, free: 87.25 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-05/0.2925, allocations: 34.08 kB / 486.3 MB, free: 87.22 MB / 410.7 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.008365/0.3009, allocations: 9.588 MB / 495.9 MB, free: 77.63 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.208e-05/0.3009, allocations: 54.5 kB / 496 MB, free: 77.58 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-05/0.301, allocations: 115.2 kB / 496.1 MB, free: 77.47 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00256/0.3035, allocations: 2.019 MB / 498.1 MB, free: 75.45 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001763/0.3053, allocations: 1.287 MB / 499.4 MB, free: 74.16 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008162/0.3134, allocations: 11.15 MB / 0.4986 GB, free: 62.91 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00252/0.316, allocations: 395.5 kB / 0.499 GB, free: 62.52 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002537/0.3162, allocations: 344 kB / 0.4993 GB, free: 62.19 MB / 410.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.001845/0.3181, allocations: 1.943 MB / 0.5012 GB, free: 60.24 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003352/0.3184, allocations: 333.7 kB / 0.5015 GB, free: 59.91 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004508/0.3229, allocations: 4.83 MB / 0.5062 GB, free: 55.06 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.496e-05/0.3229, allocations: 22.16 kB / 0.5062 GB, free: 55.04 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.077e-06/0.3229, allocations: 8 kB / 0.5062 GB, free: 55.04 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.838e-06/0.3229, allocations: 11.97 kB / 0.5063 GB, free: 55.02 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008459/0.3314, allocations: 9.041 MB / 0.5151 GB, free: 45.99 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.3314, allocations: 4 kB / 0.5151 GB, free: 45.99 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005952/0.332, allocations: 269.2 kB / 0.5153 GB, free: 45.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002399/0.3344, allocations: 1.846 MB / 0.5171 GB, free: 43.88 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.624e-05/0.3345, allocations: 36.48 kB / 0.5172 GB, free: 43.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007117/0.3416, allocations: 10.23 MB / 0.5272 GB, free: 33.52 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.3416, allocations: 8.016 kB / 0.5272 GB, free: 33.51 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006844/0.3485, allocations: 7.901 MB / 0.5349 GB, free: 25.58 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007054/0.3492, allocations: 369.5 kB / 0.5352 GB, free: 25.22 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000226/0.3494, allocations: 31.94 kB / 0.5353 GB, free: 25.19 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009042/0.3503, allocations: 191.7 kB / 0.5355 GB, free: 25 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002335/0.3505, allocations: 117.1 kB / 0.5356 GB, free: 24.88 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.548e-05/0.3506, allocations: 47.98 kB / 0.5356 GB, free: 24.84 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002225/0.3528, allocations: 2.313 MB / 0.5379 GB, free: 22.53 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.3528, allocations: 0 / 0.5379 GB, free: 22.53 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003899/0.3567, allocations: 1.195 MB / 0.539 GB, free: 21.34 MB / 410.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.000357/0.3571, allocations: 175.3 kB / 0.5392 GB, free: 21.16 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004841/0.3619, allocations: 5.571 MB / 0.5447 GB, free: 15.6 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.3619, allocations: 0 / 0.5447 GB, free: 15.6 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001506/0.3634, allocations: 1.941 MB / 0.5465 GB, free: 13.65 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001523/0.365, allocations: 427.9 kB / 0.547 GB, free: 13.24 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008709/0.3737, allocations: 9.867 MB / 0.5566 GB, free: 3.332 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001577/0.3753, allocations: 2.52 MB / 0.5591 GB, free: 0.7891 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005984/0.3759, allocations: 264.4 kB / 0.5593 GB, free: 0.5312 MB / 410.7 MB Notification: Performance of SimCode: time 1.092e-06/0.3759, allocations: 0 / 0.5593 GB, free: 0.5312 MB / 410.7 MB Notification: Performance of Templates: time 0.2051/0.581, allocations: 75.58 MB / 0.6331 GB, free: 134.9 MB / 458.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 8.250593833625317]