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.001184/0.001184, allocations: 83.62 kB / 21.43 MB, free: 3.129 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.005898/0.005898, allocations: 163.3 kB / 24.69 MB, free: 9.41 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.8929/0.8929, allocations: 158.6 MB / 186.5 MB, free: 3.039 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.824e-06/1.824e-06, allocations: 0 / 298.5 MB, free: 3.496 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.23e-05/2.413e-05, allocations: 2.281 kB / 298.5 MB, free: 3.492 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.1238/0.1238, allocations: 9.19 MB / 307.6 MB, free: 10.86 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.006239/0.1301, allocations: 3.783 MB / 311.4 MB, free: 8.535 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001558/0.1316, allocations: 83.88 kB / 311.5 MB, free: 8.504 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003017/0.1346, allocations: 2.263 MB / 313.8 MB, free: 7.547 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004211/0.1388, allocations: 1.969 MB / 315.7 MB, free: 6.629 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001567/0.1404, allocations: 0.8315 MB / 316.6 MB, free: 6.277 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.005377/0.1458, allocations: 5.499 MB / 322.1 MB, free: 3.715 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002565/0.1483, allocations: 2.924 MB / 325 MB, free: 1.715 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002692/0.151, allocations: 2.33 MB / 327.3 MB, free: 272 kB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00253/0.1536, allocations: 2.36 MB / 329.7 MB, free: 14.96 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005888/0.1542, allocations: 311.2 kB / 330 MB, free: 14.96 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001697/0.1559, allocations: 1.145 MB / 331.1 MB, free: 13.94 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001424/0.1573, allocations: 2.014 MB / 333.1 MB, free: 11.92 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001325/0.1586, allocations: 1.355 MB / 334.5 MB, free: 10.56 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006722/0.1653, allocations: 7.193 MB / 341.7 MB, free: 3.344 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.563e-06/0.1653, allocations: 0 / 341.7 MB, free: 3.344 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.315e-06/0.1653, allocations: 1.312 kB / 341.7 MB, free: 3.344 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001684/0.1655, allocations: 3.984 kB / 341.7 MB, free: 3.34 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.009417/0.1749, allocations: 5.091 MB / 346.8 MB, free: 14.18 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.175, allocations: 11.98 kB / 346.8 MB, free: 14.17 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006748/0.1756, allocations: 0.6206 MB / 347.4 MB, free: 13.54 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07541/0.2511, allocations: 12.71 MB / 360.1 MB, free: 0.8125 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00615/0.2572, allocations: 3.659 MB / 363.8 MB, free: 13.1 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001217/0.2573, allocations: 205.6 kB / 364 MB, free: 12.89 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007174/0.258, allocations: 276.9 kB / 364.3 MB, free: 12.62 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01018/0.2682, allocations: 8.834 MB / 373.1 MB, free: 3.117 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-05/0.2683, allocations: 43.66 kB / 373.1 MB, free: 3.074 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002885/0.2686, allocations: 131.9 kB / 373.3 MB, free: 2.945 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00178/0.2704, allocations: 1.77 MB / 375 MB, free: 1.176 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01011/0.2805, allocations: 7.506 MB / 382.6 MB, free: 9.664 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0307/0.3112, allocations: 34.14 MB / 416.7 MB, free: 6.586 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004874/0.3161, allocations: 3.183 MB / 419.9 MB, free: 3.367 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00168/0.3177, allocations: 1.902 MB / 421.8 MB, free: 1.457 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004487/0.3182, allocations: 96.8 kB / 421.9 MB, free: 1.363 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.437e-05/0.3182, allocations: 51.56 kB / 421.9 MB, free: 1.301 MB / 378.7 MB Notification: Performance of pre-optimization done (n=160): time 4.118e-06/0.3182, allocations: 0 / 421.9 MB, free: 1.301 MB / 378.7 MB Notification: Performance of matching and sorting (n=190): time 0.03395/0.3522, allocations: 20.92 MB / 442.8 MB, free: 12.33 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.683e-05/0.3523, allocations: 252.6 kB / 443.1 MB, free: 12.03 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004852/0.3571, allocations: 4.607 MB / 447.7 MB, free: 7.391 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002404/0.3574, allocations: 53.7 kB / 447.7 MB, free: 7.332 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001412/0.3588, allocations: 2.901 MB / 450.6 MB, free: 4.402 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009185/0.3597, allocations: 0.7403 MB / 451.4 MB, free: 3.656 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001036/0.3607, allocations: 1.096 MB / 452.5 MB, free: 2.551 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.901e-05/0.3608, allocations: 305.1 kB / 452.8 MB, free: 2.25 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002071/0.3629, allocations: 2.166 MB / 454.9 MB, free: 80 kB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003708/0.3666, allocations: 5.507 MB / 460.5 MB, free: 8.93 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1404/0.507, allocations: 8.193 MB / 468.6 MB, free: 133 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001057/0.5071, allocations: 32.94 kB / 468.7 MB, free: 133 MB / 426.7 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.0129/0.52, allocations: 8.652 MB / 477.3 MB, free: 131 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.71e-05/0.5201, allocations: 53.16 kB / 477.4 MB, free: 131 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001052/0.5202, allocations: 113.5 kB / 477.5 MB, free: 131 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002758/0.523, allocations: 1.497 MB / 479 MB, free: 130.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002721/0.5257, allocations: 1.224 MB / 480.2 MB, free: 130.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009171/0.5348, allocations: 9.825 MB / 490 MB, free: 126.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003181/0.538, allocations: 390.5 kB / 490.4 MB, free: 126 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005156/0.5385, allocations: 335.7 kB / 490.7 MB, free: 125.9 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.002335/0.5409, allocations: 1.934 MB / 492.7 MB, free: 125.1 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006093/0.5415, allocations: 382 kB / 493.1 MB, free: 125.1 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004328/0.5458, allocations: 4.127 MB / 497.2 MB, free: 123.6 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.446e-05/0.5458, allocations: 19.31 kB / 497.2 MB, free: 123.6 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.067e-05/0.5458, allocations: 7.219 kB / 497.2 MB, free: 123.6 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.236e-05/0.5459, allocations: 11.34 kB / 497.2 MB, free: 123.6 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01027/0.5561, allocations: 8.986 MB / 0.4943 GB, free: 118.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.837e-06/0.5561, allocations: 7.281 kB / 0.4943 GB, free: 118.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006607/0.5568, allocations: 268.3 kB / 0.4946 GB, free: 118.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001958/0.5588, allocations: 1.339 MB / 0.4959 GB, free: 116.9 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001022/0.5589, allocations: 36 kB / 0.4959 GB, free: 116.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006531/0.5654, allocations: 8.833 MB / 0.5046 GB, free: 108 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.5654, allocations: 8 kB / 0.5046 GB, free: 108 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006128/0.5715, allocations: 7.034 MB / 0.5114 GB, free: 101.1 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001377/0.5729, allocations: 0.7127 MB / 0.5121 GB, free: 100.4 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003913/0.5733, allocations: 28 kB / 0.5122 GB, free: 100.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001084/0.5744, allocations: 187.7 kB / 0.5123 GB, free: 100.2 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002437/0.5746, allocations: 125 kB / 0.5125 GB, free: 100.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.535e-05/0.5747, allocations: 51.73 kB / 0.5125 GB, free: 100 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002572/0.5773, allocations: 2.862 MB / 0.5153 GB, free: 97.14 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.5773, allocations: 0 / 0.5153 GB, free: 97.14 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00368/0.581, allocations: 1.188 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.006302/0.5873, allocations: 7.697 MB / 0.524 GB, free: 88.24 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005158/0.5924, allocations: 5.161 MB / 0.529 GB, free: 83.09 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.5924, allocations: 0 / 0.529 GB, free: 83.09 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001788/0.5942, allocations: 1.933 MB / 0.5309 GB, free: 81.15 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002162/0.5964, allocations: 0.5037 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.04302/0.6394, 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.001906/0.6413, allocations: 2.559 MB / 0.5801 GB, free: 25.8 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002427/0.6437, allocations: 1.844 MB / 0.5819 GB, free: 23.95 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001393/0.6451, allocations: 1.769 MB / 0.5837 GB, free: 22.18 MB / 426.7 MB Notification: Performance of SimCode: time 1.432e-06/0.6451, allocations: 0 / 0.5837 GB, free: 22.18 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2165/0.8616, allocations: 79.45 MB / 0.6612 GB, free: 120.2 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.86/11.72, allocations: 19.42 kB / 0.6613 GB, free: 120.2 MB / 442.7 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum_fmu --startTime=0 --stopTime=3 --stepSize=0.00059976 --timeout=50 --tolerance=1e-06 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.mat","/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: 13.806114858016372]