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.001281/0.001281, allocations: 79.69 kB / 20.67 MB, free: 3.891 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.0008623/0.0008623, allocations: 170 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.8831/0.8831, allocations: 177.1 MB / 204.3 MB, free: 5.719 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.773e-06/1.773e-06, allocations: 0 / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.494e-05/1.671e-05, allocations: 8.891 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.006972/0.006988, allocations: 9.138 MB / 333.7 MB, free: 6.754 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005122/0.01211, allocations: 3.808 MB / 337.5 MB, free: 2.934 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000611/0.01272, allocations: 79.62 kB / 337.6 MB, free: 2.855 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002125/0.01485, allocations: 2.246 MB / 339.8 MB, free: 0.5977 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002604/0.01745, allocations: 1.944 MB / 341.8 MB, free: 14.64 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008584/0.01831, allocations: 0.8264 MB / 342.6 MB, free: 13.82 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003632/0.02194, allocations: 5.99 MB / 348.6 MB, free: 7.816 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002158/0.0241, allocations: 2.903 MB / 351.5 MB, free: 4.863 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00186/0.02596, allocations: 2.303 MB / 353.8 MB, free: 2.555 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001948/0.02791, allocations: 2.354 MB / 356.2 MB, free: 200 kB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002731/0.02818, allocations: 312 kB / 356.5 MB, free: 15.89 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00106/0.02924, allocations: 1.135 MB / 357.6 MB, free: 14.75 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009989/0.03024, allocations: 1.983 MB / 359.6 MB, free: 12.77 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008353/0.03107, allocations: 1.328 MB / 360.9 MB, free: 11.43 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004321/0.0354, allocations: 7.111 MB / 368 MB, free: 4.301 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.0354, allocations: 0 / 368 MB, free: 4.301 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.0354, allocations: 4 kB / 368 MB, free: 4.297 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.961e-05/0.03546, allocations: 0 / 368 MB, free: 4.297 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.006826/0.04229, allocations: 5.056 MB / 373.1 MB, free: 15.18 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/0.04233, allocations: 8.031 kB / 373.1 MB, free: 15.18 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005108/0.04284, allocations: 0.6245 MB / 373.7 MB, free: 14.54 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07425/0.1171, allocations: 12.72 MB / 386.4 MB, free: 1.809 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005293/0.1224, allocations: 3.3 MB / 389.7 MB, free: 14.45 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.13e-05/0.1225, allocations: 205.1 kB / 389.9 MB, free: 14.25 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003383/0.1228, allocations: 279.8 kB / 390.2 MB, free: 13.98 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008427/0.1312, allocations: 8.83 MB / 399 MB, free: 4.469 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.1e-05/0.1313, allocations: 47.64 kB / 399.1 MB, free: 4.422 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002279/0.1315, allocations: 127.9 kB / 399.2 MB, free: 4.297 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001655/0.1332, allocations: 1.77 MB / 401 MB, free: 2.527 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007853/0.141, allocations: 7.507 MB / 408.5 MB, free: 11.01 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02684/0.1679, allocations: 33.99 MB / 442.5 MB, free: 8.047 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004852/0.1727, allocations: 3.197 MB / 445.7 MB, free: 4.816 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001716/0.1745, allocations: 1.896 MB / 447.6 MB, free: 2.91 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000207/0.1747, allocations: 96.8 kB / 447.7 MB, free: 2.816 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.364e-05/0.1747, allocations: 51.56 kB / 447.7 MB, free: 2.754 MB / 410.7 MB Notification: Performance of pre-optimization done (n=160): time 4.819e-06/0.1747, allocations: 0 / 447.7 MB, free: 2.754 MB / 410.7 MB Notification: Performance of matching and sorting (n=190): time 0.1625/0.3372, allocations: 20.69 MB / 468.4 MB, free: 107.1 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.87e-05/0.3372, allocations: 248.6 kB / 468.7 MB, free: 106.8 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002912/0.3401, allocations: 4.495 MB / 473.1 MB, free: 102.5 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.323e-05/0.3402, allocations: 53.7 kB / 473.2 MB, free: 102.4 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007147/0.3409, allocations: 2.894 MB / 476.1 MB, free: 99.8 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000291/0.3412, allocations: 0.7561 MB / 476.9 MB, free: 99.06 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000721/0.3419, allocations: 1.086 MB / 477.9 MB, free: 97.96 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.254e-05/0.342, allocations: 301.1 kB / 478.2 MB, free: 97.67 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001571/0.3435, allocations: 2.166 MB / 480.4 MB, free: 95.5 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002149/0.3457, allocations: 5.506 MB / 485.9 MB, free: 88.36 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004122/0.3498, allocations: 8.201 MB / 494.1 MB, free: 78.59 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.426e-05/0.3498, allocations: 32 kB / 494.1 MB, free: 78.56 MB / 410.7 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.007075/0.3569, allocations: 8.642 MB / 0.491 GB, free: 69.91 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.894e-05/0.3569, allocations: 54.66 kB / 0.491 GB, free: 69.86 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.492e-05/0.357, allocations: 114.9 kB / 0.4912 GB, free: 69.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00207/0.3591, allocations: 1.496 MB / 0.4926 GB, free: 68.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001735/0.3608, allocations: 1.236 MB / 0.4938 GB, free: 67.02 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007326/0.3681, allocations: 9.808 MB / 0.5034 GB, free: 57.09 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002567/0.3707, allocations: 387.4 kB / 0.5038 GB, free: 56.71 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002439/0.3709, allocations: 328 kB / 0.5041 GB, free: 56.39 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.001829/0.3728, allocations: 1.945 MB / 0.506 GB, free: 54.44 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004555/0.3732, allocations: 369.5 kB / 0.5063 GB, free: 54.07 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004251/0.3775, allocations: 4.131 MB / 0.5104 GB, free: 49.93 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.145e-05/0.3775, allocations: 20 kB / 0.5104 GB, free: 49.91 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.011e-05/0.3775, allocations: 8 kB / 0.5104 GB, free: 49.91 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.046e-05/0.3775, allocations: 11.91 kB / 0.5104 GB, free: 49.89 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008758/0.3863, allocations: 8.94 MB / 0.5191 GB, free: 40.94 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.824e-06/0.3863, allocations: 6.625 kB / 0.5191 GB, free: 40.93 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006444/0.3869, allocations: 271.5 kB / 0.5194 GB, free: 40.67 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002341/0.3893, allocations: 1.347 MB / 0.5207 GB, free: 39.32 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000137/0.3894, allocations: 35.98 kB / 0.5208 GB, free: 39.28 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006917/0.3963, allocations: 8.841 MB / 0.5294 GB, free: 30.32 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.3963, allocations: 0 / 0.5294 GB, free: 30.32 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006105/0.4024, allocations: 7.036 MB / 0.5363 GB, free: 23.26 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006687/0.4031, allocations: 401.3 kB / 0.5366 GB, free: 22.86 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002351/0.4033, allocations: 36 kB / 0.5367 GB, free: 22.83 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009376/0.4043, allocations: 179.7 kB / 0.5368 GB, free: 22.65 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001956/0.4045, allocations: 113.1 kB / 0.537 GB, free: 22.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.807e-05/0.4045, allocations: 48 kB / 0.537 GB, free: 22.5 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002993/0.4075, allocations: 2.779 MB / 0.5397 GB, free: 19.74 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.4075, allocations: 0 / 0.5397 GB, free: 19.74 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003561/0.4111, allocations: 1.168 MB / 0.5409 GB, free: 18.57 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.00655/0.4176, allocations: 7.694 MB / 0.5484 GB, free: 10.84 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005169/0.4228, allocations: 5.158 MB / 0.5534 GB, free: 5.691 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.229e-06/0.4228, allocations: 0 / 0.5534 GB, free: 5.691 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001831/0.4247, allocations: 1.937 MB / 0.5553 GB, free: 3.738 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002243/0.4269, allocations: 0.4904 MB / 0.5558 GB, free: 3.266 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05486/0.4818, allocations: 46.82 MB / 0.6015 GB, free: 15.47 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002581/0.4843, allocations: 2.543 MB / 0.604 GB, free: 12.91 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.002814/0.4872, allocations: 1.835 MB / 0.6058 GB, free: 11.07 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001767/0.4889, allocations: 1.762 MB / 0.6075 GB, free: 9.305 MB / 474.7 MB Notification: Performance of SimCode: time 1.102e-06/0.4889, allocations: 3.938 kB / 0.6075 GB, free: 9.301 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2215/0.7105, allocations: 78.61 MB / 0.6843 GB, free: 104.3 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.768/10.48, allocations: 7.109 kB / 0.6843 GB, free: 104.3 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 & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00059976 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.csv","/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: 12.321811496280134]