Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00125/0.00125, allocations: 114.5 kB / 17.73 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001221/0.001221, allocations: 187 kB / 18.66 MB, free: 4.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.427/1.427, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001604/0.001604, allocations: 56.34 kB / 328 MB, free: 3.797 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09299/0.0946, allocations: 46.63 MB / 374.7 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.1976/0.2923, allocations: 10.47 MB / 385.1 MB, free: 7.422 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008074/0.3004, allocations: 3.952 MB / 389.1 MB, free: 5.344 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001848/0.3023, allocations: 64.72 kB / 389.1 MB, free: 5.332 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003911/0.3063, allocations: 2.217 MB / 391.4 MB, free: 4.297 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004783/0.3111, allocations: 1.852 MB / 393.2 MB, free: 3.457 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001768/0.3128, allocations: 0.7465 MB / 394 MB, free: 3.156 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007077/0.3199, allocations: 4.838 MB / 398.8 MB, free: 1.402 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003261/0.3232, allocations: 2.9 MB / 401.7 MB, free: 15.94 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002544/0.3258, allocations: 1.488 MB / 403.2 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003017/0.3288, allocations: 2.043 MB / 405.2 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006869/0.3295, allocations: 304 kB / 405.5 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002548/0.3321, allocations: 1.183 MB / 406.7 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00198/0.3341, allocations: 1.838 MB / 408.5 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00274/0.3368, allocations: 2.22 MB / 410.8 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009564/0.3464, allocations: 7.065 MB / 417.8 MB, free: 4.559 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.616e-06/0.3465, allocations: 4 kB / 417.8 MB, free: 4.555 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3465, allocations: 4 kB / 417.8 MB, free: 4.551 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002095/0.3467, allocations: 0 / 417.8 MB, free: 4.551 MB / 334.1 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.01484/0.3615, allocations: 5.073 MB / 422.9 MB, free: 15.4 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.634e-05/0.3616, allocations: 8.031 kB / 422.9 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001108/0.3627, allocations: 0.6206 MB / 423.5 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1732/0.5359, allocations: 12.3 MB / 435.8 MB, free: 2.445 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009695/0.5457, allocations: 4.254 MB / 440.1 MB, free: 14.13 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001987/0.5459, allocations: 205 kB / 440.3 MB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008975/0.5468, allocations: 275.7 kB / 440.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01599/0.5628, allocations: 8.726 MB / 449.3 MB, free: 4.285 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001412/0.563, allocations: 51.64 kB / 449.3 MB, free: 4.234 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003639/0.5634, allocations: 123.9 kB / 449.5 MB, free: 4.113 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003281/0.5667, allocations: 1.77 MB / 451.2 MB, free: 2.344 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01471/0.5814, allocations: 7.538 MB / 458.8 MB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04429/0.6257, allocations: 35.44 MB / 494.2 MB, free: 6.289 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008258/0.634, allocations: 3.692 MB / 497.9 MB, free: 2.441 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002754/0.6368, allocations: 2.037 MB / 499.9 MB, free: 404 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004454/0.6372, allocations: 324.2 kB / 0.4885 GB, free: 24 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.988e-05/0.6373, allocations: 59.48 kB / 0.4886 GB, free: 15.96 MB / 430.1 MB Notification: Performance of pre-optimization done (n=160): time 6.202e-06/0.6373, allocations: 0 / 0.4886 GB, free: 15.96 MB / 430.1 MB Notification: Performance of matching and sorting (n=190): time 0.05944/0.6968, allocations: 20.36 MB / 0.5085 GB, free: 11.49 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001936/0.697, allocations: 260.6 kB / 0.5087 GB, free: 11.18 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008345/0.7054, allocations: 3.984 MB / 0.5126 GB, free: 7.172 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003397/0.7057, allocations: 57.7 kB / 0.5127 GB, free: 7.109 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003042/0.7088, allocations: 2.936 MB / 0.5155 GB, free: 4.145 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001102/0.7099, allocations: 0.748 MB / 0.5163 GB, free: 3.391 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00243/0.7124, allocations: 1.108 MB / 0.5173 GB, free: 2.273 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001633/0.7125, allocations: 309.1 kB / 0.5176 GB, free: 1.969 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003809/0.7164, allocations: 2.162 MB / 0.5197 GB, free: 15.8 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006787/0.7232, allocations: 5.399 MB / 0.525 GB, free: 8.781 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01142/0.7346, allocations: 8.196 MB / 0.533 GB, free: 15 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001089/0.7347, allocations: 32 kB / 0.5331 GB, free: 14.96 MB / 478.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01812/0.7529, allocations: 8.668 MB / 0.5415 GB, free: 6.285 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001484/0.7531, allocations: 60.22 kB / 0.5416 GB, free: 6.227 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002197/0.7533, allocations: 112 kB / 0.5417 GB, free: 6.117 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004675/0.758, allocations: 1.491 MB / 0.5431 GB, free: 4.621 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00435/0.7623, allocations: 1.232 MB / 0.5443 GB, free: 3.387 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2084/0.9708, allocations: 9.926 MB / 0.554 GB, free: 142.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004347/0.9752, allocations: 327.8 kB / 0.5543 GB, free: 142.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007011/0.9759, allocations: 326.6 kB / 0.5547 GB, free: 142.8 MB / 478.1 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.003162/0.979, allocations: 1.94 MB / 0.5566 GB, free: 142.1 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006934/0.9797, allocations: 374.6 kB / 0.5569 GB, free: 142.1 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007975/0.9877, allocations: 4.156 MB / 0.561 GB, free: 140.6 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.137e-05/0.9878, allocations: 25.86 kB / 0.561 GB, free: 140.6 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.807e-05/0.9878, allocations: 7.062 kB / 0.561 GB, free: 140.6 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.839e-05/0.9879, allocations: 14.45 kB / 0.561 GB, free: 140.6 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01608/1.004, allocations: 9.282 MB / 0.5701 GB, free: 137.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.539e-05/1.004, allocations: 6.094 kB / 0.5701 GB, free: 137.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001189/1.005, allocations: 268.6 kB / 0.5703 GB, free: 137.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003611/1.009, allocations: 1.345 MB / 0.5717 GB, free: 137 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001664/1.009, allocations: 33.62 kB / 0.5717 GB, free: 137 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01017/1.019, allocations: 8.951 MB / 0.5804 GB, free: 132.9 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.347e-06/1.019, allocations: 3.5 kB / 0.5804 GB, free: 132.9 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009797/1.029, allocations: 7.057 MB / 0.5873 GB, free: 130.2 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001545/1.031, allocations: 0.7153 MB / 0.588 GB, free: 129.8 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004523/1.031, allocations: 31.56 kB / 0.588 GB, free: 129.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001459/1.033, allocations: 122.5 kB / 0.5882 GB, free: 129.7 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003617/1.033, allocations: 110 kB / 0.5883 GB, free: 129.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001354/1.033, allocations: 52.52 kB / 0.5883 GB, free: 129.7 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003393/1.036, allocations: 2.529 MB / 0.5908 GB, free: 128 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.6e-07/1.036, allocations: 0 / 0.5908 GB, free: 128 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004477/1.041, allocations: 1.01 MB / 0.5918 GB, free: 127 MB / 478.1 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.009106/1.05, allocations: 7.711 MB / 0.5993 GB, free: 119.3 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007385/1.057, allocations: 5.378 MB / 0.6046 GB, free: 114 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.714e-06/1.058, allocations: 3.5 kB / 0.6046 GB, free: 114 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002799/1.06, allocations: 2.076 MB / 0.6066 GB, free: 111.9 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002918/1.063, allocations: 0.4905 MB / 0.6071 GB, free: 111.4 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05422/1.117, allocations: 45.99 MB / 0.652 GB, free: 60.58 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002466/1.12, allocations: 3.098 MB / 0.655 GB, free: 57.46 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003417/1.123, allocations: 1.827 MB / 0.6568 GB, free: 55.62 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002058/1.126, allocations: 1.757 MB / 0.6585 GB, free: 53.86 MB / 478.1 MB Notification: Performance of SimCode: time 1.222e-06/1.126, allocations: 0 / 0.6585 GB, free: 53.86 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1393/1.265, allocations: 74.9 MB / 0.7316 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.27/24.54, allocations: 11.72 kB / 0.7317 GB, free: 10.86 MB / 0.4981 GB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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.0012 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches