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.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.001014/0.001014, allocations: 87.62 kB / 21.43 MB, free: 3.121 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.005145/0.005145, allocations: 164.6 kB / 24.69 MB, free: 9.43 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8008/0.8008, allocations: 158.6 MB / 186.5 MB, free: 3.027 MB / 170.7 MB " [Timeout remaining time 179] 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.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_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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 298.4 MB, free: 3.512 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.5e-05/1.648e-05, allocations: 2.281 kB / 298.4 MB, free: 3.508 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.1277/0.1277, allocations: 9.192 MB / 307.6 MB, free: 10.84 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.005162/0.1329, allocations: 3.787 MB / 311.4 MB, free: 8.551 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000802/0.1337, allocations: 80.31 kB / 311.5 MB, free: 8.523 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002275/0.136, allocations: 2.262 MB / 313.8 MB, free: 7.566 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002664/0.1386, allocations: 1.97 MB / 315.7 MB, free: 6.648 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001112/0.1397, allocations: 0.8372 MB / 316.6 MB, free: 6.293 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.003783/0.1435, allocations: 5.499 MB / 322.1 MB, free: 3.723 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002149/0.1457, allocations: 2.925 MB / 325 MB, free: 1.723 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001888/0.1476, allocations: 2.329 MB / 327.3 MB, free: 284 kB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001754/0.1493, allocations: 2.358 MB / 329.7 MB, free: 14.97 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002843/0.1496, allocations: 315.6 kB / 330 MB, free: 14.97 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001185/0.1508, allocations: 1.147 MB / 331.1 MB, free: 13.94 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001057/0.1518, allocations: 2.018 MB / 333.2 MB, free: 11.92 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008949/0.1527, allocations: 1.355 MB / 334.5 MB, free: 10.56 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004328/0.1571, allocations: 7.185 MB / 341.7 MB, free: 3.352 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.1571, allocations: 0 / 341.7 MB, free: 3.352 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1571, allocations: 1.312 kB / 341.7 MB, free: 3.352 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.577e-05/0.1571, allocations: 0 / 341.7 MB, free: 3.352 MB / 298.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.006388/0.1635, allocations: 5.095 MB / 346.8 MB, free: 14.19 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.1635, allocations: 11.98 kB / 346.8 MB, free: 14.18 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004795/0.164, allocations: 0.6206 MB / 347.4 MB, free: 13.55 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07369/0.2377, allocations: 12.72 MB / 360.1 MB, free: 0.8164 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005783/0.2435, allocations: 3.663 MB / 363.8 MB, free: 13.1 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.623e-05/0.2436, allocations: 197.5 kB / 364 MB, free: 12.9 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003651/0.244, allocations: 275.7 kB / 364.3 MB, free: 12.63 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009071/0.253, allocations: 8.834 MB / 373.1 MB, free: 3.125 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.025e-05/0.2531, allocations: 43.66 kB / 373.1 MB, free: 3.082 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002303/0.2533, allocations: 135.9 kB / 373.3 MB, free: 2.949 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001661/0.255, allocations: 1.774 MB / 375 MB, free: 1.176 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008052/0.263, allocations: 7.507 MB / 382.6 MB, free: 9.66 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02538/0.2884, allocations: 34.13 MB / 416.7 MB, free: 6.59 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004383/0.2928, allocations: 3.187 MB / 419.9 MB, free: 3.367 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001484/0.2943, allocations: 1.898 MB / 421.8 MB, free: 1.461 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001834/0.2945, allocations: 88.8 kB / 421.9 MB, free: 1.375 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.175e-05/0.2945, allocations: 54.88 kB / 421.9 MB, free: 1.312 MB / 378.7 MB Notification: Performance of pre-optimization done (n=160): time 3.797e-06/0.2945, allocations: 0 / 421.9 MB, free: 1.312 MB / 378.7 MB Notification: Performance of matching and sorting (n=190): time 0.03132/0.3258, allocations: 20.93 MB / 442.8 MB, free: 12.33 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.111e-05/0.3259, allocations: 252.6 kB / 443.1 MB, free: 12.03 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004198/0.3301, allocations: 4.607 MB / 447.7 MB, free: 7.395 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001243/0.3302, allocations: 53.7 kB / 447.7 MB, free: 7.336 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00126/0.3315, allocations: 2.905 MB / 450.6 MB, free: 4.402 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007387/0.3322, allocations: 0.7402 MB / 451.4 MB, free: 3.656 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009546/0.3332, allocations: 1.1 MB / 452.5 MB, free: 2.547 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.038e-05/0.3333, allocations: 301.1 kB / 452.8 MB, free: 2.25 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002049/0.3353, allocations: 2.17 MB / 455 MB, free: 76 kB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004278/0.3396, allocations: 5.507 MB / 460.5 MB, free: 8.926 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1342/0.4738, allocations: 8.186 MB / 468.6 MB, free: 133 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001088/0.4739, allocations: 31.72 kB / 468.7 MB, free: 133 MB / 426.7 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01179/0.4857, allocations: 8.647 MB / 477.3 MB, free: 131 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.895e-05/0.4857, allocations: 53.88 kB / 477.4 MB, free: 131 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000117/0.4858, allocations: 113 kB / 477.5 MB, free: 131 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002644/0.4885, allocations: 1.501 MB / 479 MB, free: 130.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002196/0.4907, allocations: 1.221 MB / 480.2 MB, free: 130.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008315/0.499, allocations: 9.827 MB / 490 MB, free: 126.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002568/0.5016, allocations: 386.4 kB / 490.4 MB, free: 126 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002773/0.5018, allocations: 332.2 kB / 490.7 MB, free: 126 MB / 426.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.00172/0.5035, allocations: 1.946 MB / 492.7 MB, free: 125.1 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003632/0.5039, allocations: 375.7 kB / 493.1 MB, free: 125.1 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004003/0.5079, allocations: 4.129 MB / 497.2 MB, free: 123.7 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-05/0.5079, allocations: 21.84 kB / 497.2 MB, free: 123.7 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.147e-06/0.5079, allocations: 11.41 kB / 497.2 MB, free: 123.7 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.036e-05/0.508, allocations: 10.88 kB / 497.2 MB, free: 123.7 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008374/0.5163, allocations: 8.981 MB / 0.4943 GB, free: 118.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.5163, allocations: 4 kB / 0.4943 GB, free: 118.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005746/0.5169, allocations: 264.2 kB / 0.4946 GB, free: 118.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001824/0.5187, allocations: 1.343 MB / 0.4959 GB, free: 116.9 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.632e-05/0.5188, allocations: 32 kB / 0.4959 GB, free: 116.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00616/0.525, allocations: 8.841 MB / 0.5046 GB, free: 108 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.525, allocations: 0 / 0.5046 GB, free: 108 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005479/0.5305, allocations: 7.04 MB / 0.5114 GB, free: 101.1 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008669/0.5313, allocations: 0.7092 MB / 0.5121 GB, free: 100.4 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002331/0.5316, allocations: 28 kB / 0.5122 GB, free: 100.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009367/0.5325, allocations: 191.7 kB / 0.5123 GB, free: 100.2 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001917/0.5327, allocations: 120.6 kB / 0.5125 GB, free: 100.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.467e-05/0.5328, allocations: 51.98 kB / 0.5125 GB, free: 100 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002177/0.5349, allocations: 2.858 MB / 0.5153 GB, free: 97.15 MB / 426.7 MB Notification: Performance of sort global known variables: time 8e-08/0.5349, allocations: 0 / 0.5153 GB, free: 97.15 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002695/0.5376, allocations: 1.192 MB / 0.5165 GB, free: 95.96 MB / 426.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.006105/0.5437, allocations: 7.709 MB / 0.524 GB, free: 88.23 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004484/0.5482, allocations: 5.149 MB / 0.529 GB, free: 83.09 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/0.5482, allocations: 0.6875 kB / 0.529 GB, free: 83.09 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001589/0.5498, allocations: 1.94 MB / 0.5309 GB, free: 81.14 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001518/0.5513, allocations: 0.4959 MB / 0.5314 GB, free: 80.66 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0363/0.5876, allocations: 47.32 MB / 0.5776 GB, free: 28.4 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001676/0.5893, allocations: 2.556 MB / 0.5801 GB, free: 25.81 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002257/0.5916, allocations: 1.843 MB / 0.5819 GB, free: 23.96 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001254/0.5928, allocations: 1.766 MB / 0.5836 GB, free: 22.2 MB / 426.7 MB Notification: Performance of SimCode: time 8.82e-07/0.5928, allocations: 1.641 kB / 0.5836 GB, free: 22.2 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1907/0.7835, allocations: 79.46 MB / 0.6612 GB, free: 120.1 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.53/11.31, allocations: 7.438 kB / 0.6612 GB, free: 120.1 MB / 442.7 MB " [Timeout remaining time 649] (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.00059976 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.992908018641174]