Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001762/0.001762, allocations: 76.44 kB / 21.24 MB, free: 0.5469 MB / 14.72 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.002065/0.002065, allocations: 160.4 kB / 24.5 MB, free: 3.719 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.464/1.464, allocations: 177.2 MB / 204.9 MB, free: 9 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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: 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.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001517/0.001517, allocations: 51.34 kB / 325.6 MB, free: 240 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08793/0.08945, allocations: 53.34 MB / 378.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01122/0.1007, allocations: 9.121 MB / 388 MB, free: 6.473 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006597/0.1073, allocations: 3.793 MB / 391.8 MB, free: 2.668 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005664/0.1078, allocations: 79.62 kB / 391.9 MB, free: 2.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004103/0.1119, allocations: 2.157 MB / 394.1 MB, free: 436 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003484/0.1154, allocations: 1.884 MB / 395.9 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001611/0.117, allocations: 0.737 MB / 396.7 MB, free: 13.8 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006485/0.1235, allocations: 5.264 MB / 401.9 MB, free: 8.523 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002681/0.1262, allocations: 2.389 MB / 404.3 MB, free: 6.078 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001839/0.128, allocations: 1.503 MB / 405.8 MB, free: 4.57 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002813/0.1308, allocations: 2.11 MB / 407.9 MB, free: 2.453 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004951/0.1313, allocations: 300 kB / 408.2 MB, free: 2.16 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001813/0.1332, allocations: 1.077 MB / 409.3 MB, free: 1.082 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001757/0.1349, allocations: 1.877 MB / 411.2 MB, free: 15.2 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0016/0.1365, allocations: 1.526 MB / 412.7 MB, free: 13.66 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006505/0.143, allocations: 6.685 MB / 419.4 MB, free: 6.953 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.143, allocations: 3.984 kB / 419.4 MB, free: 6.949 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.143, allocations: 3.938 kB / 419.4 MB, free: 6.945 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.742e-05/0.1431, allocations: 0 / 419.4 MB, free: 6.945 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.008437/0.1515, allocations: 4.709 MB / 424.1 MB, free: 2.176 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.1516, allocations: 8.031 kB / 424.1 MB, free: 2.168 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02712/0.1787, allocations: 3.189 MB / 427.3 MB, free: 14.97 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007118/0.1858, allocations: 3.229 MB / 430.5 MB, free: 11.69 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001739/0.186, allocations: 201 kB / 430.7 MB, free: 11.49 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004868/0.1865, allocations: 275.8 kB / 431 MB, free: 11.22 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01302/0.1995, allocations: 8.963 MB / 440 MB, free: 1.582 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001131/0.1996, allocations: 55.58 kB / 440 MB, free: 1.527 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003394/0.1999, allocations: 127.9 kB / 440.1 MB, free: 1.402 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003213/0.2031, allocations: 1.766 MB / 441.9 MB, free: 15.64 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0132/0.2163, allocations: 7.764 MB / 449.7 MB, free: 7.863 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2101/0.4265, allocations: 33.46 MB / 483.1 MB, free: 59.75 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007319/0.4338, allocations: 3.314 MB / 486.4 MB, free: 59.64 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002119/0.4359, allocations: 2.027 MB / 488.5 MB, free: 59.18 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002778/0.4362, allocations: 92.95 kB / 488.6 MB, free: 59.17 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.277e-05/0.4362, allocations: 57.89 kB / 488.6 MB, free: 59.12 MB / 430.1 MB Notification: Performance of pre-optimization done (n=160): time 3.897e-06/0.4362, allocations: 1.281 kB / 488.6 MB, free: 59.12 MB / 430.1 MB Notification: Performance of matching and sorting (n=190): time 0.04723/0.4834, allocations: 21.86 MB / 0.4985 GB, free: 48.78 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.25e-05/0.4835, allocations: 255.9 kB / 0.4988 GB, free: 48.48 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00324/0.4867, allocations: 3.702 MB / 0.5024 GB, free: 44.92 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000129/0.4869, allocations: 53.7 kB / 0.5024 GB, free: 44.86 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009601/0.4878, allocations: 2.914 MB / 0.5053 GB, free: 42.2 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003885/0.4882, allocations: 0.7531 MB / 0.506 GB, free: 41.46 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001099/0.4893, allocations: 1.179 MB / 0.5072 GB, free: 40.27 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.271e-05/0.4893, allocations: 305.1 kB / 0.5075 GB, free: 39.96 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002399/0.4917, allocations: 2.385 MB / 0.5098 GB, free: 37.57 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003284/0.495, allocations: 5.739 MB / 0.5154 GB, free: 30.25 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00623/0.5012, allocations: 8.568 MB / 0.5238 GB, free: 20.2 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.56e-05/0.5013, allocations: 32 kB / 0.5238 GB, free: 20.17 MB / 430.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01268/0.514, allocations: 9.593 MB / 0.5332 GB, free: 10.57 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.45e-05/0.514, allocations: 59.06 kB / 0.5332 GB, free: 10.51 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.106e-05/0.5141, allocations: 116 kB / 0.5333 GB, free: 10.4 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004677/0.5188, allocations: 2.014 MB / 0.5353 GB, free: 8.379 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003241/0.522, allocations: 1.287 MB / 0.5365 GB, free: 7.09 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0134/0.5354, allocations: 11.11 MB / 0.5474 GB, free: 11.89 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003512/0.5389, allocations: 343.6 kB / 0.5477 GB, free: 11.55 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004695/0.5394, allocations: 335.8 kB / 0.548 GB, free: 11.23 MB / 446.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.002723/0.5421, allocations: 1.942 MB / 0.5499 GB, free: 9.273 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005139/0.5426, allocations: 333.8 kB / 0.5503 GB, free: 8.945 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009632/0.5523, allocations: 4.829 MB / 0.555 GB, free: 4.098 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.781e-05/0.5523, allocations: 21.97 kB / 0.555 GB, free: 4.078 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.357e-05/0.5523, allocations: 12 kB / 0.555 GB, free: 4.066 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.643e-05/0.5523, allocations: 7.969 kB / 0.555 GB, free: 4.059 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01669/0.569, allocations: 8.933 MB / 0.5637 GB, free: 11.11 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.154e-06/0.569, allocations: 0 / 0.5637 GB, free: 11.11 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00129/0.5703, allocations: 263.6 kB / 0.564 GB, free: 10.86 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005391/0.5757, allocations: 1.846 MB / 0.5658 GB, free: 9.004 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001452/0.5758, allocations: 36 kB / 0.5658 GB, free: 8.969 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.015/0.5908, allocations: 10.15 MB / 0.5757 GB, free: 14.72 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.591e-06/0.5908, allocations: 11.95 kB / 0.5758 GB, free: 14.71 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01355/0.6044, allocations: 7.914 MB / 0.5835 GB, free: 6.77 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007781/0.6052, allocations: 305.7 kB / 0.5838 GB, free: 6.469 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003534/0.6055, allocations: 32.88 kB / 0.5838 GB, free: 6.438 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001513/0.607, allocations: 135.8 kB / 0.5839 GB, free: 6.305 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003357/0.6074, allocations: 122 kB / 0.584 GB, free: 6.188 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001533/0.6075, allocations: 48 kB / 0.5841 GB, free: 6.141 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003107/0.6106, allocations: 2.185 MB / 0.5862 GB, free: 3.965 MB / 478.1 MB Notification: Performance of sort global known variables: time 1e-07/0.6106, allocations: 0 / 0.5862 GB, free: 3.965 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003936/0.6146, allocations: 1.047 MB / 0.5872 GB, free: 2.918 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.0003624/0.6149, allocations: 174.6 kB / 0.5874 GB, free: 2.742 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008301/0.6232, allocations: 5.564 MB / 0.5928 GB, free: 13.19 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.6232, allocations: 0 / 0.5928 GB, free: 13.19 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002935/0.6262, allocations: 1.953 MB / 0.5948 GB, free: 11.22 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002016/0.6282, allocations: 428.3 kB / 0.5952 GB, free: 10.82 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01419/0.6424, allocations: 9.555 MB / 0.6045 GB, free: 1.238 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003336/0.6457, allocations: 2.549 MB / 0.607 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003743/0.6495, allocations: 1.777 MB / 0.6087 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006073/0.6501, allocations: 220.5 kB / 0.6089 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of SimCode: time 6.51e-07/0.6501, allocations: 0 / 0.6089 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of Templates: time 0.07377/0.7238, allocations: 39.69 MB / 0.6477 GB, free: 5.441 MB / 0.5294 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.264134240918793]