Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008473/0.0008473, allocations: 76.08 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007828/0.0007828, allocations: 153 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8525/0.8525, allocations: 173.4 MB / 200.4 MB, free: 9.453 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0 / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.628e-05/1.768e-05, allocations: 2.281 kB / 318.5 MB, free: 6.355 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.007033/0.007051, allocations: 9.142 MB / 327.6 MB, free: 13.17 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005776/0.01283, allocations: 3.773 MB / 331.4 MB, free: 9.383 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008699/0.0137, allocations: 83.5 kB / 331.4 MB, free: 9.301 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00254/0.01624, allocations: 2.269 MB / 333.7 MB, free: 7.023 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002633/0.01887, allocations: 1.967 MB / 335.7 MB, free: 5.051 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001/0.01987, allocations: 0.8264 MB / 336.5 MB, free: 4.223 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004398/0.02427, allocations: 5.839 MB / 342.3 MB, free: 14.37 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001947/0.02622, allocations: 2.915 MB / 345.3 MB, free: 11.4 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001905/0.02812, allocations: 2.311 MB / 347.6 MB, free: 9.086 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001727/0.02985, allocations: 2.354 MB / 349.9 MB, free: 6.727 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002681/0.03012, allocations: 308 kB / 350.2 MB, free: 6.426 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001232/0.03135, allocations: 1.155 MB / 351.4 MB, free: 5.27 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001061/0.03241, allocations: 2.006 MB / 353.4 MB, free: 3.258 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000934/0.03334, allocations: 1.344 MB / 354.7 MB, free: 1.91 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004171/0.03751, allocations: 7.161 MB / 361.9 MB, free: 10.73 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.03752, allocations: 0 / 361.9 MB, free: 10.73 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.03752, allocations: 0 / 361.9 MB, free: 10.73 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.991e-05/0.03756, allocations: 4 kB / 361.9 MB, free: 10.72 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.00618/0.04374, allocations: 5.056 MB / 367 MB, free: 5.605 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/0.04379, allocations: 8.922 kB / 367 MB, free: 5.598 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004954/0.04428, allocations: 0.6245 MB / 367.6 MB, free: 4.965 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07172/0.116, allocations: 12.72 MB / 380.3 MB, free: 8.23 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005365/0.1214, allocations: 3.307 MB / 383.6 MB, free: 4.871 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.239e-05/0.1215, allocations: 205.1 kB / 383.8 MB, free: 4.668 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003332/0.1218, allocations: 283.7 kB / 384.1 MB, free: 4.391 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007858/0.1297, allocations: 8.83 MB / 392.9 MB, free: 10.89 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.055e-05/0.1297, allocations: 51.64 kB / 393 MB, free: 10.84 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002226/0.1299, allocations: 131.9 kB / 393.1 MB, free: 10.71 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001603/0.1315, allocations: 1.77 MB / 394.9 MB, free: 8.934 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007431/0.139, allocations: 7.507 MB / 402.4 MB, free: 1.422 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02312/0.1621, allocations: 33.99 MB / 436.4 MB, free: 14.46 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00435/0.1664, allocations: 3.194 MB / 439.6 MB, free: 11.23 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001543/0.168, allocations: 1.896 MB / 441.5 MB, free: 9.32 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001751/0.1682, allocations: 96.89 kB / 441.5 MB, free: 9.227 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.823e-05/0.1682, allocations: 55.5 kB / 441.6 MB, free: 9.16 MB / 410.7 MB Notification: Performance of pre-optimization done (n=160): time 3.196e-06/0.1682, allocations: 0 / 441.6 MB, free: 9.16 MB / 410.7 MB Notification: Performance of matching and sorting (n=190): time 0.1858/0.354, allocations: 20.69 MB / 462.3 MB, free: 116.4 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.419e-05/0.3541, allocations: 256.1 kB / 462.5 MB, free: 116.1 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00329/0.3573, allocations: 4.495 MB / 467 MB, free: 113.9 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000109/0.3575, allocations: 53.7 kB / 467.1 MB, free: 113.8 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008334/0.3583, allocations: 2.901 MB / 470 MB, free: 111.4 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003953/0.3587, allocations: 0.7418 MB / 470.7 MB, free: 110.7 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007574/0.3594, allocations: 1.094 MB / 471.8 MB, free: 109.7 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.902e-05/0.3595, allocations: 304.7 kB / 472.1 MB, free: 109.4 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001606/0.3611, allocations: 2.17 MB / 474.3 MB, free: 107.4 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002202/0.3633, allocations: 5.502 MB / 479.8 MB, free: 100.3 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004471/0.3678, allocations: 8.197 MB / 488 MB, free: 90.57 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.608e-05/0.3678, allocations: 36 kB / 488 MB, free: 90.54 MB / 410.7 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.007393/0.3752, allocations: 8.648 MB / 496.7 MB, free: 81.89 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.914e-05/0.3752, allocations: 54.34 kB / 496.7 MB, free: 81.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.519e-05/0.3753, allocations: 119 kB / 496.8 MB, free: 81.72 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001979/0.3772, allocations: 1.49 MB / 498.3 MB, free: 80.23 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001717/0.379, allocations: 1.228 MB / 499.6 MB, free: 79 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007074/0.386, allocations: 9.826 MB / 0.4975 GB, free: 69.06 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002354/0.3884, allocations: 382.9 kB / 0.4978 GB, free: 68.69 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002359/0.3886, allocations: 332 kB / 0.4981 GB, free: 68.36 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.001713/0.3903, allocations: 1.943 MB / 0.5 GB, free: 66.41 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003175/0.3906, allocations: 365.6 kB / 0.5004 GB, free: 66.05 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004031/0.3947, allocations: 4.127 MB / 0.5044 GB, free: 61.91 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.779e-05/0.3947, allocations: 30.83 kB / 0.5044 GB, free: 61.88 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.498e-06/0.3947, allocations: 4 kB / 0.5044 GB, free: 61.88 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.059e-05/0.3947, allocations: 11.97 kB / 0.5045 GB, free: 61.87 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008369/0.4031, allocations: 8.941 MB / 0.5132 GB, free: 52.91 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.484e-06/0.4031, allocations: 4 kB / 0.5132 GB, free: 52.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006247/0.4037, allocations: 267.6 kB / 0.5134 GB, free: 52.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001926/0.4056, allocations: 1.339 MB / 0.5148 GB, free: 51.3 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001052/0.4057, allocations: 43.41 kB / 0.5148 GB, free: 51.26 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006622/0.4124, allocations: 8.836 MB / 0.5234 GB, free: 42.31 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.4124, allocations: 4 kB / 0.5234 GB, free: 42.31 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005977/0.4183, allocations: 7.021 MB / 0.5303 GB, free: 35.25 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007356/0.4191, allocations: 417.3 kB / 0.5307 GB, free: 34.84 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002558/0.4193, allocations: 31.98 kB / 0.5307 GB, free: 34.81 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009512/0.4203, allocations: 182 kB / 0.5309 GB, free: 34.64 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001976/0.4205, allocations: 124.5 kB / 0.531 GB, free: 34.52 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.627e-05/0.4206, allocations: 48 kB / 0.5311 GB, free: 34.47 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002292/0.4229, allocations: 2.779 MB / 0.5338 GB, free: 31.68 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.4229, allocations: 0 / 0.5338 GB, free: 31.68 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002665/0.4255, allocations: 1.187 MB / 0.5349 GB, free: 30.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.005892/0.4314, allocations: 7.706 MB / 0.5424 GB, free: 22.74 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004387/0.4358, allocations: 5.156 MB / 0.5475 GB, free: 17.59 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.4358, allocations: 0 / 0.5475 GB, free: 17.59 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001659/0.4375, allocations: 1.932 MB / 0.5494 GB, free: 15.65 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001568/0.439, allocations: 493 kB / 0.5498 GB, free: 15.18 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04371/0.4827, allocations: 46.86 MB / 0.5956 GB, free: 11.34 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002046/0.4848, allocations: 2.547 MB / 0.5981 GB, free: 8.758 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002524/0.4873, allocations: 1.829 MB / 0.5999 GB, free: 6.922 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001586/0.4889, allocations: 1.773 MB / 0.6016 GB, free: 5.148 MB / 458.7 MB Notification: Performance of SimCode: time 1.342e-06/0.4889, allocations: 3.938 kB / 0.6016 GB, free: 5.145 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1991/0.688, allocations: 78.79 MB / 0.6786 GB, free: 90.54 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.09/10.78, allocations: 15.11 kB / 0.6786 GB, free: 90.53 MB / 458.7 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.581585303880274]