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.001569/0.001569, allocations: 72.06 kB / 21.24 MB, free: 400 kB / 14.72 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.001661/0.001661, allocations: 155.3 kB / 24.48 MB, free: 3.461 MB / 14.72 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 1.473/1.473, allocations: 173.4 MB / 201.1 MB, free: 12.7 MB / 190.1 MB " [Timeout remaining time 178] 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: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001583/0.001583, allocations: 48.23 kB / 319.4 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08308/0.08467, allocations: 52.16 MB / 371.6 MB, free: 7.34 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01145/0.09612, allocations: 9.158 MB / 380.7 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007643/0.1038, allocations: 3.777 MB / 384.5 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00114/0.1049, allocations: 79.56 kB / 384.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004283/0.1092, allocations: 2.157 MB / 386.7 MB, free: 8.109 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004314/0.1135, allocations: 1.919 MB / 388.7 MB, free: 6.184 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001581/0.1151, allocations: 0.7409 MB / 389.4 MB, free: 5.441 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007127/0.1222, allocations: 5.19 MB / 394.6 MB, free: 248 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003137/0.1253, allocations: 2.389 MB / 397 MB, free: 13.8 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002367/0.1277, allocations: 1.511 MB / 398.5 MB, free: 12.28 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003181/0.1309, allocations: 2.11 MB / 400.6 MB, free: 10.16 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006565/0.1315, allocations: 300 kB / 400.9 MB, free: 9.871 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002071/0.1336, allocations: 1.092 MB / 402 MB, free: 8.777 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001895/0.1355, allocations: 1.893 MB / 403.9 MB, free: 6.879 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001851/0.1374, allocations: 1.538 MB / 405.4 MB, free: 5.332 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007641/0.145, allocations: 6.739 MB / 412.2 MB, free: 14.57 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.145, allocations: 0 / 412.2 MB, free: 14.57 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.145, allocations: 0 / 412.2 MB, free: 14.57 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001103/0.1451, allocations: 0 / 412.2 MB, free: 14.57 MB / 382.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.009595/0.1547, allocations: 4.717 MB / 416.9 MB, free: 9.789 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.1548, allocations: 16.86 kB / 416.9 MB, free: 9.773 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02814/0.1829, allocations: 3.193 MB / 420.1 MB, free: 6.574 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008586/0.1915, allocations: 3.287 MB / 423.4 MB, free: 3.234 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001917/0.1917, allocations: 197 kB / 423.6 MB, free: 3.039 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008043/0.1925, allocations: 263.8 kB / 423.8 MB, free: 2.781 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01508/0.2076, allocations: 8.971 MB / 432.8 MB, free: 9.137 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001349/0.2077, allocations: 51.58 kB / 432.8 MB, free: 9.086 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003664/0.2081, allocations: 127.9 kB / 433 MB, free: 8.961 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003395/0.2115, allocations: 1.766 MB / 434.7 MB, free: 7.195 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01522/0.2267, allocations: 7.764 MB / 442.5 MB, free: 15.42 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2159/0.4426, allocations: 33.46 MB / 476 MB, free: 67.31 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007756/0.4503, allocations: 3.32 MB / 479.3 MB, free: 67.2 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002274/0.4526, allocations: 2.022 MB / 481.3 MB, free: 67.17 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000289/0.4529, allocations: 97.36 kB / 481.4 MB, free: 67.17 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.925e-05/0.4529, allocations: 55.8 kB / 481.4 MB, free: 67.13 MB / 430.1 MB Notification: Performance of pre-optimization done (n=160): time 4.157e-06/0.4529, allocations: 0 / 481.4 MB, free: 67.13 MB / 430.1 MB Notification: Performance of matching and sorting (n=190): time 0.04896/0.5019, allocations: 21.88 MB / 0.4915 GB, free: 58 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.113e-05/0.5019, allocations: 251.9 kB / 0.4918 GB, free: 57.71 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003465/0.5054, allocations: 3.71 MB / 0.4954 GB, free: 54.14 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001868/0.5056, allocations: 53.7 kB / 0.4954 GB, free: 54.08 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000996/0.5066, allocations: 2.905 MB / 0.4983 GB, free: 51.43 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004557/0.507, allocations: 0.762 MB / 0.499 GB, free: 50.68 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001152/0.5082, allocations: 1.179 MB / 0.5002 GB, free: 49.48 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.074e-05/0.5082, allocations: 309.1 kB / 0.5005 GB, free: 49.18 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002476/0.5107, allocations: 2.39 MB / 0.5028 GB, free: 46.79 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003393/0.5141, allocations: 5.737 MB / 0.5084 GB, free: 39.46 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006559/0.5206, allocations: 8.571 MB / 0.5168 GB, free: 29.5 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.837e-05/0.5207, allocations: 32 kB / 0.5168 GB, free: 29.46 MB / 430.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01383/0.5345, allocations: 9.579 MB / 0.5262 GB, free: 19.88 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.972e-05/0.5346, allocations: 52.19 kB / 0.5262 GB, free: 19.82 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.303e-05/0.5347, allocations: 120 kB / 0.5263 GB, free: 19.71 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005027/0.5397, allocations: 2.012 MB / 0.5283 GB, free: 17.69 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003662/0.5434, allocations: 1.283 MB / 0.5295 GB, free: 16.41 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01251/0.5559, allocations: 11.11 MB / 0.5404 GB, free: 5.199 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004081/0.5599, allocations: 350.9 kB / 0.5407 GB, free: 4.859 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000591/0.5605, allocations: 339.5 kB / 0.541 GB, free: 4.531 MB / 430.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 (688): * Single equations (assignments): 684 * 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 {(3,35,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002255/0.5628, allocations: 1.939 MB / 0.5429 GB, free: 2.578 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000527/0.5633, allocations: 336 kB / 0.5433 GB, free: 2.25 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009164/0.5725, allocations: 4.833 MB / 0.548 GB, free: 13.39 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.379e-05/0.5725, allocations: 20 kB / 0.548 GB, free: 13.38 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.307e-05/0.5725, allocations: 8 kB / 0.548 GB, free: 13.37 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.287e-05/0.5725, allocations: 11.97 kB / 0.548 GB, free: 13.36 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01776/0.5903, allocations: 8.945 MB / 0.5568 GB, free: 4.402 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.09e-05/0.5903, allocations: 4 kB / 0.5568 GB, free: 4.398 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001316/0.5916, allocations: 267.7 kB / 0.557 GB, free: 4.137 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005557/0.5972, allocations: 1.839 MB / 0.5588 GB, free: 2.293 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001531/0.5973, allocations: 35.94 kB / 0.5588 GB, free: 2.258 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01604/0.6134, allocations: 10.15 MB / 0.5688 GB, free: 8 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.6134, allocations: 0 / 0.5688 GB, free: 8 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01472/0.6281, allocations: 7.904 MB / 0.5765 GB, free: 68 kB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001055/0.6292, allocations: 305.9 kB / 0.5768 GB, free: 15.76 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004024/0.6296, allocations: 32 kB / 0.5768 GB, free: 15.73 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001617/0.6312, allocations: 143.1 kB / 0.5769 GB, free: 15.59 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003705/0.6315, allocations: 117.1 kB / 0.577 GB, free: 15.48 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001651/0.6317, allocations: 48.88 kB / 0.5771 GB, free: 15.43 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003327/0.635, allocations: 2.193 MB / 0.5792 GB, free: 13.25 MB / 478.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.635, allocations: 1.031 kB / 0.5792 GB, free: 13.25 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004383/0.6394, allocations: 1.059 MB / 0.5803 GB, free: 12.19 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 {(2,33,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004105/0.6398, allocations: 170.3 kB / 0.5804 GB, free: 12.02 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.009124/0.649, allocations: 5.559 MB / 0.5859 GB, free: 6.469 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.616e-06/0.649, allocations: 12.11 kB / 0.5859 GB, free: 6.457 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003167/0.6521, allocations: 1.936 MB / 0.5878 GB, free: 4.508 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002394/0.6545, allocations: 421 kB / 0.5882 GB, free: 4.117 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01576/0.6703, allocations: 9.576 MB / 0.5975 GB, free: 10.51 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003493/0.6738, allocations: 2.546 MB / 0.6 GB, free: 7.934 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004055/0.6778, allocations: 1.782 MB / 0.6017 GB, free: 6.148 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006591/0.6785, allocations: 224.5 kB / 0.602 GB, free: 5.93 MB / 494.1 MB Notification: Performance of SimCode: time 7.72e-07/0.6785, allocations: 0 / 0.602 GB, free: 5.93 MB / 494.1 MB Notification: Performance of Templates: time 0.07646/0.755, allocations: 39.69 MB / 0.6407 GB, free: 14.7 MB / 0.5294 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","/var/lib/jenkins1/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: 6.204523075022735]