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.00159/0.00159, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001877/0.001877, allocations: 209.1 kB / 23.73 MB, free: 4.387 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.461/1.461, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.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.001528/0.001528, allocations: 51.92 kB / 378.2 MB, free: 2.535 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.266/0.2676, allocations: 53.37 MB / 431.6 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01179/0.2793, allocations: 9.115 MB / 440.7 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007912/0.2873, allocations: 3.797 MB / 444.5 MB, free: 9.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001149/0.2884, allocations: 83.56 kB / 444.6 MB, free: 9.668 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004284/0.2927, allocations: 2.153 MB / 446.7 MB, free: 7.508 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004724/0.2974, allocations: 1.884 MB / 448.6 MB, free: 5.617 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001801/0.2992, allocations: 0.7448 MB / 449.4 MB, free: 4.871 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007925/0.3071, allocations: 5.268 MB / 454.6 MB, free: 15.59 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004114/0.3113, allocations: 2.398 MB / 457 MB, free: 13.14 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00332/0.3146, allocations: 1.503 MB / 458.5 MB, free: 11.64 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004086/0.3187, allocations: 2.216 MB / 460.7 MB, free: 9.414 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001078/0.3197, allocations: 300 kB / 461 MB, free: 9.121 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002927/0.3227, allocations: 1.084 MB / 462.1 MB, free: 8.035 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003/0.3257, allocations: 1.878 MB / 464 MB, free: 6.152 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004122/0.3298, allocations: 1.526 MB / 465.5 MB, free: 4.617 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009783/0.3396, allocations: 6.685 MB / 472.2 MB, free: 13.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.3396, allocations: 0 / 472.2 MB, free: 13.91 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3396, allocations: 0 / 472.2 MB, free: 13.91 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001727/0.3398, allocations: 0 / 472.2 MB, free: 13.91 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.01139/0.3511, allocations: 4.713 MB / 476.9 MB, free: 9.133 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.444e-05/0.3512, allocations: 12.03 kB / 476.9 MB, free: 9.121 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02593/0.3771, allocations: 3.103 MB / 480 MB, free: 6.012 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009814/0.3869, allocations: 3.225 MB / 483.3 MB, free: 2.734 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002288/0.3872, allocations: 197 kB / 483.5 MB, free: 2.539 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001129/0.3883, allocations: 271.8 kB / 483.7 MB, free: 2.273 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01697/0.4053, allocations: 8.955 MB / 492.7 MB, free: 8.641 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001691/0.4054, allocations: 51.62 kB / 492.7 MB, free: 8.59 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003941/0.4058, allocations: 127.9 kB / 492.9 MB, free: 8.465 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003382/0.4092, allocations: 1.778 MB / 494.6 MB, free: 6.688 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01678/0.426, allocations: 7.757 MB / 0.4906 GB, free: 14.92 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05009/0.4761, allocations: 33.36 MB / 0.5232 GB, free: 12.61 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008787/0.4849, allocations: 3.229 MB / 0.5263 GB, free: 9.344 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003018/0.4879, allocations: 2.031 MB / 0.5283 GB, free: 7.305 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003475/0.4882, allocations: 100.9 kB / 0.5284 GB, free: 7.207 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.396e-05/0.4883, allocations: 55.5 kB / 0.5285 GB, free: 7.141 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 4.408e-06/0.4883, allocations: 0 / 0.5285 GB, free: 7.141 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.3413/0.8296, allocations: 21.39 MB / 0.5494 GB, free: 97.13 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001021/0.8297, allocations: 262.1 kB / 0.5496 GB, free: 96.84 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004345/0.8341, allocations: 3.7 MB / 0.5532 GB, free: 95.16 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003389/0.8344, allocations: 57.7 kB / 0.5533 GB, free: 95.1 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00137/0.8358, allocations: 2.907 MB / 0.5561 GB, free: 92.73 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006522/0.8365, allocations: 0.7563 MB / 0.5569 GB, free: 92.07 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001256/0.8377, allocations: 1.182 MB / 0.558 GB, free: 90.96 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.339e-05/0.8378, allocations: 305.1 kB / 0.5583 GB, free: 90.66 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00253/0.8403, allocations: 2.382 MB / 0.5606 GB, free: 88.28 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003978/0.8443, allocations: 5.748 MB / 0.5662 GB, free: 80.9 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007742/0.852, allocations: 8.562 MB / 0.5746 GB, free: 70.81 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001012/0.8521, allocations: 32 kB / 0.5746 GB, free: 70.78 MB / 446.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01673/0.8688, allocations: 9.587 MB / 0.584 GB, free: 61.19 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001625/0.869, allocations: 53 kB / 0.5841 GB, free: 61.14 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001949/0.8692, allocations: 116 kB / 0.5842 GB, free: 61.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005613/0.8748, allocations: 2.027 MB / 0.5861 GB, free: 58.99 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004262/0.8791, allocations: 1.286 MB / 0.5874 GB, free: 57.71 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01344/0.8925, allocations: 11.11 MB / 0.5983 GB, free: 46.49 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005398/0.8979, allocations: 343.5 kB / 0.5986 GB, free: 46.15 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00117/0.8991, allocations: 340 kB / 0.5989 GB, free: 45.82 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.005209/0.9043, allocations: 1.942 MB / 0.6008 GB, free: 43.88 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001444/0.9057, allocations: 325.8 kB / 0.6011 GB, free: 43.55 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009291/0.915, allocations: 4.833 MB / 0.6058 GB, free: 38.7 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.84e-05/0.9151, allocations: 23.94 kB / 0.6059 GB, free: 38.68 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.291e-05/0.9151, allocations: 8 kB / 0.6059 GB, free: 38.67 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.39e-05/0.9151, allocations: 7.969 kB / 0.6059 GB, free: 38.66 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01952/0.9346, allocations: 8.901 MB / 0.6146 GB, free: 29.76 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.078e-05/0.9347, allocations: 0 / 0.6146 GB, free: 29.76 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001405/0.9361, allocations: 271.6 kB / 0.6148 GB, free: 29.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00489/0.941, allocations: 1.846 MB / 0.6166 GB, free: 27.64 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003149/0.9413, allocations: 37.06 kB / 0.6167 GB, free: 27.61 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01195/0.9532, allocations: 10.15 MB / 0.6266 GB, free: 17.35 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.9532, allocations: 4 kB / 0.6266 GB, free: 17.34 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01278/0.966, allocations: 7.915 MB / 0.6343 GB, free: 9.402 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001357/0.9674, allocations: 309.7 kB / 0.6346 GB, free: 9.098 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001189/0.9686, allocations: 28 kB / 0.6346 GB, free: 9.07 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002441/0.971, allocations: 131.8 kB / 0.6348 GB, free: 8.941 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006216/0.9716, allocations: 125 kB / 0.6349 GB, free: 8.816 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002654/0.9719, allocations: 51.94 kB / 0.6349 GB, free: 8.766 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004536/0.9764, allocations: 2.185 MB / 0.6371 GB, free: 6.59 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.9764, allocations: 0 / 0.6371 GB, free: 6.59 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006102/0.9825, allocations: 1.051 MB / 0.6381 GB, free: 5.543 MB / 446.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.0006062/0.9831, allocations: 162.9 kB / 0.6382 GB, free: 5.375 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008588/0.9917, allocations: 5.56 MB / 0.6437 GB, free: 15.82 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.466e-06/0.9917, allocations: 2.25 kB / 0.6437 GB, free: 15.82 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003782/0.9955, allocations: 1.95 MB / 0.6456 GB, free: 13.86 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004231/0.9997, allocations: 418.2 kB / 0.646 GB, free: 13.46 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0234/1.023, allocations: 9.578 MB / 0.6553 GB, free: 3.84 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006556/1.03, allocations: 2.542 MB / 0.6578 GB, free: 1.277 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005067/1.035, allocations: 1.778 MB / 0.6595 GB, free: 15.49 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001036/1.036, allocations: 223.3 kB / 0.6598 GB, free: 15.28 MB / 478.1 MB Notification: Performance of SimCode: time 1.082e-06/1.036, allocations: 0 / 0.6598 GB, free: 15.28 MB / 478.1 MB Notification: Performance of Templates: time 0.09091/1.127, allocations: 46.29 MB / 0.705 GB, free: 1.461 MB / 0.4981 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","/var/lib/jenkins/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.695157278329134]