Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001153/0.001153, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001269/0.001269, allocations: 160.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8634/0.8634, allocations: 177 MB / 204.1 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.363e-06/1.363e-06, allocations: 0 / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.858e-05/1.994e-05, allocations: 3.266 kB / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.007027/0.007047, allocations: 9.15 MB / 333.7 MB, free: 6.68 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005019/0.01207, allocations: 3.793 MB / 337.5 MB, free: 2.875 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006155/0.01268, allocations: 79.56 kB / 337.5 MB, free: 2.797 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00214/0.01482, allocations: 2.258 MB / 339.8 MB, free: 0.5273 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002283/0.0171, allocations: 1.933 MB / 341.7 MB, free: 14.59 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00096/0.01806, allocations: 0.8264 MB / 342.6 MB, free: 13.76 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003947/0.02201, allocations: 5.995 MB / 348.6 MB, free: 7.754 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002142/0.02415, allocations: 2.899 MB / 351.5 MB, free: 4.805 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001679/0.02583, allocations: 2.307 MB / 353.8 MB, free: 2.492 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00168/0.02751, allocations: 2.342 MB / 356.1 MB, free: 148 kB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002852/0.0278, allocations: 312 kB / 356.4 MB, free: 15.84 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00104/0.02884, allocations: 1.143 MB / 357.6 MB, free: 14.7 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001226/0.03006, allocations: 1.983 MB / 359.5 MB, free: 12.71 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008645/0.03093, allocations: 1.328 MB / 360.9 MB, free: 11.38 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004373/0.0353, allocations: 7.111 MB / 368 MB, free: 4.242 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.0353, allocations: 0 / 368 MB, free: 4.242 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.03531, allocations: 0 / 368 MB, free: 4.242 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.326e-05/0.03536, allocations: 0 / 368 MB, free: 4.242 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.007049/0.04241, allocations: 5.065 MB / 373 MB, free: 15.12 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.04245, allocations: 11.98 kB / 373.1 MB, free: 15.11 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005293/0.04298, allocations: 0.6206 MB / 373.7 MB, free: 14.48 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07485/0.1178, allocations: 12.71 MB / 386.4 MB, free: 1.75 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005792/0.1236, allocations: 3.308 MB / 389.7 MB, free: 14.38 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001019/0.1237, allocations: 204.6 kB / 389.9 MB, free: 14.18 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005206/0.1242, allocations: 267.8 kB / 390.2 MB, free: 13.92 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008552/0.1328, allocations: 8.842 MB / 399 MB, free: 4.398 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.48e-05/0.1329, allocations: 51.59 kB / 399 MB, free: 4.348 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000233/0.1331, allocations: 123.9 kB / 399.2 MB, free: 4.227 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001913/0.135, allocations: 1.762 MB / 400.9 MB, free: 2.465 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008311/0.1433, allocations: 7.522 MB / 408.4 MB, free: 10.93 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0245/0.1678, allocations: 33.98 MB / 442.4 MB, free: 7.984 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004616/0.1724, allocations: 3.198 MB / 445.6 MB, free: 4.75 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001527/0.174, allocations: 1.896 MB / 447.5 MB, free: 2.844 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000185/0.1742, allocations: 100.7 kB / 447.6 MB, free: 2.746 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.179e-05/0.1742, allocations: 55.48 kB / 447.7 MB, free: 2.68 MB / 410.7 MB Notification: Performance of pre-optimization done (n=160): time 3.897e-06/0.1742, allocations: 0 / 447.7 MB, free: 2.68 MB / 410.7 MB Notification: Performance of matching and sorting (n=190): time 0.1688/0.343, allocations: 20.68 MB / 468.4 MB, free: 107 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.888e-05/0.3431, allocations: 252.6 kB / 468.6 MB, free: 106.7 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002982/0.3461, allocations: 4.492 MB / 473.1 MB, free: 102.4 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.998e-05/0.3462, allocations: 51.56 kB / 473.1 MB, free: 102.3 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007867/0.3469, allocations: 2.902 MB / 476.1 MB, free: 99.71 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003203/0.3473, allocations: 0.7453 MB / 476.8 MB, free: 98.97 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007368/0.348, allocations: 1.092 MB / 477.9 MB, free: 97.87 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.856e-05/0.348, allocations: 301.1 kB / 478.2 MB, free: 97.57 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001632/0.3497, allocations: 2.166 MB / 480.3 MB, free: 95.4 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002301/0.352, allocations: 5.51 MB / 485.9 MB, free: 88.26 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004371/0.3563, allocations: 8.186 MB / 494 MB, free: 78.51 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.589e-05/0.3564, allocations: 35.94 kB / 494.1 MB, free: 78.48 MB / 410.7 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.007419/0.3638, allocations: 8.644 MB / 0.4909 GB, free: 69.82 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.97e-05/0.3638, allocations: 52 kB / 0.491 GB, free: 69.77 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.824e-05/0.3639, allocations: 112 kB / 0.4911 GB, free: 69.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002026/0.3659, allocations: 1.504 MB / 0.4926 GB, free: 68.16 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001718/0.3676, allocations: 1.221 MB / 0.4938 GB, free: 66.93 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006855/0.3745, allocations: 9.819 MB / 0.5033 GB, free: 57 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002146/0.3766, allocations: 383.4 kB / 0.5037 GB, free: 56.62 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000225/0.3768, allocations: 332 kB / 0.504 GB, free: 56.3 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.001777/0.3786, allocations: 1.936 MB / 0.5059 GB, free: 54.36 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003931/0.379, allocations: 373.5 kB / 0.5063 GB, free: 53.99 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003869/0.3829, allocations: 4.127 MB / 0.5103 GB, free: 49.85 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.616e-05/0.3829, allocations: 20 kB / 0.5103 GB, free: 49.83 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.3829, allocations: 12 kB / 0.5103 GB, free: 49.82 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.899e-06/0.3829, allocations: 7.969 kB / 0.5103 GB, free: 49.81 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007947/0.3909, allocations: 8.944 MB / 0.5191 GB, free: 40.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.292e-06/0.3909, allocations: 3.938 kB / 0.5191 GB, free: 40.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000602/0.3915, allocations: 268 kB / 0.5193 GB, free: 40.58 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001864/0.3933, allocations: 1.351 MB / 0.5207 GB, free: 39.23 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.089e-05/0.3934, allocations: 31.59 kB / 0.5207 GB, free: 39.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006331/0.3997, allocations: 8.832 MB / 0.5293 GB, free: 30.25 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.3997, allocations: 0 / 0.5293 GB, free: 30.25 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005616/0.4054, allocations: 7.04 MB / 0.5362 GB, free: 23.18 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004712/0.4058, allocations: 405.3 kB / 0.5366 GB, free: 22.78 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002294/0.4061, allocations: 39.88 kB / 0.5366 GB, free: 22.74 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000917/0.407, allocations: 175.7 kB / 0.5368 GB, free: 22.57 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001863/0.4072, allocations: 117.1 kB / 0.5369 GB, free: 22.46 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.681e-05/0.4072, allocations: 51.27 kB / 0.5369 GB, free: 22.41 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002124/0.4094, allocations: 2.783 MB / 0.5397 GB, free: 19.65 MB / 410.7 MB Notification: Performance of sort global known variables: time 9e-08/0.4094, allocations: 0 / 0.5397 GB, free: 19.65 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002609/0.412, allocations: 1.16 MB / 0.5408 GB, free: 18.49 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.005936/0.4179, allocations: 7.71 MB / 0.5483 GB, free: 10.75 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004609/0.4225, allocations: 5.143 MB / 0.5533 GB, free: 5.605 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.4225, allocations: 4 kB / 0.5533 GB, free: 5.602 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001715/0.4242, allocations: 1.944 MB / 0.5552 GB, free: 3.648 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001653/0.4259, allocations: 0.4988 MB / 0.5557 GB, free: 3.168 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04494/0.4708, allocations: 46.81 MB / 0.6014 GB, free: 15.37 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002095/0.4729, allocations: 2.539 MB / 0.6039 GB, free: 12.81 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.002678/0.4756, allocations: 1.831 MB / 0.6057 GB, free: 10.97 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001514/0.4771, allocations: 1.766 MB / 0.6074 GB, free: 9.203 MB / 474.7 MB Notification: Performance of SimCode: time 1.122e-06/0.4771, allocations: 0 / 0.6074 GB, free: 9.203 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1994/0.6765, allocations: 78.59 MB / 0.6842 GB, free: 103.8 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.51/11.19, allocations: 8.047 kB / 0.6842 GB, free: 103.8 MB / 474.7 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.006987755186856]