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.00109/0.00109, allocations: 83.69 kB / 20.67 MB, free: 3.887 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.001074/0.001074, allocations: 170.3 kB / 23.95 MB, free: 0.6133 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.9299/0.9299, allocations: 177.2 MB / 204.3 MB, free: 5.727 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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.754e-06/1.754e-06, allocations: 3.938 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.222e-05/1.398e-05, allocations: 6.219 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.006774/0.006788, allocations: 9.134 MB / 333.7 MB, free: 6.762 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005311/0.0121, allocations: 3.808 MB / 337.5 MB, free: 2.941 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006747/0.01277, allocations: 75.62 kB / 337.6 MB, free: 2.867 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002182/0.01496, allocations: 2.25 MB / 339.8 MB, free: 0.6055 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002289/0.01725, allocations: 1.944 MB / 341.8 MB, free: 14.65 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009454/0.01819, allocations: 0.8264 MB / 342.6 MB, free: 13.82 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004053/0.02224, allocations: 5.987 MB / 348.6 MB, free: 7.828 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002146/0.02439, allocations: 2.903 MB / 351.5 MB, free: 4.875 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001773/0.02616, allocations: 2.303 MB / 353.8 MB, free: 2.566 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001662/0.02783, allocations: 2.354 MB / 356.2 MB, free: 212 kB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002677/0.02809, allocations: 312 kB / 356.5 MB, free: 15.9 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001032/0.02912, allocations: 1.139 MB / 357.6 MB, free: 14.76 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001006/0.03013, allocations: 1.983 MB / 359.6 MB, free: 12.77 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008502/0.03098, allocations: 1.332 MB / 360.9 MB, free: 11.44 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0041/0.03508, allocations: 7.107 MB / 368 MB, free: 4.309 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.03509, allocations: 0 / 368 MB, free: 4.309 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.03509, allocations: 0 / 368 MB, free: 4.309 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.212e-05/0.03513, allocations: 0 / 368 MB, free: 4.309 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.006285/0.04141, allocations: 5.06 MB / 373.1 MB, free: 15.19 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.04146, allocations: 8.031 kB / 373.1 MB, free: 15.18 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004939/0.04195, allocations: 0.6245 MB / 373.7 MB, free: 14.55 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07322/0.1152, allocations: 12.71 MB / 386.4 MB, free: 1.82 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0053/0.1205, allocations: 3.3 MB / 389.7 MB, free: 14.46 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.251e-05/0.1206, allocations: 200.8 kB / 389.9 MB, free: 14.27 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003386/0.1209, allocations: 275.8 kB / 390.2 MB, free: 14 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007895/0.1288, allocations: 8.838 MB / 399 MB, free: 4.48 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.016e-05/0.1289, allocations: 47.59 kB / 399.1 MB, free: 4.434 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002267/0.1291, allocations: 135.8 kB / 399.2 MB, free: 4.301 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001746/0.1308, allocations: 1.77 MB / 401 MB, free: 2.531 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007673/0.1385, allocations: 7.503 MB / 408.5 MB, free: 11.02 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02302/0.1615, allocations: 33.99 MB / 442.5 MB, free: 8.059 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004479/0.166, allocations: 3.198 MB / 445.7 MB, free: 4.824 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001505/0.1675, allocations: 1.896 MB / 447.6 MB, free: 2.918 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001785/0.1677, allocations: 92.8 kB / 447.7 MB, free: 2.828 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.144e-05/0.1677, allocations: 55.5 kB / 447.7 MB, free: 2.762 MB / 410.7 MB Notification: Performance of pre-optimization done (n=160): time 3.516e-06/0.1677, allocations: 0 / 447.7 MB, free: 2.762 MB / 410.7 MB Notification: Performance of matching and sorting (n=190): time 0.153/0.3208, allocations: 20.69 MB / 468.4 MB, free: 107.1 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.926e-05/0.3208, allocations: 252.6 kB / 468.7 MB, free: 106.8 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003044/0.3239, allocations: 4.496 MB / 473.1 MB, free: 102.5 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.268e-05/0.3239, allocations: 49.7 kB / 473.2 MB, free: 102.4 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007469/0.3247, allocations: 2.902 MB / 476.1 MB, free: 99.79 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003079/0.325, allocations: 0.7403 MB / 476.8 MB, free: 99.06 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007397/0.3257, allocations: 1.101 MB / 477.9 MB, free: 97.95 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.066e-05/0.3258, allocations: 301.1 kB / 478.2 MB, free: 97.65 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001625/0.3274, allocations: 2.162 MB / 480.4 MB, free: 95.48 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00218/0.3296, allocations: 5.51 MB / 485.9 MB, free: 88.34 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004358/0.3339, allocations: 8.193 MB / 494.1 MB, free: 78.59 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.282e-05/0.334, allocations: 36.81 kB / 494.1 MB, free: 78.55 MB / 410.7 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.007178/0.3411, allocations: 8.642 MB / 0.491 GB, free: 69.9 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.136e-05/0.3412, allocations: 52 kB / 0.491 GB, free: 69.85 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.028e-05/0.3412, allocations: 112 kB / 0.4912 GB, free: 69.74 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001975/0.3432, allocations: 1.5 MB / 0.4926 GB, free: 68.24 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001726/0.3449, allocations: 1.228 MB / 0.4938 GB, free: 67.01 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007108/0.352, allocations: 9.823 MB / 0.5034 GB, free: 57.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002048/0.3541, allocations: 375.5 kB / 0.5038 GB, free: 56.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002466/0.3543, allocations: 328 kB / 0.5041 GB, free: 56.38 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 (650): * Single equations (assignments): 646 * 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,36,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001553/0.3559, allocations: 1.938 MB / 0.506 GB, free: 54.43 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002894/0.3562, allocations: 373.5 kB / 0.5063 GB, free: 54.07 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003974/0.3601, allocations: 4.131 MB / 0.5104 GB, free: 49.93 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.447e-05/0.3602, allocations: 20 kB / 0.5104 GB, free: 49.91 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.3602, allocations: 8 kB / 0.5104 GB, free: 49.9 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.558e-06/0.3602, allocations: 15.91 kB / 0.5104 GB, free: 49.88 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008011/0.3682, allocations: 8.939 MB / 0.5191 GB, free: 40.92 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.3682, allocations: 6.562 kB / 0.5191 GB, free: 40.92 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005923/0.3688, allocations: 267.6 kB / 0.5194 GB, free: 40.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001871/0.3707, allocations: 1.351 MB / 0.5207 GB, free: 39.3 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.486e-05/0.3707, allocations: 28 kB / 0.5207 GB, free: 39.27 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006415/0.3772, allocations: 8.845 MB / 0.5294 GB, free: 30.32 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.3772, allocations: 0 / 0.5294 GB, free: 30.32 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005635/0.3828, allocations: 7.032 MB / 0.5362 GB, free: 23.25 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003913/0.3832, allocations: 409.3 kB / 0.5366 GB, free: 22.85 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002355/0.3834, allocations: 35.94 kB / 0.5367 GB, free: 22.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009075/0.3843, allocations: 175.7 kB / 0.5368 GB, free: 22.64 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001827/0.3845, allocations: 121 kB / 0.537 GB, free: 22.53 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.708e-05/0.3846, allocations: 48 kB / 0.537 GB, free: 22.48 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002016/0.3866, allocations: 2.783 MB / 0.5397 GB, free: 19.72 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.3866, allocations: 0 / 0.5397 GB, free: 19.72 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002574/0.3892, allocations: 1.16 MB / 0.5408 GB, free: 18.56 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 {(4,31,87.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006064/0.3952, allocations: 7.697 MB / 0.5484 GB, free: 10.83 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004155/0.3994, allocations: 5.154 MB / 0.5534 GB, free: 5.684 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.3994, allocations: 4.562 kB / 0.5534 GB, free: 5.68 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001627/0.401, allocations: 1.941 MB / 0.5553 GB, free: 3.727 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001475/0.4025, allocations: 0.489 MB / 0.5558 GB, free: 3.25 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04259/0.4451, allocations: 46.82 MB / 0.6015 GB, free: 15.44 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002099/0.4472, allocations: 2.531 MB / 0.604 GB, free: 12.89 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.002533/0.4497, allocations: 1.835 MB / 0.6058 GB, free: 11.05 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00154/0.4513, allocations: 1.762 MB / 0.6075 GB, free: 9.293 MB / 474.7 MB Notification: Performance of SimCode: time 1.012e-06/0.4513, allocations: 0 / 0.6075 GB, free: 9.293 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1958/0.6471, allocations: 78.62 MB / 0.6843 GB, free: 104.2 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.43/11.08, allocations: 7.984 kB / 0.6843 GB, free: 104.2 MB / 474.7 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum_fmu --startTime=0 --stopTime=3 --stepSize=0.00059976 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 52.5] 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: 13.225973512046039]